• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

parley

  • sources
  • kde-4.14
  • kdeedu
  • parley
  • src
  • settings
parleyprefs.h
Go to the documentation of this file.
1 /***************************************************************************
2 
3  begin : Fri Mar 25 2005
4 
5  copyright : (C) 2005, 2007 Peter Hedlund <peter.hedlund@kdemail.net>
6  (C) 2007 Frederik Gladhorn <frederik.gladhorn@kdemail.net>
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef PARLEYPREFS_H
19 #define PARLEYPREFS_H
20 
21 #include <KConfigDialog>
22 
27 class GeneralOptions;
28 class ViewOptions;
29 class PasteOptions;
30 class PluginOptions;
31 
32 class KEduVocDocument;
33 class KComboBox;
34 
35 class ParleyPrefs : public KConfigDialog
36 {
37  Q_OBJECT
38 
39 public:
43  ParleyPrefs(KEduVocDocument *doc, QWidget *parent, const QString &name, KConfigSkeleton *config);
44 
45 protected slots:
49  void updateSettings();
54  void updateWidgets();
58  void updateWidgetsDefault();
59 
60 protected:
64  bool hasChanged();
68  bool isDefault();
69 
70 private:
71  GeneralOptions * m_generalOptions;
72  ViewOptions * m_viewOptions;
73  PasteOptions * m_pasteOptions;
74  PluginOptions * m_pluginOptions;
75 
76  KConfigSkeleton *m_config;
77  KEduVocDocument *m_doc;
78  KComboBox *m_lessons;
79 };
80 
81 #endif
ParleyPrefs::hasChanged
bool hasChanged()
Returns true if the current state of the dialog is different from the saved settings.
Definition: parleyprefs.cpp:48
QWidget
ParleyPrefs::ParleyPrefs
ParleyPrefs(KEduVocDocument *doc, QWidget *parent, const QString &name, KConfigSkeleton *config)
Creates a configuration dialog.
Definition: parleyprefs.cpp:28
ViewOptions
Definition: viewoptions.h:29
KConfigSkeleton
ParleyPrefs::updateSettings
void updateSettings()
Called when the user clicks Apply or OK.
Definition: parleyprefs.cpp:58
KConfigDialog
QString
ParleyPrefs
Definition: parleyprefs.h:35
ParleyPrefs::updateWidgetsDefault
void updateWidgetsDefault()
Called when the user clicks Default.
Definition: parleyprefs.cpp:64
ParleyPrefs::updateWidgets
void updateWidgets()
Updates dialog widgets.
Definition: parleyprefs.cpp:71
ParleyPrefs::isDefault
bool isDefault()
Returns true if the current state of the dialog represents the default settings.
Definition: parleyprefs.cpp:53
GeneralOptions
Definition: generaloptions.h:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:15:56 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

parley

Skip menu "parley"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal