diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2015-11-30 23:14:41 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-01-25 14:43:00 +0000 |
commit | 6fee5a88f37af0e58d2a44d12b0ef51d7771c459 (patch) | |
tree | bbbd6b14d4322ad0cecb08815a898ba4d83f74c8 /src/plugins/texteditor/basefilefind.h | |
parent | 96a445812186afb3cbe604ff3ac146ba3ac14d3e (diff) | |
download | qt-creator-6fee5a88f37af0e58d2a44d12b0ef51d7771c459.tar.gz |
Git: Support Git Grep
Task-number: QTCREATORBUG-3556
Change-Id: Ieca1bdaa39281a2e085340f045e5a48b875f7967
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.h')
-rw-r--r-- | src/plugins/texteditor/basefilefind.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h index 6200902ac0..31f56ed368 100644 --- a/src/plugins/texteditor/basefilefind.h +++ b/src/plugins/texteditor/basefilefind.h @@ -27,10 +27,13 @@ #define BASEFILEFIND_H #include "texteditor_global.h" +#include "utils/filesearch.h" #include <coreplugin/find/ifindfilter.h> #include <coreplugin/find/searchresultwindow.h> +#include <QFuture> + QT_BEGIN_NAMESPACE class QLabel; class QComboBox; @@ -44,8 +47,18 @@ class IFindSupport; } // namespace Core namespace TextEditor { + namespace Internal { class BaseFileFindPrivate; } +class TEXTEDITOR_EXPORT FileFindParameters +{ +public: + QString text; + Core::FindFlags flags; + QStringList nameFilters; + QVariant additionalParameters; +}; + class TEXTEDITOR_EXPORT BaseFileFind : public Core::IFindFilter { Q_OBJECT @@ -72,6 +85,8 @@ protected: virtual QString label() const = 0; // see Core::SearchResultWindow::startNewSearch virtual QString toolTip() const = 0; // see Core::SearchResultWindow::startNewSearch, // add %1 placeholder where the find flags should be put + virtual QFuture<Utils::FileSearchResultList> executeSearch( + const FileFindParameters ¶meters); void writeCommonSettings(QSettings *settings); void readCommonSettings(QSettings *settings, const QString &defaultFilter); @@ -102,4 +117,6 @@ private: } // namespace TextEditor +Q_DECLARE_METATYPE(TextEditor::FileFindParameters) + #endif // BASEFILEFIND_H |