Chameleon

Chameleon Svn Source Tree

Root/branches/xZenu/src/util/doxygen/addon/doxywizard/doxywizard.h

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
8class Expert;
9class Wizard;
10class QLabel;
11class QLineEdit;
12class QPushButton;
13class QTextEdit;
14class QMenu;
15class QProcess;
16class QTimer;
17
18class 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

Archive Download this file

Revision: 1322