diff -r 0bba81dde1bc -r 36eb4b8f409e exporthtmldialog.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/exporthtmldialog.h Thu Feb 25 11:03:52 2010 +0000
@@ -0,0 +1,66 @@
+#ifndef EXPORTHTMLDIALOG_H
+#define EXPORTHTMLDIALOG_H
+
+#include "ui_exporthtmldialog.h"
+
+/*! \brief Dialog to export a map as HTML document
+
+This is an overloaded QDialog with various settings needed to call
+convert the vym.xml to a HTML document.
+*/
+
+class ExportHTMLDialog:public QDialog
+{
+ Q_OBJECT
+public:
+ ExportHTMLDialog(QWidget* parent = 0);
+
+ virtual QString getDir();
+ virtual bool warnings();
+ virtual bool hasChanged();
+
+public slots:
+ virtual void readSettings();
+ virtual void setDir (const QString&);
+ virtual void dirChanged();
+ virtual void browseDirectoryPressed();
+ virtual void imageButtonPressed( bool b );
+ virtual void textcolorButtonPressed( bool b );
+ virtual void saveSettingsInMapButtonPressed( bool b );
+ virtual void warningsButtonPressed( bool b );
+ virtual void outputButtonPressed( bool b );
+ virtual void cssChanged();
+ virtual QString getCSSPath();
+ virtual void browseCSSPressed();
+ virtual void prescriptChanged();
+ virtual void postscriptChanged();
+ virtual void browsePreExportButtonPressed();
+ virtual void browsePostExportButtonPressed();
+ virtual void doExport( const QString & mapname );
+ virtual void setFilePath( const QString & s );
+ virtual void setMapName( const QString & s );
+
+protected:
+ bool useTextColor;
+ bool showWarnings;
+ QString css;
+ bool useImage;
+ bool showOutput;
+ QString dir;
+ QString filepath;
+ QString prescript;
+ QString postscript;
+ bool settingsChanged;
+ QString mapname;
+ bool saveSettingsInMap;
+ Process *scriptProc;
+
+private:
+ Ui::ExportHTMLDialog ui;
+ void init();
+ void destroy();
+ void runScript( QString spath, QString fpath );
+
+};
+
+#endif // EXPORTHTMLDIALOG_H