public slots:
/**
* Handles the dropping of URLs to the given
- * destination. A context menu with the options
- * 'Move Here', 'Copy Here', 'Link Here' and
- * 'Cancel' is offered to the user.
- * @param urls List of URLs which have been
- * dropped.
- * @param destination Destination URL, where the
- * list or URLs should be moved,
- * copied or linked to.
+ * destination. This is only called by the TreeViewSidebarPage.
*/
void dropUrls(const KUrl::List& urls,
const KUrl& destination);
virtual void readProperties(const KConfigGroup& group);
private slots:
+ /**
+ * Opens the dialog for creating a directory. Is connected
+ * with the key shortcut for "new directory" (F10).
+ */
+ void createDir();
+
/** Updates the 'Create New...' sub menu. */
void updateNewMenu();
void toggleSortOrder();
/** Switches between sorting by categories or not. */
- void toggleSortCategorization();
-
- /** Switches between showing the size as additional information for the item or not. */
- void toggleSizeInfo();
-
- /** Switchtes between showing the date as additional information for the item or not. */
- void toggleDateInfo();
-
- /** Switchtes between showing the permissions as additional information for the item or not. */
- void togglePermissionsInfo();
-
- /** Switchtes between showing the owner as additional information for the item or not. */
- void toggleOwnerInfo();
+ void toggleSortCategorization(bool);
- /** Switchtes between showing the group as additional information for the item or not. */
- void toggleGroupInfo();
-
- /** Switches between showing the MIME type as additional information for the item or not. */
- void toggleMimeInfo();
+ /**
+ * Switches on or off the displaying of additional information
+ * as specified by \a action.
+ */
+ void toggleAdditionalInfo(QAction* action);
/**
* Switches between one and two views:
void stopLoading();
/** Switches between showing a preview of the file content and showing the icon. */
- void togglePreview();
+ void togglePreview(bool);
/**
- * Switches between showing and hiding of hidden marked files dependent
- * from the current state of the 'Show Hidden Files' menu toggle action.
+ * Switches between showing and hiding of hidden marked files
*/
- void toggleShowHiddenFiles();
+ void toggleShowHiddenFiles(bool);
/**
- * Toggles between showing and hiding of the filter bar dependent
- * from the current state of the 'Show Filter Bar' menu toggle action.
+ * Toggles between showing and hiding of the filter bar
*/
- void toggleFilterBarVisibility();
+ void toggleFilterBarVisibility(bool show);
/** Increases the size of the current set view mode. */
void zoomIn();
void zoomOut();
/**
- * Toggles between edit and brose mode of the navigation bar.
+ * Toggles between edit and browse mode of the navigation bar.
*/
void toggleEditLocation();
void slotSortOrderChanged(Qt::SortOrder order);
/** Updates the state of the 'Additional Information' actions. */
- void slotAdditionalInfoChanged(KFileItemDelegate::InformationList info);
+ void slotAdditionalInfoChanged();
+
+ /** Updates the state of the 'Show Full Location' action. */
+ void slotEditableStateChanged(bool editable);
/**
* Updates the state of the 'Edit' menu actions and emits
*/
void updateSplitAction();
- /**
- * Helper method for the slots toggleDateInfo(), toggleSizeInfo()
- * and toggleMimeInfo(). Applies \a info dependent from the current
- * checked state of the action \a actionName to the file item delegate.
- */
- void toggleAdditionalInfo(const char* actionName,
- KFileItemDelegate::Information info);
-
private:
/**
* DolphinMainWindow supports up to two views beside each other.