24 explicit MainWindow(QWidget* parent =
nullptr);
28 std::unique_ptr<Ui::MainWindow> _ui;
29 std::unique_ptr<Ui::ToolBar> _toolBar;
30 std::unique_ptr<ProjectConfig> _projectConfig;
35 QVector<std::pair<QString, QString>> _recentProjects;
36 QVector<std::pair<QPushButton *, QPushButton *>> _recentProjectsButtons;
38 void connectToolbarSignals();
39 void connectMenuSignals();
40 void closeEvent(QCloseEvent* event);
41 void handleLoadAction();
42 void handleAboutAction();
43 void handleSaveAction();
44 void handleSaveAsAction();
45 void addToMdi(QWidget* component);
48 void addRecentProject(
const QString &name,
const QString &path);
49 void refreshRecentProjects();
50 void handleRecentProject(
int ndx);
Definition mainwindow.h:18
bool createProjectConfig(const QString &name)
Definition mainwindow.cpp:454
void handleWidgetShowing(QWidget *widget, bool docked)
Definition mainwindow.cpp:551
void handleWidgetDeletion(QWidget *widget)
Definition mainwindow.cpp:539
bool closeProjectConfig()
Definition mainwindow.cpp:412
void switchStyle()
Definition mainwindow.cpp:574
Styles
Definition mainwindow.h:22
void handleDock(QWidget *component)
Definition mainwindow.cpp:220
void setStyle(Styles style)
Definition mainwindow.cpp:582
~MainWindow()
Definition mainwindow.cpp:91