23 #include <QApplication>
24 #include <QHBoxLayout>
25 #include <QMainWindow>
37 palette.setColor(QPalette::Window, Qt::white);
38 setAutoFillBackground(
true);
41 auto layout =
new QHBoxLayout(
this);
42 layout->addSpacing(50);
45 layout->addSpacing(50);
95 open_existing_project);
Main class to holds all models of GUI session.
Main class to coordinate all activity on user's request to create new project, open existing one,...
void recentProjectsListModified(const QStringList &projects)
void onSaveCurrentProject()
void onCreateNewProject()
void onOpenExistingProject(const QString &dirname={})
bool canCloseProject() const
Returns 'true' if current project can be closed.
void clearRecentProjectsList()
void currentProjectModified(const QString &project_dir, bool is_modified)
void updateNames()
Update names (name of the current project, recent project name list, notifies the world).
bool canCloseProject() const
Returns 'true' if current project can be closed.
WelcomeView(ApplicationModels *models, QWidget *parent=nullptr)
OpenProjectWidget * m_openProjectWidget
void onCreateNewProject()
void onClearRecentProjectsList()
void onSaveCurrentProject()
RecentProjectWidget * m_recentProjectWidget
void recentProjectsListModified(const QStringList &projects)
ProjectHandler * m_projectHandler
void onOpenExistingProject(const QString &dirname={})
Based on Qt example "codeeditor" Copyright (C) 2016 The Qt Company Ltd.