summaryrefslogtreecommitdiffstats
path: root/tdeio/tdefile/kpropertiesdialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'tdeio/tdefile/kpropertiesdialog.h')
-rw-r--r--tdeio/tdefile/kpropertiesdialog.h88
1 files changed, 67 insertions, 21 deletions
diff --git a/tdeio/tdefile/kpropertiesdialog.h b/tdeio/tdefile/kpropertiesdialog.h
index 8fa1a5880..f30ba1494 100644
--- a/tdeio/tdefile/kpropertiesdialog.h
+++ b/tdeio/tdefile/kpropertiesdialog.h
@@ -63,7 +63,7 @@ namespace TDEIO { class Job; }
*
* This class must be created with (void)new KPropertiesDialog(...)
* It will take care of deleting itself.
- *
+ *
* If you are looking for more flexibility, see KFileMetaInfo and
* KFileMetaInfoWidget.
*/
@@ -82,9 +82,9 @@ public:
static bool canDisplay( KFileItemList _items );
/**
- * Brings up a Properties dialog, as shown above.
+ * Brings up a Properties dialog, as shown above.
* This is the normal constructor for
- * file-manager type applications, where you have a KFileItem instance
+ * file-manager type applications, where you have a KFileItem instance
* to work with. Normally you will use this
* method rather than the one below.
*
@@ -192,40 +192,40 @@ public:
virtual ~KPropertiesDialog();
/**
- * Immediately displays a Properties dialog using constructor with
- * the same parameters.
- * On MS Windows, if @p item points to a local file, native (non modal) property
+ * Immediately displays a Properties dialog using constructor with
+ * the same parameters.
+ * On MS Windows, if @p item points to a local file, native (non modal) property
* dialog is displayed (@p parent and @p modal are ignored in this case).
- *
+ *
* @return true on succesfull dialog displaying (can be false on win32).
* @since 3.4
*/
- static bool showDialog(KFileItem* item, TQWidget* parent = 0,
+ static bool showDialog(KFileItem* item, TQWidget* parent = 0,
const char* name = 0, bool modal = false);
/**
- * Immediately displays a Properties dialog using constructor with
- * the same parameters.
- * On MS Windows, if @p _url points to a local file, native (non modal) property
+ * Immediately displays a Properties dialog using constructor with
+ * the same parameters.
+ * On MS Windows, if @p _url points to a local file, native (non modal) property
* dialog is displayed (@p parent and @p modal are ignored in this case).
- *
+ *
* @return true on succesfull dialog displaying (can be false on win32).
* @since 3.4
*/
- static bool showDialog(const KURL& _url, TQWidget* parent = 0,
+ static bool showDialog(const KURL& _url, TQWidget* parent = 0,
const char* name = 0, bool modal = false);
/**
- * Immediately displays a Properties dialog using constructor with
- * the same parameters.
- * On MS Windows, if @p _items has one element and this element points
- * to a local file, native (non modal) property dialog is displayed
+ * Immediately displays a Properties dialog using constructor with
+ * the same parameters.
+ * On MS Windows, if @p _items has one element and this element points
+ * to a local file, native (non modal) property dialog is displayed
* (@p parent and @p modal are ignored in this case).
- *
+ *
* @return true on succesfull dialog displaying (can be false on win32).
* @since 3.4
*/
- static bool showDialog(const KFileItemList& _items, TQWidget* parent = 0,
+ static bool showDialog(const KFileItemList& _items, TQWidget* parent = 0,
const char* name = 0, bool modal = false);
/**
@@ -244,7 +244,7 @@ public:
void insertPlugin (KPropsDlgPlugin *plugin);
/**
- * The URL of the file that has its properties being displayed.
+ * The URL of the file that has its properties being displayed.
* This is only valid if the KPropertiesDialog was created/shown
* for one file or URL.
*
@@ -323,7 +323,7 @@ public:
* @since 3.1
*/
void showFileSharingPage();
-
+
/**
* Sets the file sharing page.
* This page is shown when calling showFileSharingPage().
@@ -716,6 +716,52 @@ private:
};
/**
+ * Properties plugin for extended attributes
+ * @internal
+ */
+class TDEIO_EXPORT TDEAttrPropsPlugin : public KPropsDlgPlugin
+{
+ TQ_OBJECT
+
+ public:
+ TDEAttrPropsPlugin(KPropertiesDialog *_props);
+ virtual ~TDEAttrPropsPlugin();
+
+ virtual void applyChanges();
+ static bool supports(KFileItemList _items);
+
+ private slots:
+ void slotListJobResult(TDEIO::Job *);
+ void slotReadJobResult(TDEIO::Job *);
+ void slotWriteJobResult(TDEIO::Job *);
+ void slotRemoveJobResult(TDEIO::Job *);
+ void slotAddEntry();
+ void slotDelEntry();
+ void slotDelButtonPressed();
+ void slotEditSavedAttrs();
+ void slotApplySavedAttrs();
+ void slotCheckNoAttrs();
+ void slotTabChanged();
+ void slotPreferences();
+ void slotApplyPreferences();
+ void slotUpdateTabs();
+
+ private:
+ class TDEAttrEntry;
+ class TDEAttrNamespaceTab;
+ class TDEAttrPropsPluginPrivate;
+ TDEAttrPropsPluginPrivate *d;
+
+ protected:
+ void updateTab(TQCString ns, TQString label, TQString tip);
+ TDEAttrNamespaceTab* currentNamespaceTab();
+ void updateComboBoxes();
+ TDEAttrEntry *addEntry(TDEAttrNamespaceTab *tab = nullptr);
+ void delEntry(TDEAttrPropsPlugin::TDEAttrEntry *entry);
+ void connectEntry(TDEAttrEntry *entry);
+};
+
+/**
* Properties plugin for device .desktop files
* @internal
*/