<HTML> <HEAD> <TITLE>class KPropsDlgPlugin</TITLE> <META NAME="Generator" CONTENT="KDOC "> </HEAD> <BODY bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#000099" alink= "#ffffff"> <TABLE WIDTH="100%" BORDER="0"> <TR> <TD> <TABLE BORDER="0"> <TR><TD valign="top" align="left" cellspacing="10"> <h1>class KPropsDlgPlugin</h1> </TD> <TD valign="top" align="right" colspan="1"> A Plugin in the Properties dialog This is an abstract class. <small><A HREF="#longdesc">More...</A></small></TD></TR> </TABLE> <HR> <TABLE BORDER="0"> <TR><TH>Definition</TH><TD><code>#include <<A HREF="kpropsdlg_h.html">kpropsdlg.h</A>></code></TD></TR> <TR><TH>Inherits</TH><TD><A HREF="../../../../../../../../../usr/share/doc/qt-2.3.1/html/qobject.html">QObject</A> <small>(qt)</small> <small>[public ]</small></TD></TR> <TR><TH>Inherited by</TH><TD><A HREF="KApplicationPropsPlugin.html">KApplicationPropsPlugin</A>, <A HREF="KBindingPropsPlugin.html">KBindingPropsPlugin</A>, <A HREF="KDevicePropsPlugin.html">KDevicePropsPlugin</A>, <A HREF="KExecPropsPlugin.html">KExecPropsPlugin</A>, <A HREF="KFilePermissionsPropsPlugin.html">KFilePermissionsPropsPlugin</A>, <A HREF="KFilePropsPlugin.html">KFilePropsPlugin</A>, <A HREF="KFileSharePropsPlugin.html">KFileSharePropsPlugin</A>, <A HREF="KURLPropsPlugin.html">KURLPropsPlugin</A></TD></TR> <TR><TH><A HREF="full-list-KPropsDlgPlugin.html">List of all Methods</A></TH></TR> </TABLE> </TD> <TD align="right"><TABLE BORDER="0"><TR><TD><small><A HREF="index-long.html">Annotated List</A></small></TD></TR> <TR><TD><small><A HREF="header-list.html">Files</A></small></TD></TR> <TR><TD><small><A HREF="all-globals.html">Globals</A></small></TD></TR> <TR><TD><small><A HREF="hier.html">Hierarchy</A></small></TD></TR> <TR><TD><small><A HREF="index.html">Index</A></small></TD></TR> </TABLE></TD></TR></TABLE> <h4>Public Methods</h4><ul><LI> <b><A HREF="#ref1">KPropsDlgPlugin</A></b> ( <A HREF="KPropertiesDialog.html">KPropertiesDialog</A> *_props ) </LI> <LI>virtual <b><A HREF="#ref2">~KPropsDlgPlugin</A></b> () </LI> <LI>virtual void <b><A HREF="#ref3">applyChanges</A></b> () </LI> <LI>void <b><A HREF="#ref5">setDirty</A></b> ( bool b ) </LI> <LI>bool <b><A HREF="#ref6">isDirty</A></b> () const </LI> </ul><h4>Public Slots</h4><ul><LI>void <b><A HREF="#ref7">setDirty</A></b> () </LI> </ul><h4>Signals</h4><ul><LI>void <b><A HREF="#ref8">changed</A></b> () </LI> </ul><h4>Public Static Methods</h4><ul><LI>static bool <b><A HREF="#ref4">isDesktopFile</A></b> ( <A HREF="../kio/KFileItem.html">KFileItem</A> * _item ) </LI> </ul><h4>Protected Members</h4><ul><LI>KPropertiesDialog *<b><A HREF="#ref9">properties</A></b></LI> <LI>int <b><A HREF="#ref10">fontHeight</A></b></LI> </ul><HR><H2><A NAME="longdesc">Detailed Description</A></H2><p> 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. </p> <p> 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. </p> <p> You can also include X-KDE-Protocol=file if you want that plugin to be loaded only for local files, for instance. </p> <A NAME="KPropsDlgPlugin"></A><A NAME="ref1"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>KPropsDlgPlugin</strong> ( <A HREF="KPropertiesDialog.html">KPropertiesDialog</A> *_props ) <br></td><td align="right"><h3><strong>KPropsDlgPlugin</strong></h3></td></tr></table><p></p><p> Constructor To insert tabs into the properties dialog, use the add methods provided by KDialogBase (the properties dialog is a KDialogBase). </p> <A NAME="~KPropsDlgPlugin"></A><A NAME="ref2"></A><table width="100%"><tr bgcolor="#eeeeee"><td> <strong>~KPropsDlgPlugin</strong> () <br></td><td align="right"><h3><strong>~KPropsDlgPlugin</strong></h3></td></tr></table><p> <small>[virtual]</small></p><A NAME="applyChanges"></A><A NAME="ref3"></A><table width="100%"><tr bgcolor="#eeeeee"><td> void <strong>applyChanges</strong> () <br></td><td align="right"><h3><strong>applyChanges</strong></h3></td></tr></table><p> <small>[virtual]</small></p><p> Apply all changes to the file. This function is called when the user presses 'Ok'. The last plugin inserted is called first. </p> <A NAME="isDesktopFile"></A><A NAME="ref4"></A><table width="100%"><tr bgcolor="#eeeeee"><td> bool <strong>isDesktopFile</strong> ( <A HREF="../kio/KFileItem.html">KFileItem</A> * _item ) <br></td><td align="right"><h3><strong>isDesktopFile</strong></h3></td></tr></table><p> <small>[static]</small></p><p> Convenience method for most ::supports methods </p> <p><b>Returns</b>: true if the file is a local, regular, readable, desktop file </p> <A NAME="setDirty"></A><A NAME="ref5"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setDirty</strong> ( bool b ) <br></td><td align="right"><h3><strong>setDirty</strong></h3></td></tr></table><p></p><A NAME="isDirty"></A><A NAME="ref6"></A><table width="100%"><tr bgcolor="#eeeeee"><td>bool <strong>isDirty</strong> () <br></td><td align="right"><h3><strong>isDirty</strong></h3></td></tr></table><p> <small>[const]</small></p><A NAME="setDirty"></A><A NAME="ref7"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>setDirty</strong> () <br></td><td align="right"><h3><strong>setDirty</strong></h3></td></tr></table><p> <small>[slot]</small></p><A NAME="changed"></A><A NAME="ref8"></A><table width="100%"><tr bgcolor="#eeeeee"><td>void <strong>changed</strong> () <br></td><td align="right"><h3><strong>changed</strong></h3></td></tr></table><p> <small>[signal]</small></p><p> Emit this event when the user changed anything in the plugin's tabs. The hosting PropertiesDialog will call <A HREF="KPropsDlgPlugin.html#applyChanges">applyChanges</A> only if the PropsPlugin emits the changed event. </p> <A NAME="properties"></A><A NAME="ref9"></A><table width="100%"><tr bgcolor="#eeeeee"><td><A HREF="KPropertiesDialog.html">KPropertiesDialog</A> * <strong>properties</strong> </td><td align="right"><h3><strong>properties</strong></h3></td></tr></table><p> <small>[protected]</small></p><A NAME="fontHeight"></A><A NAME="ref10"></A><table width="100%"><tr bgcolor="#eeeeee"><td>int <strong>fontHeight</strong> </td><td align="right"><h3><strong>fontHeight</strong></h3></td></tr></table><p> <small>[protected]</small></p><HR> <table> <tr><td><small>Generated by: qateam on updates.mandrakesoft.com on Mon Dec 30 16:09:22 2002, using kdoc 2.0a53.</small></td></tr> </table> </BODY> </HTML>