Changeset View
Changeset View
Standalone View
Standalone View
src/kgrapheditorConfigDialog.h
Show All 10 Lines | 1 | /* This file is part of KGraphViewer. | |||
---|---|---|---|---|---|
11 | General Public License for more details. | 11 | General Public License for more details. | ||
12 | 12 | | |||
13 | You should have received a copy of the GNU General Public License | 13 | You should have received a copy of the GNU General Public License | ||
14 | along with this program; if not, write to the Free Software | 14 | along with this program; if not, write to the Free Software | ||
15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
16 | 02110-1301, USA | 16 | 02110-1301, USA | ||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | | ||||
20 | #ifndef KGRAPHEDITORCONFIGDIALOG_H | 19 | #ifndef KGRAPHEDITORCONFIGDIALOG_H | ||
21 | #define KGRAPHEDITORCONFIGDIALOG_H | 20 | #define KGRAPHEDITORCONFIGDIALOG_H | ||
22 | 21 | | |||
23 | #include <kconfigdialog.h> | | |||
24 | #include <KConfigSkeleton> | 22 | #include <KConfigSkeleton> | ||
23 | #include <kconfigdialog.h> | ||||
25 | 24 | | |||
26 | namespace Ui { | 25 | namespace Ui | ||
26 | { | ||||
27 | class KGraphViewerPreferencesParsingWidget; | 27 | class KGraphViewerPreferencesParsingWidget; | ||
28 | class KGraphViewerPreferencesReloadWidget; | 28 | class KGraphViewerPreferencesReloadWidget; | ||
29 | class KGraphViewerPreferencesOpenInExistingWindowWidget; | 29 | class KGraphViewerPreferencesOpenInExistingWindowWidget; | ||
30 | class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget; | 30 | class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget; | ||
31 | class KGraphViewerPreferencesAppearanceWidget; | 31 | class KGraphViewerPreferencesAppearanceWidget; | ||
32 | } | 32 | } | ||
33 | 33 | | |||
34 | /** | 34 | /** | ||
35 | * This is the KGraphEditor configuration dialog | 35 | * This is the KGraphEditor configuration dialog | ||
36 | * | 36 | * | ||
37 | * @short Configuration dialog | 37 | * @short Configuration dialog | ||
38 | * @author Gael de Chalendar <kleag@free.fr> | 38 | * @author Gael de Chalendar <kleag@free.fr> | ||
39 | */ | 39 | */ | ||
40 | class KgeConfigurationDialog : public KConfigDialog | 40 | class KgeConfigurationDialog : public KConfigDialog | ||
41 | { | 41 | { | ||
42 | Q_OBJECT | 42 | Q_OBJECT | ||
43 | public: | 43 | public: | ||
44 | KgeConfigurationDialog (QWidget *parent, const QString& name, KConfigSkeleton *config); | 44 | KgeConfigurationDialog(QWidget *parent, const QString &name, KConfigSkeleton *config); | ||
45 | 45 | | |||
46 | ~KgeConfigurationDialog() override; | 46 | ~KgeConfigurationDialog() override; | ||
47 | 47 | | |||
48 | protected Q_SLOTS: | 48 | protected Q_SLOTS: | ||
49 | void updateSettings() override; | 49 | void updateSettings() override; | ||
50 | void updateWidgets() override; | 50 | void updateWidgets() override; | ||
51 | 51 | | |||
52 | void settingChanged(int); | 52 | void settingChanged(int); | ||
53 | 53 | | |||
54 | protected: | 54 | protected: | ||
55 | bool hasChanged() override; | 55 | bool hasChanged() override; | ||
56 | 56 | | |||
57 | bool m_changed; | 57 | bool m_changed; | ||
58 | 58 | | |||
59 | public: | 59 | public: | ||
60 | Ui::KGraphViewerPreferencesParsingWidget* m_parsingWidget; | 60 | Ui::KGraphViewerPreferencesParsingWidget *m_parsingWidget; | ||
61 | Ui::KGraphViewerPreferencesReloadWidget* m_reloadWidget; | 61 | Ui::KGraphViewerPreferencesReloadWidget *m_reloadWidget; | ||
62 | Ui::KGraphViewerPreferencesOpenInExistingWindowWidget* m_openingWidget; | 62 | Ui::KGraphViewerPreferencesOpenInExistingWindowWidget *m_openingWidget; | ||
63 | Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget* m_reopeningWidget; | 63 | Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget *m_reopeningWidget; | ||
64 | Ui::KGraphViewerPreferencesAppearanceWidget* m_appearanceWidget; | 64 | Ui::KGraphViewerPreferencesAppearanceWidget *m_appearanceWidget; | ||
65 | }; | 65 | }; | ||
66 | 66 | | |||
67 | #endif | 67 | #endif |