exporthtmldialog.h
author insilmaril
Thu, 25 Feb 2010 11:03:52 +0000
changeset 824 36eb4b8f409e
child 825 1ad892c1a709
permissions -rw-r--r--
Added dialog for HTML export. Grouping in Switchboard shortcuts
     1 #ifndef EXPORTHTMLDIALOG_H
     2 #define EXPORTHTMLDIALOG_H
     3 
     4 #include "ui_exporthtmldialog.h"
     5 
     6 /*! \brief Dialog to export a map as HTML document
     7 
     8 This is an overloaded QDialog with various settings needed to call
     9 convert the vym.xml to a HTML document. 
    10 */
    11 
    12 class ExportHTMLDialog:public QDialog
    13 {
    14 	Q_OBJECT
    15 public:
    16     ExportHTMLDialog(QWidget* parent = 0);
    17 
    18     virtual QString getDir();
    19     virtual bool warnings();
    20     virtual bool hasChanged();
    21 
    22 public slots:
    23     virtual void readSettings();
    24     virtual void setDir (const QString&);
    25     virtual void dirChanged();
    26     virtual void browseDirectoryPressed();
    27     virtual void imageButtonPressed( bool b );
    28     virtual void textcolorButtonPressed( bool b );
    29     virtual void saveSettingsInMapButtonPressed( bool b );
    30     virtual void warningsButtonPressed( bool b );
    31     virtual void outputButtonPressed( bool b );
    32     virtual void cssChanged();
    33 	virtual QString getCSSPath();
    34     virtual void browseCSSPressed();
    35     virtual void prescriptChanged();
    36     virtual void postscriptChanged();
    37     virtual void browsePreExportButtonPressed();
    38     virtual void browsePostExportButtonPressed();
    39     virtual void doExport( const QString & mapname );
    40     virtual void setFilePath( const QString & s );
    41     virtual void setMapName( const QString & s );
    42 
    43 protected:
    44     bool useTextColor;
    45     bool showWarnings;
    46     QString css;
    47     bool useImage;
    48     bool showOutput;
    49     QString dir;
    50     QString filepath;
    51     QString prescript;
    52     QString postscript;
    53     bool settingsChanged;
    54     QString mapname;
    55     bool saveSettingsInMap;
    56     Process *scriptProc;
    57 
    58 private:
    59 	Ui::ExportHTMLDialog ui;
    60     void init();
    61     void destroy();
    62     void runScript( QString spath, QString fpath );
    63 
    64 };
    65 
    66 #endif // EXPORTHTMLDIALOG_H