kio: format and indent

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2023-06-19 02:54:36 +03:00
parent 7b38e92e43
commit af7077a0a3
3 changed files with 758 additions and 761 deletions

File diff suppressed because it is too large Load diff

View file

@ -55,276 +55,263 @@ namespace KIO { class Job; }
*/
class KIO_EXPORT KPropertiesDialog : public KPageDialog
{
Q_OBJECT
Q_OBJECT
public:
/**
* Determine whether there are any property pages available for the
* given file items.
* @param _items the list of items to check.
* @return true if there are any property pages, otherwise false.
*/
static bool canDisplay(const KFileItemList &items);
/**
* Determine whether there are any property pages available for the
* given file items.
* @param _items the list of items to check.
* @return true if there are any property pages, otherwise false.
*/
static bool canDisplay( const KFileItemList& _items );
/**
* Brings up a Properties dialog, as shown above.
* This is the normal constructor for
* file-manager type applications, where you have a KFileItem instance
* to work with. Normally you will use this
* method rather than the one below.
*
* @param item file item whose properties should be displayed.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
explicit KPropertiesDialog(const KFileItem &item, QWidget* parent = nullptr);
/**
* Brings up a Properties dialog, as shown above.
* This is the normal constructor for
* file-manager type applications, where you have a KFileItem instance
* to work with. Normally you will use this
* method rather than the one below.
*
* @param item file item whose properties should be displayed.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
explicit KPropertiesDialog( const KFileItem& item,
QWidget* parent = 0 );
/**
* \overload
*
* You use this constructor for cases where you have a number of items,
* rather than a single item. Be careful which methods you use
* when passing a list of files or URLs, since some of them will only
* work on the first item in a list.
*
* @param _items list of file items whose properties should be displayed.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
explicit KPropertiesDialog(const KFileItemList &items, QWidget *parent = nullptr);
/**
* \overload
*
* You use this constructor for cases where you have a number of items,
* rather than a single item. Be careful which methods you use
* when passing a list of files or URLs, since some of them will only
* work on the first item in a list.
*
* @param _items list of file items whose properties should be displayed.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
explicit KPropertiesDialog( const KFileItemList& _items,
QWidget *parent = 0 );
/**
* Brings up a Properties dialog. Convenience constructor for
* non-file-manager applications, where you have a KUrl rather than a
* KFileItem or KFileItemList.
*
* @param _url the URL whose properties should be displayed
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*
* IMPORTANT: This constructor, together with exec(), leads to a grave
* display bug (due to KIO::stat() being run before the dialog has all the
* necessary information). Do not use this combination for now.
* TODO: Check if the above is still true with Qt4.
* For local files with a known mimetype, simply create a KFileItem and pass
* it to the other constructor.
*/
explicit KPropertiesDialog(const KUrl &url, QWidget *parent = nullptr);
/**
* Brings up a Properties dialog. Convenience constructor for
* non-file-manager applications, where you have a KUrl rather than a
* KFileItem or KFileItemList.
*
* @param _url the URL whose properties should be displayed
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*
* IMPORTANT: This constructor, together with exec(), leads to a grave
* display bug (due to KIO::stat() being run before the dialog has all the
* necessary information). Do not use this combination for now.
* TODO: Check if the above is still true with Qt4.
* For local files with a known mimetype, simply create a KFileItem and pass
* it to the other constructor.
*/
explicit KPropertiesDialog( const KUrl& _url,
QWidget* parent = 0 );
/**
* 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 type applications.
*
* @param _tempUrl template used for reading only
* @param _currentDir directory where the file will be written to
* @param _defaultName something to put in the name field,
* like mimetype.desktop
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
KPropertiesDialog(const KUrl &tempUrl, const KUrl &currentDir,
const QString &defaultName, QWidget *parent = nullptr);
/**
* 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 type applications.
*
* @param _tempUrl template used for reading only
* @param _currentDir directory where the file will be written to
* @param _defaultName something to put in the name field,
* like mimetype.desktop
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
*/
KPropertiesDialog( const KUrl& _tempUrl, const KUrl& _currentDir,
const QString& _defaultName,
QWidget* parent = 0 );
/**
* Creates an empty properties dialog (for applications that want use
* a standard dialog, but for things not doable via the plugin-mechanism).
*
* @param title is the string display as the "filename" in the caption of the dialog.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
* @param modal tells the dialog whether it should be modal.
*/
explicit KPropertiesDialog(const QString &title, QWidget *parent = nullptr);
/**
* Creates an empty properties dialog (for applications that want use
* a standard dialog, but for things not doable via the plugin-mechanism).
*
* @param title is the string display as the "filename" in the caption of the dialog.
* @param parent is the parent of the dialog widget.
* @param name is the internal name.
* @param modal tells the dialog whether it should be modal.
*/
explicit KPropertiesDialog(const QString& title,
QWidget* parent = 0);
/**
* 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.
*/
virtual ~KPropertiesDialog();
/**
* 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.
*/
virtual ~KPropertiesDialog();
/**
* Immediately displays a Properties dialog using constructor with
* the same parameters.
*
* @return true on successful dialog displaying.
*/
static bool showDialog(const KFileItem &item, QWidget *parent = nullptr, bool modal = true);
/**
* 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 successful dialog displaying (can be false on win32).
*/
static bool showDialog(const KFileItem& item, QWidget* parent = 0,
bool modal = true);
/**
* Immediately displays a Properties dialog using constructor with
* the same parameters.
*
* @return true on successful dialog displaying.
*/
static bool showDialog(const KUrl &url, QWidget *parent = nullptr, bool modal = true);
/**
* 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 successful dialog displaying (can be false on win32).
*/
static bool showDialog(const KUrl& _url, QWidget* parent = 0,
bool modal = true);
/**
* 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 successful dialog displaying (can be false on win32).
*/
static bool showDialog(const KFileItemList &items, QWidget *parent = nullptr, bool modal = true);
/**
* 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 successful dialog displaying (can be false on win32).
*/
static bool showDialog(const KFileItemList& _items, QWidget* parent = 0,
bool modal = true);
/**
* 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 KPropertiesDialogPlugin
* and implement all the methods. If you define a service .desktop file
* for your plugin, you do not need to call insertPlugin().
*
* @param plugin is a pointer to the KPropertiesDialogPlugin. The Properties
* dialog will do destruction for you. The KPropertiesDialogPlugin \b must
* have been created with the KPropertiesDialog as its parent.
* @see KPropertiesDialogPlugin
*/
void insertPlugin(KPropertiesDialogPlugin *plugin);
/**
* 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 KPropertiesDialogPlugin
* and implement all the methods. If you define a service .desktop file
* for your plugin, you do not need to call insertPlugin().
*
* @param plugin is a pointer to the KPropertiesDialogPlugin. The Properties
* dialog will do destruction for you. The KPropertiesDialogPlugin \b must
* have been created with the KPropertiesDialog as its parent.
* @see KPropertiesDialogPlugin
*/
void insertPlugin (KPropertiesDialogPlugin *plugin);
/**
* 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.
*
* @return a parsed URL.
*/
KUrl kurl() const;
/**
* 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.
*
* @return a parsed URL.
*/
KUrl kurl() const;
/**
* @return the file item for which the dialog is shown
*
* Warning: this method returns the first item of the list.
* This means that you should use this only if you are sure the dialog is used
* for a single item. Otherwise, you probably want items() instead.
*/
KFileItem& item();
/**
* @return the file item for which the dialog is shown
*
* Warning: this method returns the first item of the list.
* This means that you should use this only if you are sure the dialog is used
* for a single item. Otherwise, you probably want items() instead.
*/
KFileItem& item();
/**
* @return the items for which the dialog is shown
*/
KFileItemList items() const;
/**
* @return the items for which the dialog is shown
*/
KFileItemList items() const;
/**
* If the dialog is being built from a template, this method
* returns the current directory. If no template, it returns QString().
* See the template form of the constructor.
*
* @return the current directory or QString()
*/
KUrl currentDir() const;
/**
* If the dialog is being built from a template, this method
* returns the current directory. If no template, it returns QString().
* See the template form of the constructor.
*
* @return the current directory or QString()
*/
KUrl currentDir() const;
/**
* If the dialog is being built from a template, this method
* returns the default name. If no template, it returns QString().
* See the template form of the constructor.
* @return the default name or QString()
*/
QString defaultName() const;
/**
* If the dialog is being built from a template, this method
* returns the default name. If no template, it returns QString().
* See the template form of the constructor.
* @return the default name or QString()
*/
QString defaultName() const;
/**
* 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 or URL.
* @param _newUrl the new URL
*/
void updateUrl(const KUrl &newUrl);
/**
* 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 or URL.
* @param _newUrl the new URL
*/
void updateUrl( const KUrl& _newUrl );
/**
* Renames the item to the specified name. This can only be called if
* the dialog applies to a single file or URL.
* @param _name new filename, encoded.
* \see FilePropsDialogPlugin::applyChanges
*/
void rename(const QString &name);
/**
* Renames the item to the specified name. This can only be called if
* the dialog applies to a single file or URL.
* @param _name new filename, encoded.
* \see FilePropsDialogPlugin::applyChanges
*/
void rename( const QString& _name );
/**
* To abort applying changes.
*/
void abortApplying();
/**
* To abort applying changes.
*/
void abortApplying();
/**
* Shows the page that was previously set by
* setFileSharingPage(), or does nothing if no page
* was set yet.
* \see setFileSharingPage
*/
void showFileSharingPage();
/**
* Shows the page that was previously set by
* setFileSharingPage(), or does nothing if no page
* was set yet.
* \see setFileSharingPage
*/
void showFileSharingPage();
/**
* Sets the file sharing page.
* This page is shown when calling showFileSharingPage().
*
* @param page the page to set
* \see showFileSharingPage
*/
void setFileSharingPage(QWidget *page);
/**
* Sets the file sharing page.
* This page is shown when calling showFileSharingPage().
*
* @param page the page to set
* \see showFileSharingPage
*/
void setFileSharingPage(QWidget* page);
/**
* Call this to make the filename lineedit readonly, to prevent the user
* from renaming the file.
* \param ro true if the lineedit should be read only
*/
void setFileNameReadOnly( bool ro );
/**
* Call this to make the filename lineedit readonly, to prevent the user
* from renaming the file.
* \param ro true if the lineedit should be read only
*/
void setFileNameReadOnly(bool ro);
public Q_SLOTS:
/**
* Called when the user presses 'Ok'.
*/
virtual void slotOk(); // Deletes the PropertiesDialog instance
/**
* Called when the user presses 'Cancel'.
*/
virtual void slotCancel(); // Deletes the PropertiesDialog instance
/**
* Called when the user presses 'Ok'.
*/
virtual void slotOk(); // Deletes the PropertiesDialog instance
/**
* Called when the user presses 'Cancel'.
*/
virtual void slotCancel(); // Deletes the PropertiesDialog instance
Q_SIGNALS:
/**
* This signal is emitted when the Properties Dialog is closed (for
* example, with OK or Cancel buttons)
*/
void propertiesClosed();
/**
* This signal is emitted when the Properties Dialog is closed (for
* example, with OK or Cancel buttons)
*/
void propertiesClosed();
/**
* This signal is emitted when the properties changes are applied (for
* example, with the OK button)
*/
void applied();
/**
* This signal is emitted when the properties changes are applied (for
* example, with the OK button)
*/
void applied();
/**
* This signal is emitted when the properties changes are aborted (for
* example, with the Cancel button)
*/
/**
* This signal is emitted when the properties changes are aborted (for
* example, with the Cancel button)
*/
void canceled();
/**
* Emitted before changes to @p oldUrl are saved as @p newUrl.
* The receiver may change @p newUrl to point to an alternative
* save location.
*/
void saveAs(const KUrl &oldUrl, KUrl &newUrl);
void canceled();
/**
* Emitted before changes to @p oldUrl are saved as @p newUrl.
* The receiver may change @p newUrl to point to an alternative
* save location.
*/
void saveAs(const KUrl &oldUrl, KUrl &newUrl);
Q_SIGNALS:
void leaveModality();
void leaveModality();
private:
class KPropertiesDialogPrivate;
KPropertiesDialogPrivate* const d;
class KPropertiesDialogPrivate;
KPropertiesDialogPrivate* const d;
Q_DISABLE_COPY(KPropertiesDialog)
};
@ -345,53 +332,51 @@ private:
*/
class KIO_EXPORT KPropertiesDialogPlugin : public QObject
{
Q_OBJECT
Q_OBJECT
public:
/**
* Constructor
* To insert tabs into the properties dialog, use the add methods provided by
* KPageDialog (the properties dialog is a KPageDialog).
*/
KPropertiesDialogPlugin( KPropertiesDialog *_props );
virtual ~KPropertiesDialogPlugin();
/**
* Constructor
* To insert tabs into the properties dialog, use the add methods provided by
* KPageDialog (the properties dialog is a KPageDialog).
*/
KPropertiesDialogPlugin( KPropertiesDialog *props);
virtual ~KPropertiesDialogPlugin();
/**
* Applies all changes to the file.
* This function is called when the user presses 'Ok'. The last plugin inserted
* is called first.
*/
virtual void applyChanges();
/**
* Applies all changes to the file.
* This function is called when the user presses 'Ok'. The last plugin inserted
* is called first.
*/
virtual void applyChanges();
void setDirty( bool b );
bool isDirty() const;
void setDirty(bool b);
bool isDirty() const;
public Q_SLOTS:
void setDirty(); // same as setDirty( true ). TODO KDE5: void setDirty(bool dirty=true);
void setDirty(); // same as setDirty( true ). TODO KDE5: void setDirty(bool dirty=true);
Q_SIGNALS:
/**
* 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 or if you have called setDirty() before.
*/
void changed();
/**
* 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 or if you have called setDirty() before.
*/
void changed();
protected:
/**
* Pointer to the dialog
*/
KPropertiesDialog *properties;
/**
* Pointer to the dialog
*/
KPropertiesDialog *properties;
/**
* Returns the font height.
*/
int fontHeight() const;
/**
* Returns the font height.
*/
int fontHeight() const;
private:
class KPropertiesDialogPluginPrivate;
KPropertiesDialogPluginPrivate* const d;
class KPropertiesDialogPluginPrivate;
KPropertiesDialogPluginPrivate* const d;
};
#endif
#endif // KPROPERTIESDIALOG_H

