Changeset View
Changeset View
Standalone View
Standalone View
src/kgraphviewerConfigDialog.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 KGRAPHVIEWERCONFIGDIALOG_H | 19 | #ifndef KGRAPHVIEWERCONFIGDIALOG_H | ||
21 | #define KGRAPHVIEWERCONFIGDIALOG_H | 20 | #define KGRAPHVIEWERCONFIGDIALOG_H | ||
22 | 21 | | |||
23 | #include <QLoggingCategory> | 22 | #include <QLoggingCategory> | ||
24 | 23 | | |||
25 | #include <kconfigdialog.h> | | |||
26 | #include <KConfigSkeleton> | 24 | #include <KConfigSkeleton> | ||
25 | #include <kconfigdialog.h> | ||||
27 | 26 | | |||
28 | namespace Ui { | 27 | namespace Ui | ||
28 | { | ||||
29 | class KGraphViewerPreferencesParsingWidget; | 29 | class KGraphViewerPreferencesParsingWidget; | ||
30 | class KGraphViewerPreferencesReloadWidget; | 30 | class KGraphViewerPreferencesReloadWidget; | ||
31 | class KGraphViewerPreferencesOpenInExistingWindowWidget; | 31 | class KGraphViewerPreferencesOpenInExistingWindowWidget; | ||
32 | class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget; | 32 | class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget; | ||
33 | class KGraphViewerPreferencesAppearanceWidget; | 33 | class KGraphViewerPreferencesAppearanceWidget; | ||
34 | } | 34 | } | ||
35 | 35 | | |||
36 | /** | 36 | /** | ||
37 | * This is the KGraphViewer configuration dialog | 37 | * This is the KGraphViewer configuration dialog | ||
38 | * | 38 | * | ||
39 | * @short Configuration dialog | 39 | * @short Configuration dialog | ||
40 | * @author Gaël de Chalendar <kleag@free.fr> | 40 | * @author Gaël de Chalendar <kleag@free.fr> | ||
41 | */ | 41 | */ | ||
42 | class KgvConfigurationDialog : public KConfigDialog | 42 | class KgvConfigurationDialog : public KConfigDialog | ||
43 | { | 43 | { | ||
44 | Q_OBJECT | 44 | Q_OBJECT | ||
45 | public: | 45 | public: | ||
46 | KgvConfigurationDialog (QWidget *parent, const QString& name, KConfigSkeleton *config); | 46 | KgvConfigurationDialog(QWidget *parent, const QString &name, KConfigSkeleton *config); | ||
47 | 47 | | |||
48 | ~KgvConfigurationDialog() override; | 48 | ~KgvConfigurationDialog() override; | ||
49 | 49 | | |||
50 | Q_SIGNALS: | 50 | Q_SIGNALS: | ||
51 | void backgroundColorChanged(const QColor& color); | 51 | void backgroundColorChanged(const QColor &color); | ||
52 | 52 | | |||
53 | protected Q_SLOTS: | 53 | protected Q_SLOTS: | ||
54 | void updateSettings() override; | 54 | void updateSettings() override; | ||
55 | void updateWidgets() override; | 55 | void updateWidgets() override; | ||
56 | 56 | | |||
57 | void settingChanged(int); | 57 | void settingChanged(int); | ||
58 | void slotBackgroundColorChanged(const QColor& color); | 58 | void slotBackgroundColorChanged(const QColor &color); | ||
59 | 59 | | |||
60 | protected: | 60 | protected: | ||
61 | bool hasChanged() override; | 61 | bool hasChanged() override; | ||
62 | 62 | | |||
63 | bool m_changed; | 63 | bool m_changed; | ||
64 | 64 | | |||
65 | public: | 65 | public: | ||
66 | Ui::KGraphViewerPreferencesParsingWidget* parsingWidget; | 66 | Ui::KGraphViewerPreferencesParsingWidget *parsingWidget; | ||
67 | Ui::KGraphViewerPreferencesReloadWidget* reloadWidget; | 67 | Ui::KGraphViewerPreferencesReloadWidget *reloadWidget; | ||
68 | Ui::KGraphViewerPreferencesOpenInExistingWindowWidget* openingWidget; | 68 | Ui::KGraphViewerPreferencesOpenInExistingWindowWidget *openingWidget; | ||
69 | Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget* reopeningWidget; | 69 | Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget *reopeningWidget; | ||
70 | Ui::KGraphViewerPreferencesAppearanceWidget* appearanceWidget; | 70 | Ui::KGraphViewerPreferencesAppearanceWidget *appearanceWidget; | ||
71 | }; | 71 | }; | ||
72 | 72 | | |||
73 | #endif | 73 | #endif |