exportxhtmldialog.h
author anng888
Thu Dec 06 18:30:29 2007 +0000 (2007-12-06)
changeset 632 f4282e4db9f7
parent 458 84b37cc9e63e
permissions -rw-r--r--
- Fixed Win32 start up crash as a result of "showing" the main window to
early when its previous state was maximized.
     1 #ifndef EXPORTXHTMLDIALOG_H
     2 #define EXPORTXHTMLDIALOG_H
     3 
     4 #include "ui_exportxhtmldialog.h"
     5 
     6 /*! \brief Dialog to export a map as XHTML document
     7 
     8 This is an overloaded QDialog with various settings needed to call
     9 convert the vym.xml to a XHTML document. 
    10 The conversion itself is done by calling xsltproc.
    11 */
    12 
    13 class ExportXHTMLDialog:public QDialog
    14 {
    15 	Q_OBJECT
    16 public:
    17     ExportXHTMLDialog(QWidget* parent = 0);
    18 
    19     virtual QString getDir();
    20     virtual bool warnings();
    21     virtual bool hasChanged();
    22 
    23 public slots:
    24     virtual void readSettings();
    25     virtual void setDir (const QString&);
    26     virtual void dirChanged();
    27     virtual void browseDirectoryPressed();
    28     virtual void imageButtonPressed( bool b );
    29     virtual void textcolorButtonPressed( bool b );
    30     virtual void saveSettingsInMapButtonPressed( bool b );
    31     virtual void warningsButtonPressed( bool b );
    32     virtual void outputButtonPressed( bool b );
    33     virtual void cssChanged();
    34     virtual void browseCSSPressed();
    35     virtual void xslChanged();
    36     virtual void prescriptChanged();
    37     virtual void browseXSLPressed();
    38     virtual void postscriptChanged();
    39     virtual void browsePreExportButtonPressed();
    40     virtual void browsePostExportButtonPressed();
    41     virtual void doExport( const QString & mapname );
    42     virtual void setFilePath( const QString & s );
    43     virtual void setMapName( const QString & s );
    44 
    45 protected:
    46     bool useTextColor;
    47     bool showWarnings;
    48     QString xsl;
    49     QString css;
    50     bool useImage;
    51     bool showOutput;
    52     QString dir;
    53     QString filepath;
    54     QString prescript;
    55     QString postscript;
    56     bool settingsChanged;
    57     QString mapname;
    58     bool saveSettingsInMap;
    59     XSLTProc p;
    60     Process *scriptProc;
    61 
    62 private:
    63 	Ui::ExportXHTMLDialog ui;
    64     void init();
    65     void destroy();
    66     void runScript( QString spath, QString fpath );
    67 
    68 };
    69 
    70 #endif // EXPORTXHTMLDIALOG_H