View file

@ -44,57 +44,58 @@ namespace KDEPrivate
*/
class KFilePropsPlugin : public KPropertiesDialogPlugin
{
Q_OBJECT
Q_OBJECT
public:
/**
* Constructor
*/
KFilePropsPlugin( KPropertiesDialog *_props );
virtual ~KFilePropsPlugin();
/**
* Constructor
*/
KFilePropsPlugin(KPropertiesDialog *props);
virtual ~KFilePropsPlugin();
/**
* Applies all changes made. This plugin must be always the first
* plugin in the dialog, since this function may rename the file which
* may confuse other applyChanges functions.
*/
virtual void applyChanges();
/**
* Applies all changes made. This plugin must be always the first
* plugin in the dialog, since this function may rename the file which
* may confuse other applyChanges functions.
*/
virtual void applyChanges();
/**
* Tests whether the files specified by _items need a 'General' plugin.
*/
static bool supports( const KFileItemList& _items );
/**
* Tests whether the files specified by _items need a 'General' plugin.
*/
static bool supports(const KFileItemList &items);
/**
* Called after all plugins applied their changes
*/
void postApplyChanges();
/**
* Called after all plugins applied their changes
*/
void postApplyChanges();
void setFileNameReadOnly( bool ro );
void setFileNameReadOnly(bool ro);
protected Q_SLOTS:
void slotEditFileType();
void slotCopyFinished( KJob * );
void slotFileRenamed( KIO::Job *, const KUrl &, const KUrl & );
void slotDirSizeUpdate();
void slotDirSizeFinished( KJob * );
void slotFoundMountPoint( const QString& mp, quint64 kibSize,
quint64 kibUsed, quint64 kibAvail );
void slotSizeStop();
void slotSizeDetermine();
void slotEditFileType();
void slotCopyFinished(KJob *);
void slotFileRenamed(KIO::Job *, const KUrl &, const KUrl &);
void slotDirSizeUpdate();
void slotDirSizeFinished(KJob *);
void slotFoundMountPoint(const QString &mp, quint64 kibSize,
quint64 kibUsed, quint64 kibAvail);
void slotSizeStop();
void slotSizeDetermine();
Q_SIGNALS:
void leaveModality();
void leaveModality();
private Q_SLOTS:
void nameFileChanged(const QString &text );
void slotIconChanged();
void nameFileChanged(const QString &text);
void slotIconChanged();
private:
bool enableIconButton() const;
void determineRelativePath( const QString & path );
void applyIconChanges();
bool enableIconButton() const;
void determineRelativePath(const QString &path);
void applyIconChanges();
class KFilePropsPluginPrivate;
KFilePropsPluginPrivate* const d;
class KFilePropsPluginPrivate;
KFilePropsPluginPrivate* const d;
};
/**
@ -105,61 +106,60 @@ private:
*/
class KFilePermissionsPropsPlugin : public KPropertiesDialogPlugin
{
Q_OBJECT
Q_OBJECT
public:
enum PermissionsMode {
PermissionsOnlyFiles = 0,
PermissionsOnlyDirs = 1,
PermissionsOnlyLinks = 2,
PermissionsMixed = 3
};
enum PermissionsMode {
PermissionsOnlyFiles = 0,
PermissionsOnlyDirs = 1,
PermissionsOnlyLinks = 2,
PermissionsMixed = 3
};
enum PermissionsTarget {
PermissionsOwner = 0,
PermissionsGroup = 1,
PermissionsOthers = 2
};
enum PermissionsTarget {
PermissionsOwner = 0,
PermissionsGroup = 1,
PermissionsOthers = 2
};
/**
* Constructor
*/
KFilePermissionsPropsPlugin( KPropertiesDialog *_props );
virtual ~KFilePermissionsPropsPlugin();
/**
* Constructor
*/
KFilePermissionsPropsPlugin(KPropertiesDialog *props);
virtual ~KFilePermissionsPropsPlugin();
virtual void applyChanges();
virtual void applyChanges();
/**
* Tests whether the file specified by _items needs a 'Permissions' plugin.
*/
static bool supports( const KFileItemList& _items );
/**
* Tests whether the file specified by _items needs a 'Permissions' plugin.
*/
static bool supports(const KFileItemList &items);
private Q_SLOTS:
void slotChmodResult( KJob * );
void slotShowAdvancedPermissions();
void slotChmodResult(KJob *);
void slotShowAdvancedPermissions();
Q_SIGNALS:
void leaveModality();
void leaveModality();
private:
void setComboContent(QComboBox *combo, PermissionsTarget target,
mode_t permissions, mode_t partial);
bool isIrregular(mode_t permissions, bool isDir, bool isLink);
void enableAccessControls(bool enable);
void updateAccessControls();
void getPermissionMasks(mode_t &andFilePermissions,
mode_t &andDirPermissions,
mode_t &orFilePermissions,
mode_t &orDirPermissions);
void setComboContent(QComboBox *combo, PermissionsTarget target,
mode_t permissions, mode_t partial);
bool isIrregular(mode_t permissions, bool isDir, bool isLink);
void enableAccessControls(bool enable);
void updateAccessControls();
void getPermissionMasks(mode_t &andFilePermissions,
mode_t &andDirPermissions,
mode_t &orFilePermissions,
mode_t &orDirPermissions);
static const mode_t permissionsMasks[3];
static const mode_t standardPermissions[4];
static const char *permissionsTexts[4][4];
static const mode_t permissionsMasks[3];
static const mode_t standardPermissions[4];
static const char *permissionsTexts[4][4];
static mode_t fperm[3][4];
static mode_t fperm[3][4];
class KFilePermissionsPropsPluginPrivate;
KFilePermissionsPropsPluginPrivate* const d;
class KFilePermissionsPropsPluginPrivate;
KFilePermissionsPropsPluginPrivate* const d;
};
@ -173,21 +173,21 @@ private:
*/
class KUrlPropsPlugin : public KPropertiesDialogPlugin
{
Q_OBJECT
Q_OBJECT
public:
/**
* Constructor
*/
KUrlPropsPlugin( KPropertiesDialog *_props );
virtual ~KUrlPropsPlugin();
/**
* Constructor
*/
KUrlPropsPlugin(KPropertiesDialog *props);
virtual ~KUrlPropsPlugin();
virtual void applyChanges();
virtual void applyChanges();
static bool supports( const KFileItemList& _items );
static bool supports(const KFileItemList &items);
private:
class KUrlPropsPluginPrivate;
KUrlPropsPluginPrivate* const d;
class KUrlPropsPluginPrivate;
KUrlPropsPluginPrivate* const d;
};
@ -197,27 +197,27 @@ private:
*/
class KDevicePropsPlugin : public KPropertiesDialogPlugin
{
Q_OBJECT
Q_OBJECT
public:
KDevicePropsPlugin( KPropertiesDialog *_props );
virtual ~KDevicePropsPlugin();
KDevicePropsPlugin(KPropertiesDialog *props);
virtual ~KDevicePropsPlugin();
virtual void applyChanges();
virtual void applyChanges();
static bool supports( const KFileItemList& _items );
static bool supports(const KFileItemList &items);
private Q_SLOTS:
void slotActivated( int );
void slotDeviceChanged();
void slotFoundMountPoint( const QString& mp, quint64 kibSize,
quint64 kibUsed, quint64 kibAvail );
void slotActivated(int);
void slotDeviceChanged();
void slotFoundMountPoint(const QString &mp, quint64 kibSize,
quint64 kibUsed, quint64 kibAvail);
private:
void updateInfo();
void updateInfo();
private:
class KDevicePropsPluginPrivate;
KDevicePropsPluginPrivate* const d;
class KDevicePropsPluginPrivate;
KDevicePropsPluginPrivate* const d;
};
/**
@ -230,30 +230,30 @@ private:
*/
class KDesktopPropsPlugin : public KPropertiesDialogPlugin
{
Q_OBJECT
Q_OBJECT
public:
/**
* Constructor
*/
KDesktopPropsPlugin( KPropertiesDialog *_props );
virtual ~KDesktopPropsPlugin();
/**
* Constructor
*/
KDesktopPropsPlugin( KPropertiesDialog *props);
virtual ~KDesktopPropsPlugin();
virtual void applyChanges();
virtual void applyChanges();
static bool supports( const KFileItemList& _items );
static bool supports(const KFileItemList &items);
public Q_SLOTS:
void slotAddFiletype();
void slotDelFiletype();
void slotBrowseExec();
void slotAdvanced();
void slotAddFiletype();
void slotDelFiletype();
void slotBrowseExec();
void slotAdvanced();
private:
void checkCommandChanged();
void checkCommandChanged();
private:
class KDesktopPropsPluginPrivate;
KDesktopPropsPluginPrivate * const d;
class KDesktopPropsPluginPrivate;
KDesktopPropsPluginPrivate * const d;
};
}