* project can not have multiple source groups with different types * language of a project is now inferred from source groups * setting global NameHierarchy delimiter of first sourceGroup in project * added project settings migrations for source groups * Add Settings Migration classes (MoveKey, DeleteKey, Lambda) * Update sample projects with migrations * added method to config to retrieve sublevel key names * implemented recursive removing of keys in settings * moved project files out of top level * removed solution parsing code as it is not used anymore fortune cookie message = The secret of getting ahead is getting started.
38 lines
1.1 KiB
C++
38 lines
1.1 KiB
C++
#include "qt/window/project_wizzard/QtProjectWizzardContentExtensions.h"
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include "settings/SourceGroupSettings.h"
|
|
#include "qt/element/QtDirectoryListBox.h"
|
|
|
|
QtProjectWizzardContentExtensions::QtProjectWizzardContentExtensions(
|
|
std::shared_ptr<SourceGroupSettings> settings, QtProjectWizzardWindow* window
|
|
)
|
|
: QtProjectWizzardContent(window)
|
|
, m_settings(settings)
|
|
{
|
|
}
|
|
|
|
void QtProjectWizzardContentExtensions::populate(QGridLayout* layout, int& row)
|
|
{
|
|
QLabel* sourceLabel = createFormLabel("Source File Extensions");
|
|
sourceLabel->setObjectName("label");
|
|
layout->addWidget(sourceLabel, row, QtProjectWizzardWindow::FRONT_COL, Qt::AlignRight);
|
|
|
|
addHelpButton("Define extensions for source files including the dot e.g. .cpp", layout, row);
|
|
|
|
m_sourceList = new QtDirectoryListBox(this, sourceLabel->text(), true);
|
|
layout->addWidget(m_sourceList, row, QtProjectWizzardWindow::BACK_COL);
|
|
row++;
|
|
}
|
|
|
|
void QtProjectWizzardContentExtensions::load()
|
|
{
|
|
m_sourceList->setStringList(m_settings->getSourceExtensions());
|
|
}
|
|
|
|
void QtProjectWizzardContentExtensions::save()
|
|
{
|
|
m_settings->setSourceExtensions(m_sourceList->getStringList());
|
|
}
|