1 /* This file is part of KGraphViewer. 2 Copyright (C) 2005-2007 Gael de Chalendar <kleag@free.fr> 3 4 KGraphViewer 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, version 2. 7 8 This program is distributed in the hope that it will be useful, 9 but WITHOUT ANY WARRANTY; without even the implied warranty of 10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 11 General Public License for more details. 12 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 15 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 16 02110-1301, USA 17 */ 18 19 20 #ifndef KGRAPHEDITORCONFIGDIALOG_H 21 #define KGRAPHEDITORCONFIGDIALOG_H 22 23 #include <kconfigdialog.h> 24 #include <KConfigSkeleton> 25 26 namespace Ui { 27 class KGraphViewerPreferencesParsingWidget; 28 class KGraphViewerPreferencesReloadWidget; 29 class KGraphViewerPreferencesOpenInExistingWindowWidget; 30 class KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget; 31 class KGraphViewerPreferencesAppearanceWidget; 32 } 33 34 /** 35 * This is the KGraphEditor configuration dialog 36 * 37 * @short Configuration dialog 38 * @author Gael de Chalendar <kleag@free.fr> 39 */ 40 class KgeConfigurationDialog : public KConfigDialog 41 { 42 Q_OBJECT 43 public: 44 KgeConfigurationDialog (QWidget *parent, const QString& name, KConfigSkeleton *config); 45 46 ~KgeConfigurationDialog() override; 47 48 protected Q_SLOTS: 49 void updateSettings() override; 50 void updateWidgets() override; 51 52 void settingChanged(int); 53 54 protected: 55 bool hasChanged() override; 56 57 bool m_changed; 58 59 public: 60 Ui::KGraphViewerPreferencesParsingWidget* m_parsingWidget; 61 Ui::KGraphViewerPreferencesReloadWidget* m_reloadWidget; 62 Ui::KGraphViewerPreferencesOpenInExistingWindowWidget* m_openingWidget; 63 Ui::KGraphViewerPreferencesReopenPreviouslyOpenedFilesWidget* m_reopeningWidget; 64 Ui::KGraphViewerPreferencesAppearanceWidget* m_appearanceWidget; 65 }; 66 67 #endif 68