kiten/lib
#include <dictionarypreferencedialog.h>

Public Slots | |
virtual void | updateSettings ()=0 |
virtual void | updateWidgets ()=0 |
virtual void | updateWidgetsDefault ()=0 |
Signals | |
void | widgetChanged () |
Public Member Functions | |
DictionaryPreferenceDialog (QWidget *parent, const QString &name) | |
virtual | ~DictionaryPreferenceDialog () |
QString | name () const |
Protected Attributes | |
QString | m_name |
Detailed Description
This abstract base class specifies the interface for dictionary preference dialogs in user applications.
The DictionaryManager class can be asked for a list of these objects for the current session, and the appropriate signal/slot connections can be made to handle dictionary preferences transparently to the user application.
One annoying caveat is that the user application still has to add preference elements to it's own kcfg file, or the preference code will crash when trying to work with it. Sadly, at the moment the only way to figure out what needs to be added to the kcfg is to read the code, or the kiten.kcfg implementation.
Definition at line 42 of file dictionarypreferencedialog.h.
Constructor & Destructor Documentation
DictionaryPreferenceDialog::DictionaryPreferenceDialog | ( | QWidget * | parent, |
const QString & | name | ||
) |
Basic constructor.
Used by internal classes only. Implement if you are adding your own dictionary type.
- Parameters
-
parent the parent widget, as per normal Qt Widget handling name the name of your widget, as understood by the preference code
Definition at line 25 of file dictionarypreferencedialog.cpp.
|
virtual |
Basic destructor.
Definition at line 31 of file dictionarypreferencedialog.cpp.
Member Function Documentation
QString DictionaryPreferenceDialog::name | ( | ) | const |
Get the dictionary type name associated with this dialog.
Definition at line 35 of file dictionarypreferencedialog.cpp.
|
pure virtualslot |
Connect the signal of your preferenes dialog to this updateSettings slot, to handle saving user's preference information.
|
pure virtualslot |
Connect the signal of your preferenes dialog to this updateWidgets slot, to handle reading preference settings cleanly.
You can also call this slot directly from your own updateWidgets slot.
|
pure virtualslot |
Connect the signal of your preferenes dialog to this updateWidgetsDefault slot, to handle setting preference settings back to their default settings easily.
|
signal |
When the user edits something on this preference page, this signal should be emitted.
Member Data Documentation
|
protected |
A place to store the name, passed in the constructor.
Definition at line 91 of file dictionarypreferencedialog.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:42:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.