KPropsDlgPlugin Class Reference
A Plugin in the Properties dialog This is an abstract class. More...
#include <kpropertiesdialog.h>
Inheritance diagram for KPropsDlgPlugin:

Signals | |
void | changed () |
Emit this signal when the user changed anything in the plugin's tabs. | |
Public Methods | |
KPropsDlgPlugin (KPropertiesDialog *_props) | |
Constructor To insert tabs into the properties dialog, use the add methods provided by KDialogBase (the properties dialog is a KDialogBase). | |
virtual void | applyChanges () |
Applies all changes to the file. | |
Static Public Methods | |
bool | isDesktopFile (KFileItem *_item) |
Convenience method for most supports methods. | |
Protected Attributes | |
KPropertiesDialog * | properties |
Pointer to the dialog. |
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 page. 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 KPropsDlg/Plugin servicetype, as well as the mimetypes for which the plugin should be created. For instance, ServiceTypes=KPropsDlg/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 334 of file kpropertiesdialog.h.
Constructor & Destructor Documentation
|
Constructor To insert tabs into the properties dialog, use the add methods provided by KDialogBase (the properties dialog is a KDialogBase).
Definition at line 530 of file kpropertiesdialog.cpp. References KPropertiesDialog::dialog(), and properties. |
Member Function Documentation
|
Applies all changes to the file. This function is called when the user presses 'Ok'. The last plugin inserted is called first. Reimplemented in KFileSharePropsPlugin, KFileMetaPropsPlugin, KFilePropsPlugin, KFilePermissionsPropsPlugin, KExecPropsPlugin, KURLPropsPlugin, KApplicationPropsPlugin, KBindingPropsPlugin, and KDevicePropsPlugin. Definition at line 581 of file kpropertiesdialog.cpp. Referenced by KPropertiesDialog::slotOk(). |
|
Convenience method for most supports methods.
Definition at line 544 of file kpropertiesdialog.cpp. References QFile::encodeName(), QString::fromLatin1(), KFileItem::isLocalFile(), KFileItem::mimetype(), KFileItem::mode(), KURL::path(), and KFileItem::url(). Referenced by KFilePropsPlugin::KFilePropsPlugin(). |
|
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 before. Referenced by KApplicationPropsPlugin::KApplicationPropsPlugin(), KBindingPropsPlugin::KBindingPropsPlugin(), KExecPropsPlugin::KExecPropsPlugin(), KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin(), KFilePropsPlugin::KFilePropsPlugin(), and KURLPropsPlugin::KURLPropsPlugin(). |
Member Data Documentation
|
The documentation for this class was generated from the following files: