File indexing completed on 2024-05-05 16:27:22

0001 /* This file is part of KGraphViewer.
0002    Copyright (C) 2005-2007 Gael de Chalendar <kleag@free.fr>
0003 
0004    KGraphViewer 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, version 2.
0007 
0008    This program is distributed in the hope that it will be useful,
0009    but WITHOUT ANY WARRANTY; without even the implied warranty of
0010    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0011    General Public License for more details.
0012 
0013    You should have received a copy of the GNU General Public License
0014    along with this program; if not, write to the Free Software
0015    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
0016    02110-1301, USA
0017 */
0018 
0019 #ifndef KGRAPHEDITORCONFIGDIALOG_H
0020 #define KGRAPHEDITORCONFIGDIALOG_H
0021 
0022 #include <KConfigSkeleton>
0023 #include <kconfigdialog.h>
0024 
0025 namespace Ui
0026 {
0027 class KGraphViewerPreferencesParsingWidget;
0028 class KGraphViewerPreferencesReloadWidget;
0029 class KGraphViewerPreferencesOpenInExistingWindowWidget;
0030 class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget;
0031 class KGraphViewerPreferencesAppearanceWidget;
0032 }
0033 
0034 /**
0035  * This is the KGraphEditor configuration dialog
0036  *
0037  * @short Configuration dialog
0038  * @author Gael de Chalendar <kleag@free.fr>
0039  */
0040 class KgeConfigurationDialog : public KConfigDialog
0041 {
0042     Q_OBJECT
0043 public:
0044     KgeConfigurationDialog(QWidget *parent, const QString &name, KConfigSkeleton *config);
0045 
0046     ~KgeConfigurationDialog() override;
0047 
0048 protected Q_SLOTS:
0049     void updateSettings() override;
0050     void updateWidgets() override;
0051 
0052     void settingChanged(int);
0053 
0054 protected:
0055     bool hasChanged() override;
0056 
0057     bool m_changed;
0058 
0059 public:
0060     Ui::KGraphViewerPreferencesParsingWidget *m_parsingWidget;
0061     Ui::KGraphViewerPreferencesReloadWidget *m_reloadWidget;
0062     Ui::KGraphViewerPreferencesOpenInExistingWindowWidget *m_openingWidget;
0063     Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget *m_reopeningWidget;
0064     Ui::KGraphViewerPreferencesAppearanceWidget *m_appearanceWidget;
0065 };
0066 
0067 #endif