File indexing completed on 2024-05-05 04:05:12

0001 /* This file is part of KsirK.
0002    Copyright (C) 2008 Gael de Chalendar <kleag@free.fr>
0003 
0004    KsirK is free software; you can redistribute it and/or
0005    modify it under the terms of the GNU General Public
0006    License as published by the Free Software Foundation, either version 2
0007    of the License, or (at your option) any later version.
0008 
0009    This program is distributed in the hope that it will be useful,
0010    but WITHOUT ANY WARRANTY; without even the implied warranty of
0011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0012    General Public License for more details.
0013 
0014    You should have received a copy of the GNU General Public License
0015    along with this program; if not, write to the Free Software
0016    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0017    02110-1301, USA
0018 */
0019 
0020 
0021 #ifndef _KSIRKSKINEDITORCONFIGDIALOG_H_
0022 #define _KSIRKSKINEDITORCONFIGDIALOG_H_
0023 
0024 #include <KConfigDialog>
0025 #include <KConfigSkeleton>
0026 #include <QDialogButtonBox>
0027 namespace Ui
0028 {
0029   class KsirkSkinEditorPreferencesWidget;
0030 }
0031 
0032 /**
0033  * This is the KsirK Skin Editor configuration dialog. Based on KConfigDialog.
0034  *
0035  * @short Configuration dialog
0036  * @author Gaƫl de Chalendar (aka Kleag) <kleag@free.fr>
0037  */
0038 class KsirkSkinEditorConfigurationDialog : public KConfigDialog
0039 {
0040   Q_OBJECT
0041 public:
0042   /**
0043     * Constructor
0044     */
0045   explicit KsirkSkinEditorConfigurationDialog (
0046                 QWidget *parent, const char *name, KConfigSkeleton *config, 
0047                 FaceType faceType=List, 
0048                 QDialogButtonBox::StandardButtons dialogButtons=QDialogButtonBox::RestoreDefaults|QDialogButtonBox::Ok|QDialogButtonBox::Apply|QDialogButtonBox::Cancel|QDialogButtonBox::Help, 
0049                 QDialogButtonBox::StandardButton defaultButton=QDialogButtonBox::Ok, bool modal=false);
0050 
0051   /** Destructor */
0052   ~KsirkSkinEditorConfigurationDialog () override;
0053 
0054 Q_SIGNALS:
0055 
0056 protected Q_SLOTS:
0057   void updateSettings() override;
0058   void updateWidgets() override;
0059   void settingChanged(int);
0060   
0061 protected:
0062   bool hasChanged() override;
0063 
0064   bool m_changed;
0065   Ui::KsirkSkinEditorPreferencesWidget*  m_widget;
0066 };
0067 
0068 #endif