]> git.sven.stormbind.net Git - sven/vym.git/blobdiff - src/export-confluence-dialog.h
New upstream version 2.9.22
[sven/vym.git] / src / export-confluence-dialog.h
diff --git a/src/export-confluence-dialog.h b/src/export-confluence-dialog.h
new file mode 100644 (file)
index 0000000..9e1e923
--- /dev/null
@@ -0,0 +1,59 @@
+#ifndef EXPORTCONFLUENCEDIALOG_H
+#define EXPORTCONFLUENCEDIALOG_H
+
+#include "ui_export-confluence-dialog.h"
+
+#include <QButtonGroup>
+#include <QDir>
+
+/*! \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