* changed help texts * use help buttons instead of descriptions in dialogs * fixed show files button not up-to-date with directory list box * fixed source file extensions shown in cdb setup * refactored size and content setting for project content classes
36 lines
1.1 KiB
C++
36 lines
1.1 KiB
C++
#include "qt/window/project_wizzard/QtProjectWizzardContentExtensions.h"
|
|
|
|
#include <QFormLayout>
|
|
|
|
#include "qt/element/QtDirectoryListBox.h"
|
|
|
|
QtProjectWizzardContentExtensions::QtProjectWizzardContentExtensions(
|
|
std::shared_ptr<ProjectSettings> settings, QtProjectWizzardWindow* window
|
|
)
|
|
: QtProjectWizzardContent(settings, window)
|
|
{
|
|
}
|
|
|
|
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());
|
|
}
|