┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinpart.h
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2009-11-25 08:46:04 +0000
committerFrank Reininghaus <[email protected]>2009-11-25 08:46:04 +0000
commitab39a5952001cdb3d1b9ca693da7f8e246558fb8 (patch)
treea19f20c2fc6f478de371c694e9fdd98c4e201cee /src/dolphinpart.h
parenta6a253667e20c551fba128cc68891f52470da524 (diff)
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
Diffstat (limited to 'src/dolphinpart.h')
-rw-r--r--src/dolphinpart.h20
1 files changed, 20 insertions, 0 deletions
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 <kparts/part.h>
#include <kparts/browserextension.h>
+
+#include <QItemSelectionModel>
+
class KNewMenu;
class DolphinViewActionHandler;
class QActionGroup;
@@ -176,6 +179,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.
*/
void slotOpenTerminal();
@@ -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;