diff --git a/bin/app/data/gui/project_wizzard/window.css b/bin/app/data/gui/project_wizzard/window.css index 589ef5bb..d51fd45c 100644 --- a/bin/app/data/gui/project_wizzard/window.css +++ b/bin/app/data/gui/project_wizzard/window.css @@ -20,6 +20,11 @@ margin-left: 40px; } +#projectDescription { + font-size: 12pt; + margin-left: 20px; +} + #label { font-weight: bold; } diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.cpp b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.cpp index da6c240b..1f9e9c1e 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.cpp +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.cpp @@ -45,6 +45,7 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout) m_window->disableNext(); m_title->setText("Project Types - " + m_languages->checkedButton()->text()); + m_description->setText(""); } ); @@ -78,6 +79,22 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout) connect(m_buttons, static_cast(&QButtonGroup::buttonClicked), [this](int id) { + switch (id) + { + case 0: m_description->setText( + "Create a new Coati project by defining what files will be analyzed and header search paths." + ); break; + case 1: m_description->setText( + "Create a new project from an existing Visual Studio Solution file." + ); break; + case 2: m_description->setText( + "Create a project from an existing Compilation Database. Compilation Databases can be created from " + "cmake projects. Have a look at the " + "" + "documentation to find out more." + ); break; + } + m_window->enableNext(); } ); @@ -95,13 +112,19 @@ void QtProjectWizzardContentSelect::populateWindow(QGridLayout* layout) layout->addWidget(container, 0, QtProjectWizzardWindow::BACK_COL); + m_description = new QLabel(); + m_description->setWordWrap(true); + m_description->setOpenExternalLinks(true); + m_description->setObjectName("projectDescription"); + layout->addWidget(m_description, 1, QtProjectWizzardWindow::BACK_COL); m_title = new QLabel("Project Types - " + m_languages->checkedButton()->text()); m_title->setObjectName("projectTitle"); layout->addWidget(m_title, 0, QtProjectWizzardWindow::BACK_COL, Qt::AlignLeft | Qt::AlignTop); - + layout->setRowStretch(0, 0); + layout->setRowStretch(1, 1); layout->setColumnStretch(QtProjectWizzardWindow::FRONT_COL, 0); layout->setColumnStretch(QtProjectWizzardWindow::BACK_COL, 1); layout->setHorizontalSpacing(0); @@ -138,5 +161,5 @@ bool QtProjectWizzardContentSelect::check() QSize QtProjectWizzardContentSelect::preferredWindowSize() const { - return QSize(700, 340); + return QSize(700, 380); } diff --git a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.h b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.h index c065d516..fdfd8f46 100644 --- a/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.h +++ b/src/lib_gui/qt/window/project_wizzard/QtProjectWizzardContentSelect.h @@ -36,6 +36,7 @@ private: QButtonGroup* m_buttons; QLabel* m_title; + QLabel* m_description; }; #endif // QT_PROJECT_WIZZARD_CONTENT_SELECT_H