]> git.sven.stormbind.net Git - sven/vym.git/blob - src/export-confluence-dialog.h
New upstream version 2.9.22
[sven/vym.git] / src / export-confluence-dialog.h
1 #ifndef EXPORTCONFLUENCEDIALOG_H
2 #define EXPORTCONFLUENCEDIALOG_H
3
4 #include "ui_export-confluence-dialog.h"
5
6 #include <QButtonGroup>
7 #include <QDir>
8
9 /*! \brief Dialog to export a map as HTML document
10
11 This is an overloaded QDialog with various settings needed to call
12 convert the vym.xml to a HTML document.
13 */
14
15 class ExportConfluenceDialog : public QDialog {
16     Q_OBJECT
17   public:
18     ExportConfluenceDialog(QWidget *parent = 0);
19
20     void setCreateNewPage(bool b);
21     bool getCreateNewPage();
22     virtual void openUrl();
23     virtual QString getUrl();
24     virtual QString getPageName();
25     void setPageNameHint(const QString &s);
26
27     void readSettings();
28     void saveSettings();
29     void setURL(const QString &);
30     void setPageName(const QString &);
31
32     void setFilePath(const QString &s);
33     void setMapName(const QString &s);
34     bool useTextColor();
35     bool mapCenterToPageName();
36     bool useNumbering();
37     bool includeMapImage();
38     bool includeImages();
39     void doExport();
40
41   public slots:
42     void pageButtonPressed();
43     void URLChanged();
44     void pageNameChanged();
45     void mapCenterToPageNameCheckBoxPressed(bool b);
46
47   protected:
48     QString url;
49     QString pageName;
50     QString pageNameHint;
51     QString filepath;
52     QString mapname;
53
54   private:
55     Ui::ExportConfluenceDialog ui;
56     void init();
57 };
58
59 #endif // ExportConfluenceDialog_H