File indexing completed on 2024-05-12 08:39:56
0001 /* 0002 SPDX-FileCopyrightText: 2006 Matt Rogers <mattr@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #include "ninjabuilderpreferences.h" 0008 0009 #include "ui_ninjaconfig.h" 0010 #include "ninjabuilderconfig.h" 0011 0012 using namespace KDevelop; 0013 0014 NinjaBuilderPreferences::NinjaBuilderPreferences(IPlugin* plugin, 0015 const ProjectConfigOptions& options, 0016 QWidget* parent) 0017 : ProjectConfigPage<NinjaBuilderSettings>(plugin, options, parent) 0018 { 0019 m_prefsUi = new Ui::NinjaConfig; 0020 m_prefsUi->setupUi(this); 0021 0022 connect(m_prefsUi->configureEnvironment, &EnvironmentConfigureButton::environmentConfigured, 0023 this, &NinjaBuilderPreferences::changed); 0024 0025 m_prefsUi->configureEnvironment->setSelectionWidget(m_prefsUi->kcfg_environmentProfile); 0026 } 0027 0028 NinjaBuilderPreferences::~NinjaBuilderPreferences() 0029 { 0030 delete m_prefsUi; 0031 } 0032 0033 QString NinjaBuilderPreferences::name() const 0034 { 0035 return i18nc("@title:tab", "Ninja"); 0036 } 0037 0038 QString NinjaBuilderPreferences::fullName() const 0039 { 0040 return i18nc("@title:tab", "Configure Ninja settings"); 0041 } 0042 0043 QIcon NinjaBuilderPreferences::icon() const 0044 { 0045 return QIcon::fromTheme(QStringLiteral("run-build")); 0046 } 0047 0048 #include "moc_ninjabuilderpreferences.cpp"