class KPropsDlgPlugin

# class KPropsDlgPlugin | A Plugin in the Properties dialog This is an abstract class. More...
Definition | `#include <kpropertiesdialog.h>`
Inherits | QObject (qt) [public ]
Inherited by | KApplicationPropsPlugin, KBindingPropsPlugin, KDevicePropsPlugin, KExecPropsPlugin, KFileMetaPropsPlugin, KFilePermissionsPropsPlugin, KFilePropsPlugin, KFileSharePropsPlugin, KURLPropsPlugin
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

#### Public Methods

- KPropsDlgPlugin ( KPropertiesDialog *_props )
- virtual ~KPropsDlgPlugin ()
- virtual void applyChanges ()
- void setDirty ( bool b )
- bool isDirty () const

#### Public Slots

- void setDirty ()

#### Signals

- void changed ()

#### Public Static Methods

- static bool isDesktopFile ( KFileItem * _item )

#### Protected Methods

- virtual void virtual_hook ( int id, void* data )

#### Protected Members

- KPropertiesDialog *properties
- int fontHeight

## 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.

KPropsDlgPlugin ( KPropertiesDialog *_props ) | ### KPropsDlgPlugin

Constructor To insert tabs into the properties dialog, use the add methods provided by KDialogBase (the properties dialog is a KDialogBase).

~KPropsDlgPlugin () | ### ~KPropsDlgPlugin

[virtual]

void applyChanges () | ### applyChanges

[virtual]

Applies all changes to the file. This function is called when the user presses 'Ok'. The last plugin inserted is called first.

bool isDesktopFile ( KFileItem * _item ) | ### isDesktopFile

[static]

Convenience method for most ::supports methods

Returns: true if the file is a local, regular, readable, desktop file

void setDirty ( bool b ) | ### setDirty

bool isDirty () | ### isDirty

[const]

void setDirty () | ### setDirty

[slot]

void changed () | ### changed

[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 before.

KPropertiesDialog * properties | ### properties

[protected]

int fontHeight | ### fontHeight

[protected]

void virtual_hook ( int id, void* data ) | ### virtual_hook

[protected virtual]

Pointer to the dialog

Generated by: root on macppc.ports.openbsd.org on Sat Sep 6 10:37:17 2003, using kdoc 2.0a54.