X-Git-Url: https://git.sven.stormbind.net/?a=blobdiff_plain;f=src%2Fexport-confluence-dialog.h;fp=src%2Fexport-confluence-dialog.h;h=9e1e923ed2e9ba17d54d1767ce55d9c1eb2982a2;hb=d483bd8e6523c23c6f1d8908a2e0611c2bc9ff4f;hp=0000000000000000000000000000000000000000;hpb=7dfa3fe589d1722d49681f42cdb0bf1e6efb5223;p=sven%2Fvym.git diff --git a/src/export-confluence-dialog.h b/src/export-confluence-dialog.h new file mode 100644 index 0000000..9e1e923 --- /dev/null +++ b/src/export-confluence-dialog.h @@ -0,0 +1,59 @@ +#ifndef EXPORTCONFLUENCEDIALOG_H +#define EXPORTCONFLUENCEDIALOG_H + +#include "ui_export-confluence-dialog.h" + +#include +#include + +/*! \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 ExportConfluenceDialog : public QDialog { + Q_OBJECT + public: + ExportConfluenceDialog(QWidget *parent = 0); + + void setCreateNewPage(bool b); + bool getCreateNewPage(); + virtual void openUrl(); + virtual QString getUrl(); + virtual QString getPageName(); + void setPageNameHint(const QString &s); + + void readSettings(); + void saveSettings(); + void setURL(const QString &); + void setPageName(const QString &); + + void setFilePath(const QString &s); + void setMapName(const QString &s); + bool useTextColor(); + bool mapCenterToPageName(); + bool useNumbering(); + bool includeMapImage(); + bool includeImages(); + void doExport(); + + public slots: + void pageButtonPressed(); + void URLChanged(); + void pageNameChanged(); + void mapCenterToPageNameCheckBoxPressed(bool b); + + protected: + QString url; + QString pageName; + QString pageNameHint; + QString filepath; + QString mapname; + + private: + Ui::ExportConfluenceDialog ui; + void init(); +}; + +#endif // ExportConfluenceDialog_H