1 /* This file is part of KsirK. 2 Copyright (C) 2008 Gael de Chalendar <kleag@free.fr> 3 4 KsirK is free software; you can redistribute it and/or 5 modify it under the terms of the GNU General Public 6 License as published by the Free Software Foundation, either version 2 7 of the License, or (at your option) any later version. 8 9 This program is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 General Public License for more details. 13 14 You should have received a copy of the GNU General Public License 15 along with this program; if not, write to the Free Software 16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 17 02110-1301, USA 18 */ 19 20 21 #ifndef _KSIRKSKINEDITORCONFIGDIALOG_H_ 22 #define _KSIRKSKINEDITORCONFIGDIALOG_H_ 23 24 #include <KConfigDialog> 25 #include <KConfigSkeleton> 26 #include <QDialogButtonBox> 27 namespace Ui 28 { 29 class KsirkSkinEditorPreferencesWidget; 30 } 31 32 /** 33 * This is the KsirK Skin Editor configuration dialog. Based on KConfigDialog. 34 * 35 * @short Configuration dialog 36 * @author Gaël de Chalendar (aka Kleag) <kleag@free.fr> 37 */ 38 class KsirkSkinEditorConfigurationDialog : public KConfigDialog 39 { 40 Q_OBJECT 41 public: 42 /** 43 * Constructor 44 */ 45 explicit KsirkSkinEditorConfigurationDialog ( 46 QWidget *parent, const char *name, KConfigSkeleton *config, 47 FaceType faceType=List, 48 QDialogButtonBox::StandardButtons dialogButtons=QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Ok|QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Help, 49 QDialogButtonBox::StandardButton defaultButton=QDialogButtonBox::Ok, bool modal=false); 50 51 /** Destructor */ 52 ~KsirkSkinEditorConfigurationDialog () override; 53 54 Q_SIGNALS: 55 56 protected Q_SLOTS: 57 void updateSettings() override; 58 void updateWidgets() override; 59 void settingChanged(int); 60 61 protected: 62 bool hasChanged() override; 63 64 bool m_changed; 65 Ui::KsirkSkinEditorPreferencesWidget* m_widget; 66 }; 67 68 #endif 69