KSettings::Dialog Class Reference
Generic configuration dialog that even works over component boundaries. More...
#include <dialog.h>
Inheritance diagram for KSettings::Dialog:

Public Types | |
enum | ContentInListView { Static, Configurable } |
Public Slots | |
void | show () |
Signals | |
void | pluginSelectionChanged () |
Public Member Functions | |
Dialog (QWidget *parent=0, const char *name=0) | |
Dialog (ContentInListView content=Static, QWidget *parent=0, const char *name=0) | |
Dialog (const QStringList &components, QWidget *parent=0, const char *name=0) | |
Dialog (const QStringList &components, ContentInListView content, QWidget *parent=0, const char *name=0) | |
void | addPluginInfos (const QValueList< KPluginInfo * > &plugininfos) |
KCMultiDialog * | dialog () |
Protected Slots | |
void | configureTree () |
void | updateTreeList () |
Friends | |
class | PageNode |
Detailed Description
Generic configuration dialog that even works over component boundaries.For more information see KSettings.
This class aims to standardize the use of configuration dialogs in KDE applications. Especially when using KParts and/or Plugins you face problems creating a consistent config dialog.
To show a configuration dialog you only have to call the show method and be done with it. A code example:
You initialize m_cfgdlg
with
m_cfgdlg = new Dialog( Dialog::Static, this );
QStringList kpartslist; for( all my kparts ) kpartslist += m_mypart->instance().instanceName(); m_cfgdlg = new Dialog( kpartslist, this );
KStdAction::preferences( m_cfgdlg, SLOT( show() ), actionCollection() );
If you need to be informed when the config was changed and applied in the dialog you might want to take a look at Dispatcher.
For more information see KSettings.
- Author:
- Matthias Kretz <kretz@kde.org>
- Since:
- 3.2
Definition at line 71 of file dialog.h.
Member Enumeration Documentation
|
Tells the dialog whether the entries in the listview are all static or whether it should add a Configure... button to select which parts of the optional functionality should be active or not. |
Constructor & Destructor Documentation
|
Construct a new Preferences Dialog for the application. It uses all KCMs with X-KDE-ParentApp set to KGlobal::instance()->instanceName().
Definition at line 358 of file dialog.cpp. |
|
Construct a new Preferences Dialog for the application. It uses all KCMs with X-KDE-ParentApp set to KGlobal::instance()->instanceName().
Definition at line 367 of file dialog.cpp. |
|
Construct a new Preferences Dialog with the pages for the selected instance names. For example if you want to have the configuration pages for the kviewviewer KPart you would pass a QStringList consisting of only the name of the part "kviewviewer".
Definition at line 377 of file dialog.cpp. |
|
Construct a new Preferences Dialog with the pages for the selected instance names. For example if you want to have the configuration pages for the kviewviewer KPart you would pass a QStringList consisting of only the name of the part "kviewviewer".
Definition at line 387 of file dialog.cpp. |
Member Function Documentation
|
If you use a Configurable dialog you need to pass KPluginInfo objects that the dialog should configure.
Definition at line 402 of file dialog.cpp. |
|
Show the config dialog. The slot immediatly returns since the dialog is non-modal. Definition at line 413 of file dialog.cpp. |
|
If you use the dialog in Configurable mode and want to be notified when the user changes the plugin selections use this signal. It's emitted if the selection has changed and the user pressed Apply or Ok. In the slot you would then load and unload the plugins as requested. |
The documentation for this class was generated from the following files: