File indexing completed on 2024-04-28 04:34:26

0001 /*
0002  * This file is part of KDevelop Krazy2 Plugin.
0003  *
0004  * Copyright 2012 Daniel Calviño Sánchez <danxuliu@gmail.com>
0005  *
0006  * This program is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU General Public License
0008  * as published by the Free Software Foundation; either version 2
0009  * of the License, or (at your option) any later version.
0010  *
0011  * This program is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0014  * GNU General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU General Public License
0017  * along with this program. If not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #include "krazy2preferences.h"
0021 
0022 #include <QVBoxLayout>
0023 
0024 #include "krazy2config.h"
0025 
0026 #include "ui_krazy2settings.h"
0027 
0028 using namespace KDevelop;
0029 
0030 Krazy2Preferences::Krazy2Preferences(IPlugin *plugin, QWidget* parent)
0031     : ConfigPage(plugin, Krazy2Settings::self(), parent)
0032 {
0033     auto  layout = new QVBoxLayout(this);
0034     auto  widget = new QWidget(this);
0035     Ui::Krazy2Settings ui;
0036     ui.setupUi(widget);
0037     layout->addWidget(widget);
0038 }
0039 
0040 Krazy2Preferences::~Krazy2Preferences()
0041 {
0042 }
0043 
0044 QString Krazy2Preferences::name() const
0045 {
0046     return i18n("Krazy2");
0047 }
0048 
0049 QString Krazy2Preferences::fullName() const
0050 {
0051    return i18n("Configure Krazy2 settings");
0052 }
0053 
0054 QIcon Krazy2Preferences::icon() const
0055 {
0056    return QIcon::fromTheme(QStringLiteral("kdevelop"));
0057 }
0058 
0059 ConfigPage::ConfigPageType Krazy2Preferences::configPageType() const
0060 {
0061     return ConfigPage::AnalyzerConfigPage;
0062 }