KIO
#include <kpropertiesdialog.h>

Public Slots | |
void | setDirty () |
Signals | |
void | changed () |
Public Member Functions | |
KPropertiesDialogPlugin (KPropertiesDialog *_props) | |
virtual | ~KPropertiesDialogPlugin () |
virtual void | applyChanges () |
bool | isDirty () const |
void | setDirty (bool b) |
Static Public Member Functions | |
static bool | isDesktopFile (const KFileItem &_item) |
Protected Member Functions | |
int | fontHeight () const |
Protected Attributes | |
KPropertiesDialog * | properties |
Detailed Description
A Plugin in the Properties dialog This is an abstract class.
You must inherit from this class to build a new kind of tabbed page for the KPropertiesDialog. A plugin in itself is just a library containing code, not a dialog's page. It's up to the plugin to insert pages into the parent dialog.
To make a plugin available, define a service that implements the KPropertiesDialog/Plugin servicetype, as well as the mimetypes for which the plugin should be created. For instance, ServiceTypes=KPropertiesDialog/Plugin,text/html,application/x-mymimetype.
You can also include X-KDE-Protocol=file if you want that plugin to be loaded only for local files, for instance.
Definition at line 347 of file kpropertiesdialog.h.
Constructor & Destructor Documentation
KPropertiesDialogPlugin::KPropertiesDialogPlugin | ( | KPropertiesDialog * | _props | ) |
Constructor To insert tabs into the properties dialog, use the add methods provided by KPageDialog (the properties dialog is a KPageDialog).
Definition at line 620 of file kpropertiesdialog.cpp.
|
virtual |
Definition at line 628 of file kpropertiesdialog.cpp.
Member Function Documentation
|
virtual |
Applies all changes to the file.
This function is called when the user presses 'Ok'. The last plugin inserted is called first.
Reimplemented in KDEPrivate::KDesktopPropsPlugin, KDEPrivate::KDevicePropsPlugin, KDEPrivate::KUrlPropsPlugin, KDEPrivate::KFilePermissionsPropsPlugin, KDEPrivate::KFilePropsPlugin, KFileSharePropsPlugin, and KFileMetaPropsPlugin.
Definition at line 655 of file kpropertiesdialog.cpp.
|
signal |
Emit this signal when the user changed anything in the plugin's tabs.
The hosting PropertiesDialog will call applyChanges only if the PropsPlugin has emitted this signal or if you have called setDirty() before.
|
protected |
Returns the font height.
Definition at line 660 of file kpropertiesdialog.cpp.
Convenience method for most ::supports methods.
- Returns:
- true if the file is a local, regular, readable, desktop file
Definition at line 634 of file kpropertiesdialog.cpp.
bool KPropertiesDialogPlugin::isDirty | ( | ) | const |
Definition at line 650 of file kpropertiesdialog.cpp.
void KPropertiesDialogPlugin::setDirty | ( | bool | b | ) |
Definition at line 640 of file kpropertiesdialog.cpp.
|
slot |
Definition at line 645 of file kpropertiesdialog.cpp.
Member Data Documentation
|
protected |
Pointer to the dialog.
Definition at line 393 of file kpropertiesdialog.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 23 2013 20:37:47 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.