parley
configurepracticedialog.h
Go to the documentation of this file.00001 /*************************************************************************** 00002 00003 copyright : (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net> 00004 00005 ----------------------------------------------------------------------- 00006 00007 *************************************************************************** 00008 00009 *************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 ***************************************************************************/ 00017 00018 #ifndef CONFIGUREPRACTICEDIALOG_H 00019 #define CONFIGUREPRACTICEDIALOG_H 00020 00021 #include <keduvocdocument.h> 00022 #include <KConfigDialog> 00023 00024 class ConfigurePracticeWidget; 00025 class AdvancedPracticeOptions; 00026 class ThresholdOptions; 00027 class BlockOptions; 00028 00032 class ConfigurePracticeDialog : public KConfigDialog 00033 { 00034 Q_OBJECT 00035 00036 public: 00037 ConfigurePracticeDialog(KEduVocDocument *doc, QWidget *parent, const QString &name, KConfigSkeleton *config); 00038 00039 ~ConfigurePracticeDialog(); 00040 00041 void commitData(); 00042 00043 private slots: 00047 void updateSettings(); 00052 void updateWidgets(); 00056 void updateWidgetsDefault(); 00057 00061 bool hasChanged(); 00062 00063 private: 00064 00068 bool isDefault(); 00069 00070 ConfigurePracticeWidget* m_configurePracticeWidget; 00071 AdvancedPracticeOptions* m_advancedPracticeOptions; 00072 ThresholdOptions* m_thresholdOptions; 00073 BlockOptions* m_blockOptions; 00074 00075 KConfigSkeleton* m_config; 00076 }; 00077 00078 #endif // ConfigurePracticeDialog_included 00079
KDE 4.4 API Reference