Root/
Source at commit 1322 created 12 years 8 months ago. By meklort, Add doxygen to utils folder | |
---|---|
1 | #ifndef DOXYWIZARD_H␊ |
2 | #define DOXYWIZARD_H␊ |
3 | ␊ |
4 | #include <QMainWindow>␊ |
5 | #include <QSettings>␊ |
6 | #include <QStringList>␊ |
7 | ␊ |
8 | class Expert;␊ |
9 | class Wizard;␊ |
10 | class QLabel;␊ |
11 | class QLineEdit;␊ |
12 | class QPushButton;␊ |
13 | class QTextEdit;␊ |
14 | class QMenu;␊ |
15 | class QProcess;␊ |
16 | class QTimer;␊ |
17 | ␊ |
18 | class MainWindow : public QMainWindow␊ |
19 | {␊ |
20 | Q_OBJECT␊ |
21 | ␊ |
22 | public:␊ |
23 | static MainWindow &instance();␊ |
24 | void loadConfigFromFile(const QString &fileName);␊ |
25 | void loadSettings();␊ |
26 | void saveSettings();␊ |
27 | void closeEvent(QCloseEvent *event);␊ |
28 | QString configFileName() const { return m_fileName; }␊ |
29 | void updateTitle();␊ |
30 | ␊ |
31 | public slots:␊ |
32 | void manual();␊ |
33 | void about();␊ |
34 | void openConfig();␊ |
35 | bool saveConfig();␊ |
36 | bool saveConfigAs();␊ |
37 | void makeDefaults();␊ |
38 | void resetToDefaults();␊ |
39 | void selectTab(int);␊ |
40 | void quit();␊ |
41 | ␊ |
42 | private slots:␊ |
43 | void openRecent(QAction *action);␊ |
44 | void selectWorkingDir();␊ |
45 | void updateWorkingDir();␊ |
46 | void runDoxygen();␊ |
47 | void readStdout();␊ |
48 | void runComplete();␊ |
49 | void showHtmlOutput();␊ |
50 | void saveLog();␊ |
51 | void showSettings();␊ |
52 | void configChanged();␊ |
53 | void clearRecent();␊ |
54 | ␊ |
55 | private:␊ |
56 | MainWindow();␊ |
57 | void saveConfig(const QString &fileName);␊ |
58 | void addRecentFile(const QString &fileName);␊ |
59 | void updateConfigFileName(const QString &fileName);␊ |
60 | void setWorkingDir(const QString &dirName);␊ |
61 | void updateLaunchButtonState();␊ |
62 | bool discardUnsavedChanges(bool saveOption=true);␊ |
63 | ␊ |
64 | QLineEdit *m_workingDir;␊ |
65 | QPushButton *m_selWorkingDir;␊ |
66 | QPushButton *m_run;␊ |
67 | QPushButton *m_saveLog;␊ |
68 | QPushButton *m_launchHtml;␊ |
69 | QPushButton *m_launchPdf;␊ |
70 | QTextEdit *m_outputLog;␊ |
71 | QLabel *m_runStatus;␊ |
72 | Expert *m_expert;␊ |
73 | Wizard *m_wizard;␊ |
74 | QString m_fileName;␊ |
75 | QSettings m_settings;␊ |
76 | QMenu *m_recentMenu;␊ |
77 | QStringList m_recentFiles;␊ |
78 | QProcess *m_runProcess;␊ |
79 | QTimer *m_timer;␊ |
80 | bool m_running;␊ |
81 | bool m_modified;␊ |
82 | };␊ |
83 | ␊ |
84 | #endif␊ |
85 |