doxywizard.h
Go to the documentation of this file.
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 class QTabWidget;
18 
19 class MainWindow : public QMainWindow
20 {
21  Q_OBJECT
22 
23  public:
24  static MainWindow &instance();
25  void loadConfigFromFile(const QString &fileName);
26  void loadSettings();
27  void saveSettings();
28  void closeEvent(QCloseEvent *event);
29  QString configFileName() const { return m_fileName; }
30  void updateTitle();
31 
32  public slots:
33  void manual();
34  void about();
35  void openConfig();
36  bool saveConfig();
37  bool saveConfigAs();
38  void makeDefaults();
39  void resetToDefaults();
40  void selectTab(int);
41  void quit();
42 
43  private slots:
44  void openRecent(QAction *action);
45  void selectWorkingDir();
46  void updateWorkingDir();
47  void runDoxygen();
48  void readStdout();
49  void runComplete();
50  void showHtmlOutput();
51  void saveLog();
52  void showSettings();
53  void configChanged();
54  void clearRecent();
55  void selectRunTab();
56 
57  private:
58  MainWindow();
59  void saveConfig(const QString &fileName);
60  void addRecentFile(const QString &fileName);
61  void updateConfigFileName(const QString &fileName);
62  void setWorkingDir(const QString &dirName);
64  bool discardUnsavedChanges(bool saveOption=true);
65 
66  QLineEdit *m_workingDir;
67  QPushButton *m_selWorkingDir;
68  QPushButton *m_run;
69  QPushButton *m_saveLog;
70  QPushButton *m_launchHtml;
71  QPushButton *m_launchPdf;
72  QTextEdit *m_outputLog;
73  QLabel *m_runStatus;
77  QSettings m_settings;
78  QMenu *m_recentMenu;
80  QProcess *m_runProcess;
81  QTimer *m_timer;
82  QTabWidget *m_tabs;
83  bool m_running;
84  bool m_modified;
85 };
86 
87 #endif
void loadSettings()
Definition: doxywizard.cpp:351
bool saveConfig()
Definition: doxywizard.cpp:279
QSettings m_settings
Definition: doxywizard.h:77
QPushButton * m_selWorkingDir
Definition: doxywizard.h:67
void saveSettings()
Definition: doxywizard.cpp:382
Definition: expert.h:19
void setWorkingDir(const QString &dirName)
Definition: doxywizard.cpp:181
void closeEvent(QCloseEvent *event)
Definition: doxywizard.cpp:159
void addRecentFile(const QString &fileName)
Definition: doxywizard.cpp:403
void updateTitle()
Definition: doxywizard.cpp:606
QString configFileName() const
Definition: doxywizard.h:29
QPushButton * m_launchHtml
Definition: doxywizard.h:70
void about()
Definition: doxywizard.cpp:208
void updateLaunchButtonState()
Definition: doxywizard.cpp:544
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition: qstring.h:350
void openConfig()
Definition: doxywizard.cpp:220
void updateConfigFileName(const QString &fileName)
Definition: doxywizard.cpp:234
void clearRecent()
Definition: doxywizard.cpp:316
void manual()
Definition: doxywizard.cpp:203
QString m_fileName
Definition: doxywizard.h:76
fileName
Definition: dumpTree.py:9
QPushButton * m_run
Definition: doxywizard.h:68
QTabWidget * m_tabs
Definition: doxywizard.h:82
A list of strings.
Definition: qstringlist.h:51
Definition: wizard.h:226
void selectTab(int)
Definition: doxywizard.cpp:392
Wizard * m_wizard
Definition: doxywizard.h:75
void makeDefaults()
Definition: doxywizard.cpp:301
void saveLog()
Definition: doxywizard.cpp:567
void showSettings()
Definition: doxywizard.cpp:589
void loadConfigFromFile(const QString &fileName)
Definition: doxywizard.cpp:246
QMenu * m_recentMenu
Definition: doxywizard.h:78
QPushButton * m_saveLog
Definition: doxywizard.h:69
void resetToDefaults()
Definition: doxywizard.cpp:335
QTextEdit * m_outputLog
Definition: doxywizard.h:72
void openRecent(QAction *action)
Definition: doxywizard.cpp:431
void runDoxygen()
Definition: doxywizard.cpp:439
void selectRunTab()
Definition: doxywizard.cpp:398
QPushButton * m_launchPdf
Definition: doxywizard.h:71
void readStdout()
Definition: doxywizard.cpp:512
void updateWorkingDir()
Definition: doxywizard.cpp:198
void runComplete()
Definition: doxywizard.cpp:525
QLineEdit * m_workingDir
Definition: doxywizard.h:66
void showHtmlOutput()
Definition: doxywizard.cpp:552
QStringList m_recentFiles
Definition: doxywizard.h:79
void configChanged()
Definition: doxywizard.cpp:600
bool discardUnsavedChanges(bool saveOption=true)
Definition: doxywizard.cpp:620
static MainWindow & instance()
Definition: doxywizard.cpp:34
void quit()
Definition: doxywizard.cpp:172
bool m_modified
Definition: doxywizard.h:84
QProcess * m_runProcess
Definition: doxywizard.h:80
QLabel * m_runStatus
Definition: doxywizard.h:73
bool m_running
Definition: doxywizard.h:83
bool saveConfigAs()
Definition: doxywizard.cpp:292
QTimer * m_timer
Definition: doxywizard.h:81
Event finding and building.
void selectWorkingDir()
Definition: doxywizard.cpp:188
Expert * m_expert
Definition: doxywizard.h:74