From ab39a5952001cdb3d1b9ca693da7f8e246558fb8 Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 25 Nov 2009 08:46:04 +0000 Subject: Restore the "Edit->Selection" menu from Konqueror 3 for file management. It includes the actions "Select All" and "Select Items Matching a Pattern". This feature will be in KDE 4.4. FEATURE: 197536 svn path=/trunk/KDE/kdebase/apps/; revision=1053976 --- src/dolphinpart.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/dolphinpart.h') diff --git a/src/dolphinpart.h b/src/dolphinpart.h index ee6e38417..afbf387cc 100644 --- a/src/dolphinpart.h +++ b/src/dolphinpart.h @@ -22,6 +22,9 @@ #include #include + +#include + class KNewMenu; class DolphinViewActionHandler; class QActionGroup; @@ -175,6 +178,18 @@ private Q_SLOTS: */ void slotEditMimeType(); + /** + * Connected to the "select_items_matching" action. + * Opens a dialog which permits to select all items matching a pattern like "*.jpg". + */ + void slotSelectItemsMatchingPattern(); + + /** + * Connected to the "unselect_items_matching" action. + * Opens a dialog which permits to unselect all items matching a pattern like "*.jpg". + */ + void slotUnselectItemsMatchingPattern(); + /** * Open a terminal window, starting with the current directory. */ @@ -205,6 +220,11 @@ private: const QString& text, const QString& url, QActionGroup* actionGroup); + void openSelectionDialog(const QString& title, const QString& text, + QItemSelectionModel::SelectionFlags command); + + QItemSelection childrenMatchingPattern(const QModelIndex& parent, const QRegExp& patternRegExp); + private: DolphinView* m_view; DolphinViewActionHandler* m_actionHandler; -- cgit v1.3