exporthtmldialog.h
changeset 824 36eb4b8f409e
child 825 1ad892c1a709
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/exporthtmldialog.h	Thu Feb 25 11:03:52 2010 +0000
     1.3 @@ -0,0 +1,66 @@
     1.4 +#ifndef EXPORTHTMLDIALOG_H
     1.5 +#define EXPORTHTMLDIALOG_H
     1.6 +
     1.7 +#include "ui_exporthtmldialog.h"
     1.8 +
     1.9 +/*! \brief Dialog to export a map as HTML document
    1.10 +
    1.11 +This is an overloaded QDialog with various settings needed to call
    1.12 +convert the vym.xml to a HTML document. 
    1.13 +*/
    1.14 +
    1.15 +class ExportHTMLDialog:public QDialog
    1.16 +{
    1.17 +	Q_OBJECT
    1.18 +public:
    1.19 +    ExportHTMLDialog(QWidget* parent = 0);
    1.20 +
    1.21 +    virtual QString getDir();
    1.22 +    virtual bool warnings();
    1.23 +    virtual bool hasChanged();
    1.24 +
    1.25 +public slots:
    1.26 +    virtual void readSettings();
    1.27 +    virtual void setDir (const QString&);
    1.28 +    virtual void dirChanged();
    1.29 +    virtual void browseDirectoryPressed();
    1.30 +    virtual void imageButtonPressed( bool b );
    1.31 +    virtual void textcolorButtonPressed( bool b );
    1.32 +    virtual void saveSettingsInMapButtonPressed( bool b );
    1.33 +    virtual void warningsButtonPressed( bool b );
    1.34 +    virtual void outputButtonPressed( bool b );
    1.35 +    virtual void cssChanged();
    1.36 +	virtual QString getCSSPath();
    1.37 +    virtual void browseCSSPressed();
    1.38 +    virtual void prescriptChanged();
    1.39 +    virtual void postscriptChanged();
    1.40 +    virtual void browsePreExportButtonPressed();
    1.41 +    virtual void browsePostExportButtonPressed();
    1.42 +    virtual void doExport( const QString & mapname );
    1.43 +    virtual void setFilePath( const QString & s );
    1.44 +    virtual void setMapName( const QString & s );
    1.45 +
    1.46 +protected:
    1.47 +    bool useTextColor;
    1.48 +    bool showWarnings;
    1.49 +    QString css;
    1.50 +    bool useImage;
    1.51 +    bool showOutput;
    1.52 +    QString dir;
    1.53 +    QString filepath;
    1.54 +    QString prescript;
    1.55 +    QString postscript;
    1.56 +    bool settingsChanged;
    1.57 +    QString mapname;
    1.58 +    bool saveSettingsInMap;
    1.59 +    Process *scriptProc;
    1.60 +
    1.61 +private:
    1.62 +	Ui::ExportHTMLDialog ui;
    1.63 +    void init();
    1.64 +    void destroy();
    1.65 +    void runScript( QString spath, QString fpath );
    1.66 +
    1.67 +};
    1.68 +
    1.69 +#endif // EXPORTHTMLDIALOG_H