19 class MainWindow : public QMainWindow
24 static MainWindow &instance();
25 void loadConfigFromFile(const QString &fileName);
28 void closeEvent(QCloseEvent *event);
29 QString configFileName() const { return m_fileName; }
39 void resetToDefaults();
44 void openRecent(QAction *action);
45 void selectWorkingDir();
46 void updateWorkingDir();
50 void showHtmlOutput();
59 void saveConfig(const QString &fileName);
60 void addRecentFile(const QString &fileName);
61 void updateConfigFileName(const QString &fileName);
62 void setWorkingDir(const QString &dirName);
63 void updateLaunchButtonState();
64 bool discardUnsavedChanges(bool saveOption=true);
66 QLineEdit *m_workingDir;
67 QPushButton *m_selWorkingDir;
69 QPushButton *m_saveLog;
70 QPushButton *m_launchHtml;
71 QPushButton *m_launchPdf;
72 QTextEdit *m_outputLog;
79 QStringList m_recentFiles;
80 QProcess *m_runProcess;