diff options
author | Orgad Shaneh <orgad.shaneh@audiocodes.com> | 2016-02-07 23:35:41 +0200 |
---|---|---|
committer | Orgad Shaneh <orgads@gmail.com> | 2016-02-10 13:10:17 +0000 |
commit | 84f2875f6d410588bd01f1d3a573b1ec0f02ef3c (patch) | |
tree | 8e109ec2e949f2cb9fb4998f891b296a9cfc5324 /src/plugins/texteditor/basefilefind.h | |
parent | fcdb286cece402be3c1498b79ac20d6b5c69f428 (diff) |
Git: Support tree argument for Grep
Change-Id: Ic7dfcd8bad98223d68725f1a0c1f103ad8ea4e0f
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
Diffstat (limited to 'src/plugins/texteditor/basefilefind.h')
-rw-r--r-- | src/plugins/texteditor/basefilefind.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/plugins/texteditor/basefilefind.h b/src/plugins/texteditor/basefilefind.h index f21f946b91c..a39d1f3643f 100644 --- a/src/plugins/texteditor/basefilefind.h +++ b/src/plugins/texteditor/basefilefind.h @@ -41,9 +41,10 @@ QT_END_NAMESPACE namespace Utils { class FileIterator; } namespace Core { +class IEditor; +class IFindSupport; class SearchResult; class SearchResultItem; -class IFindSupport; } // namespace Core namespace TextEditor { @@ -65,6 +66,7 @@ class TEXTEDITOR_EXPORT FileFindExtension : public QObject public: virtual ~FileFindExtension() {} virtual QString title() const = 0; + virtual QString toolTip() const = 0; // add %1 placeholder where the find flags should be put virtual QWidget *widget() const = 0; virtual bool isEnabled() const = 0; virtual bool isEnabled(const FileFindParameters ¶meters) const = 0; @@ -73,6 +75,8 @@ public: virtual void writeSettings(QSettings *settings) const = 0; virtual QFuture<Utils::FileSearchResultList> executeSearch( const FileFindParameters ¶meters) = 0; + virtual Core::IEditor *openEditor(const Core::SearchResultItem &item, + const FileFindParameters ¶meters) = 0; }; class TEXTEDITOR_EXPORT BaseFileFind : public Core::IFindFilter |