KPropertiesDialog Class Reference
The main properties dialog class. More...
#include <kpropertiesdialog.h>
Inheritance diagram for KPropertiesDialog:


Public Slots | |
virtual void | slotOk () |
virtual void | slotCancel () |
Signals | |
void | propertiesClosed () |
void | applied () |
void | canceled () |
void | saveAs (const KURL &oldUrl, KURL &newUrl) |
Public Member Functions | |
KPropertiesDialog (KFileItem *item, QWidget *parent=0L, const char *name=0L, bool modal=false, bool autoShow=true) | |
KPropertiesDialog (KFileItemList _items, QWidget *parent=0L, const char *name=0L, bool modal=false, bool autoShow=true) | |
KPropertiesDialog (const KURL &_url, mode_t _mode, QWidget *parent=0L, const char *name=0L, bool modal=false, bool autoShow=true) KDE_DEPRECATED | |
KPropertiesDialog (const KURL &_url, QWidget *parent=0L, const char *name=0L, bool modal=false, bool autoShow=true) | |
KPropertiesDialog (const KURL &_tempUrl, const KURL &_currentDir, const QString &_defaultName, QWidget *parent=0L, const char *name=0L, bool modal=false, bool autoShow=true) | |
KPropertiesDialog (const QString &title, QWidget *parent=0L, const char *name=0L, bool modal=false) | |
virtual | ~KPropertiesDialog () |
void | insertPlugin (KPropsDlgPlugin *plugin) |
const KURL & | kurl () const |
KFileItem * | item () |
KFileItemList | items () const |
KDE_DEPRECATED KDialogBase * | dialog () |
KDE_DEPRECATED const KDialogBase * | dialog () const |
const KURL & | currentDir () const |
const QString & | defaultName () const |
void | updateUrl (const KURL &_newUrl) |
void | rename (const QString &_name) |
void | abortApplying () |
void | showFileSharingPage () |
void | setFileSharingPage (QWidget *page) |
void | setFileNameReadOnly (bool ro) |
Static Public Member Functions | |
bool | canDisplay (KFileItemList _items) |
Protected Member Functions | |
virtual void | virtual_hook (int id, void *data) |
Detailed Description
The main properties dialog class.A Properties Dialog is a dialog which displays various information about a particular file or URL, or several ones. This main class holds various related classes, which are instantiated in the form of tab entries in the tabbed dialog that this class provides. The various tabs themselves will let the user view or change information about the file or URL.
This class must be created with (void)new KPropertiesDialog(...) It will take care of deleting itself.
Definition at line 65 of file kpropertiesdialog.h.
Constructor & Destructor Documentation
|
Brings up a Properties dialog. Normal constructor for file-manager-like applications. Normally you will use this method rather than the one below.
References KURL::isEmpty(), and KURL::url(). |
|
Brings up a Properties dialog. Normal constructor for file-manager-like applications.
References KURL::isEmpty(). |
|
Brings up a Properties dialog. Convenience constructor for non-file-manager applications.
References KIO::NetAccess::stat(), and KIO::UDSEntry. |
|
Brings up a Properties dialog. Convenience constructor for non-file-manager applications.
References KIO::NetAccess::stat(), and KIO::UDSEntry. |
|
Creates a properties dialog for a new .desktop file (whose name is not known yet), based on a template. Special constructor for "File / New" in file-manager applications.
References KURL::isEmpty(). |
|
Creates an empty properties dialog (for applications that want use a standard dialog, but for things not doable via the plugin-mechanism).
|
|
Cleans up the properties dialog and frees any associated resources, including the dialog itself. Note that when a properties dialog is closed it cleans up and deletes itself. Definition at line 304 of file kpropertiesdialog.cpp. |
Member Function Documentation
|
References KFileMetaPropsPlugin::supports(), KFilePermissionsPropsPlugin::supports(), and KFilePropsPlugin::supports(). |
|
Adds a "3rd party" properties plugin to the dialog. Useful for extending the properties mechanism. To create a new plugin type, inherit from the base class KPropsPlugin and implement all the methods. If you define a service .desktop file for your plugin, you do not need to call insertPlugin().
|
|
|
Referenced by KFileMetaPropsPlugin::KFileMetaPropsPlugin(), KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin(), and KFilePropsPlugin::KFilePropsPlugin(). |
|
Referenced by KFilePermissionsPropsPlugin::applyChanges(), KFileSharePropsPlugin::applyChanges(), KFileMetaPropsPlugin::KFileMetaPropsPlugin(), KFilePermissionsPropsPlugin::KFilePermissionsPropsPlugin(), KFilePropsPlugin::KFilePropsPlugin(), and KFilePropsPlugin::postApplyChanges(). |
|
|
|
If we are building this dialog from a template,.
Referenced by KFilePropsPlugin::KFilePropsPlugin(). |
|
If we are building this dialog from a template,.
Referenced by KFilePropsPlugin::KFilePropsPlugin(). |
|
Updates the item url (either called by rename or because a global apps/mimelnk desktop file is being saved) Can only be called if the dialog applies to a single file/URL.
References endl(), KURL::isEmpty(), kdDebug(), saveAs(), and KURL::url(). Referenced by KFilePropsPlugin::applyChanges(), and rename(). |
|
#see FilePropsPlugin::applyChanges Can only be called if the dialog applies to a single file/URL.
References KURL::addPath(), endl(), KURL::isEmpty(), kdDebug(), KURL::setFileName(), updateUrl(), and KURL::url(). Referenced by KFilePropsPlugin::applyChanges(). |
|
To abort applying changes. Definition at line 517 of file kpropertiesdialog.cpp. Referenced by KFilePropsPlugin::applyChanges(), and KFileSharePropsPlugin::applyChanges(). |
|
Shows the page that was previously set by setFileSharingPage, or does nothing if no page was set yet. #see setFileSharingPage
References KDialogBase::pageIndex(), and KDialogBase::showPage(). |
|
Sets the file sharing page. This page is shown when calling showFileSharingPage. #see showFileSharingPage
|
|
Call this to make the filename lineedit readonly, to prevent the user from renaming the file.
References KFilePropsPlugin::setFileNameReadOnly(). |
|
Called when the user presses 'Ok'.
Reimplemented from KDialogBase. Definition at line 330 of file kpropertiesdialog.cpp. References KPropsDlgPlugin::applyChanges(), endl(), KPropsDlgPlugin::isDirty(), kdDebug(), KFilePropsPlugin::postApplyChanges(), propertiesClosed(), and KPropsDlgPlugin::setDirty(). |
|
Emitted when we have finished with the properties (be it Apply or Cancel).
Referenced by slotOk(). |
|
Emitted before changes to
The receiver may change Referenced by updateUrl(). |
The documentation for this class was generated from the following files: