• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdefile
 

tdeio/tdefile

Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KPropsDlgPlugin Class Reference

#include <kpropertiesdialog.h>

Inheritance diagram for KPropsDlgPlugin:
KBindingPropsPlugin KDesktopPropsPlugin KDevicePropsPlugin KExecPropsPlugin KFileMetaPropsPlugin KFilePermissionsPropsPlugin KFilePropsPlugin KFileSharePropsPlugin KPreviewPropsPlugin KURLPropsPlugin TDEApplicationPropsPlugin

Public Slots

void setDirty ()
 

Signals

void changed ()
 

Public Member Functions

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

Static Public Member Functions

static bool isDesktopFile (KFileItem *_item)
 

Protected Member Functions

virtual void virtual_hook (int id, void *data)
 

Protected Attributes

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 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 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-TDE-Protocol=file if you want that plugin to be loaded only for local files, for instance.

Definition at line 437 of file kpropertiesdialog.h.

Constructor & Destructor Documentation

◆ KPropsDlgPlugin()

KPropsDlgPlugin::KPropsDlgPlugin ( KPropertiesDialog *  _props)

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

Definition at line 606 of file kpropertiesdialog.cpp.

◆ ~KPropsDlgPlugin()

KPropsDlgPlugin::~KPropsDlgPlugin ( )
virtual

Definition at line 615 of file kpropertiesdialog.cpp.

Member Function Documentation

◆ applyChanges()

void KPropsDlgPlugin::applyChanges ( )
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 KFileMetaPropsPlugin, KFilePropsPlugin, KFilePermissionsPropsPlugin, KURLPropsPlugin, KBindingPropsPlugin, KDevicePropsPlugin, KDesktopPropsPlugin, KExecPropsPlugin, TDEApplicationPropsPlugin, and KFileSharePropsPlugin.

Definition at line 665 of file kpropertiesdialog.cpp.

◆ changed

void KPropsDlgPlugin::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.

◆ isDesktopFile()

bool KPropsDlgPlugin::isDesktopFile ( KFileItem *  _item)
static

Convenience method for most ::supports methods.

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

Definition at line 620 of file kpropertiesdialog.cpp.

◆ isDirty()

bool KPropsDlgPlugin::isDirty ( ) const

Definition at line 660 of file kpropertiesdialog.cpp.

◆ setDirty [1/2]

void KPropsDlgPlugin::setDirty ( )
slot

Definition at line 655 of file kpropertiesdialog.cpp.

◆ setDirty() [2/2]

void KPropsDlgPlugin::setDirty ( bool  b)

Definition at line 650 of file kpropertiesdialog.cpp.

◆ virtual_hook()

void KPropsDlgPlugin::virtual_hook ( int  id,
void *  data 
)
protectedvirtual

Definition at line 3637 of file kpropertiesdialog.cpp.

Member Data Documentation

◆ fontHeight

int KPropsDlgPlugin::fontHeight
protected

Definition at line 482 of file kpropertiesdialog.h.

◆ properties

KPropertiesDialog* KPropsDlgPlugin::properties
protected

Pointer to the dialog.

Definition at line 480 of file kpropertiesdialog.h.


The documentation for this class was generated from the following files:
  • kpropertiesdialog.h
  • kpropertiesdialog.cpp

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • Main Page
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

tdeio/tdefile

Skip menu "tdeio/tdefile"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdeioslave
  •   http
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdefile by doxygen 1.9.4
This website is maintained by Timothy Pearson.