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 #ifndef KRAZY2PREFERENCES_H 0021 #define KRAZY2PREFERENCES_H 0022 0023 #include <kdevplatform/interfaces/configpage.h> 0024 0025 class Krazy2Settings; 0026 0027 /** 0028 * Krazy2 plugin configuration module. 0029 * This configuration module uses KConfig XT. That is, values to be configured 0030 * are specified in krazy2config.kcfg XML file. That file is used to generate a 0031 * settings class (Krazy2Settings) based on the options specified in 0032 * krazy2config.kcfgc file. 0033 * 0034 * The configuration values are shown in the GUI specified in Qt Designer ui 0035 * file krazy2settings.ui. Each value is shown in the widget named like that 0036 * value and prefixed with "kcfg_". 0037 * 0038 * For further information, see KConfig XT tutorial at: 0039 * http://techbase.kde.org/Development/Tutorials/Using_KConfig_XT 0040 */ 0041 class Krazy2Preferences: public KDevelop::ConfigPage { 0042 Q_OBJECT 0043 public: 0044 explicit Krazy2Preferences(KDevelop::IPlugin *plugin = nullptr, QWidget* parent = nullptr); 0045 ~Krazy2Preferences() override; 0046 QString name() const override; 0047 QString fullName() const override; 0048 QIcon icon() const override; 0049 KDevelop::ConfigPage::ConfigPageType configPageType() const override; 0050 }; 0051 0052 #endif