Changeset View
Changeset View
Standalone View
Standalone View
krusader/Search/krsearchdialog.h
Show First 20 Lines • Show All 53 Lines • ▼ Show 20 Line(s) | 50 | public: | |||
---|---|---|---|---|---|
54 | void prepareGUI(); | 54 | void prepareGUI(); | ||
55 | 55 | | |||
56 | static KrSearchDialog *SearchDialog; | 56 | static KrSearchDialog *SearchDialog; | ||
57 | 57 | | |||
58 | public slots: | 58 | public slots: | ||
59 | void startSearch(); | 59 | void startSearch(); | ||
60 | void stopSearch(); | 60 | void stopSearch(); | ||
61 | void feedToListBox(); | 61 | void feedToListBox(); | ||
62 | void copyToClipBoard(); | | |||
63 | void slotFound(const FileItem &file, const QString &foundText); | 62 | void slotFound(const FileItem &file, const QString &foundText); | ||
64 | void closeDialog(bool isAccept = true); | 63 | void closeDialog(bool isAccept = true); | ||
65 | void executed(const QString &name); | 64 | void executed(const QString &name); | ||
66 | void currentChanged(KrViewItem *item); | 65 | void currentChanged(KrViewItem *item); | ||
67 | void contextMenu(const QPoint &); | 66 | void contextMenu(const QPoint &); | ||
68 | 67 | | |||
69 | virtual void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | 68 | virtual void keyPressEvent(QKeyEvent *e) Q_DECL_OVERRIDE; | ||
70 | virtual void closeEvent(QCloseEvent *e) Q_DECL_OVERRIDE; | 69 | virtual void closeEvent(QCloseEvent *e) Q_DECL_OVERRIDE; | ||
71 | virtual void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE; | 70 | virtual void resizeEvent(QResizeEvent *e) Q_DECL_OVERRIDE; | ||
72 | 71 | | |||
73 | protected slots: | 72 | protected slots: | ||
74 | void reject() Q_DECL_OVERRIDE; | 73 | void reject() Q_DECL_OVERRIDE; | ||
75 | 74 | | |||
76 | private: | 75 | private slots: | ||
77 | bool gui2query(); | | |||
78 | void editCurrent(); | 76 | void editCurrent(); | ||
79 | void viewCurrent(); | 77 | void viewCurrent(); | ||
80 | void compareByContent(); | 78 | void compareByContent(); | ||
79 | void copyToClipBoard(); | ||||
80 | | ||||
81 | private: | ||||
82 | bool gui2query(); | ||||
81 | 83 | | |||
82 | /** | 84 | /** | ||
83 | * Placing search query to clipboard is optional (opt-in). | 85 | * Placing search query to clipboard is optional (opt-in). | ||
84 | * So user has clipboard untact by default when opening found documents, | 86 | * So user has clipboard untact by default when opening found documents, | ||
85 | * but can enable it persistently by checking "Query to clipboard" checkbox. | 87 | * but can enable it persistently by checking "Query to clipboard" checkbox. | ||
86 | */ | 88 | */ | ||
87 | void tryPlaceSearchQueryToClipboard(); | 89 | void tryPlaceSearchQueryToClipboard(); | ||
88 | 90 | | |||
Show All 19 Lines | 91 | private: | |||
108 | KrSearchBar *searchBar; | 110 | KrSearchBar *searchBar; | ||
109 | QFrame *foundTextFrame; | 111 | QFrame *foundTextFrame; | ||
110 | 112 | | |||
111 | KRQuery *query; | 113 | KRQuery *query; | ||
112 | KRSearchMod *searcher; | 114 | KRSearchMod *searcher; | ||
113 | bool isBusy; | 115 | bool isBusy; | ||
114 | bool closed; | 116 | bool closed; | ||
115 | 117 | | |||
118 | QAction *viewAction; | ||||
119 | QAction *editAction; | ||||
120 | QAction *compareAction; | ||||
121 | QAction *copyAction; | ||||
122 | | ||||
116 | static QString lastSearchText; | 123 | static QString lastSearchText; | ||
117 | static int lastSearchType; | 124 | static int lastSearchType; | ||
118 | static bool lastSearchForCase; | 125 | static bool lastSearchForCase; | ||
119 | static bool lastContainsWholeWord; | 126 | static bool lastContainsWholeWord; | ||
120 | static bool lastContainsWithCase; | 127 | static bool lastContainsWithCase; | ||
121 | static bool lastSearchInSubDirs; | 128 | static bool lastSearchInSubDirs; | ||
122 | static bool lastSearchInArchives; | 129 | static bool lastSearchInArchives; | ||
123 | static bool lastFollowSymLinks; | 130 | static bool lastFollowSymLinks; | ||
124 | static bool lastContainsRegExp; | 131 | static bool lastContainsRegExp; | ||
125 | 132 | | |||
126 | int sizeX; | 133 | int sizeX; | ||
127 | int sizeY; | 134 | int sizeY; | ||
128 | }; | 135 | }; | ||
129 | 136 | | |||
130 | #endif | 137 | #endif |