* removed QtSourceGroupWizard, QtSourceGroupWizardPage and context types * removed isInForm flag of QtProjectWizardContent * added check of empty source paths * set project window as parent for message boxes, so they don't get hidden behind main window * fixed issues when removing and duplicating source groups * updated project setup tests to no steps
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
#include "QtProjectWizardContentPathSettingsMaven.h"
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include "SourceGroupSettingsJavaMaven.h"
|
|
|
|
QtProjectWizardContentPathSettingsMaven::QtProjectWizardContentPathSettingsMaven(
|
|
std::shared_ptr<SourceGroupSettingsJavaMaven> settings, QtProjectWizardWindow* window)
|
|
: QtProjectWizardContentPath(window), m_settings(settings)
|
|
{
|
|
setTitleString("Maven Settings File (settings.xml)");
|
|
setHelpString(
|
|
"If your project uses a custom Maven settings file, specify it here. "
|
|
"If you leave this option empty, the default Maven settings will be used.<br />"
|
|
"<br />"
|
|
"You can make use of environment variables with ${ENV_VAR}.");
|
|
setPlaceholderString("Use Default");
|
|
setAllowEmpty(true);
|
|
setFileEndings({L".xml"});
|
|
}
|
|
|
|
void QtProjectWizardContentPathSettingsMaven::populate(QGridLayout* layout, int& row)
|
|
{
|
|
QtProjectWizardContentPath::populate(layout, row);
|
|
m_picker->setPickDirectory(false);
|
|
m_picker->setFileFilter("Settings File (*.xml)");
|
|
}
|
|
|
|
void QtProjectWizardContentPathSettingsMaven::load()
|
|
{
|
|
m_picker->setText(QString::fromStdWString(m_settings->getMavenSettingsFilePath().wstr()));
|
|
}
|
|
|
|
void QtProjectWizardContentPathSettingsMaven::save()
|
|
{
|
|
m_settings->setMavenSettingsFilePath(FilePath(m_picker->getText().toStdWString()));
|
|
}
|
|
|
|
std::shared_ptr<SourceGroupSettings> QtProjectWizardContentPathSettingsMaven::getSourceGroupSettings()
|
|
{
|
|
return m_settings;
|
|
}
|