Files
Sourcetrail/src/lib_gui/qt/window/QtStartScreen.h
T
malte_langkabel 7f33ab37be ui: display of project name
* Window title now reads "Coati - Project name".
* Removed file endings in the recent projects list.
* Changed the first line of the project summary to be "Project: Project name" instead of just "Project name".
2016-02-17 12:20:36 +01:00

51 lines
898 B
C++

#ifndef QT_START_SCREEN_H
#define QT_START_SCREEN_H
#include <QPushButton>
#include "qt/window/QtSettingsWindow.h"
#include "utility/file/FilePath.h"
class QtRecentProjectButton
: public QPushButton
{
Q_OBJECT
public:
QtRecentProjectButton(const FilePath& projectFilePath, QWidget* parent);
public slots:
void handleButtonClick();
private:
FilePath m_projectFilePath;
};
class QtStartScreen
: public QtSettingsWindow
{
Q_OBJECT
public:
QtStartScreen(QWidget* parent = 0);
QSize sizeHint() const Q_DECL_OVERRIDE;
virtual void setup() override;
signals:
void openOpenProjectDialog();
void openNewProjectDialog();
private slots:
void handleNewProjectButton();
void handleOpenProjectButton();
void handleRecentButton();
private:
QPushButton* m_openProjectButton;
QPushButton* m_newProjectButton;
std::vector<QPushButton*> m_recentProjects;
};
#endif // QT_START_SCREEN_H