aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitgrep.h
diff options
context:
space:
mode:
authorPrzemyslaw Gorszkowski <[email protected]>2016-03-16 22:37:24 +0100
committerPrzemyslaw Gorszkowski <[email protected]>2016-11-16 09:52:05 +0000
commit6b2cf5cd03073ee8e7b319f68f7dce43c7984622 (patch)
treea8aec1772eb4fa09881b8858aef47c360ed25518 /src/plugins/git/gitgrep.h
parent4ae07377db1f587b5d49a46c355d46c97a6c59fc (diff)
FindInFiles: make possible to have more than one extension
This change adds a possibility to add more than one external tool which can be used instead of internal finder. Currently there is one extension: 'gitgrep'. By default we use internal finder. Change-Id: If644358552f3cea9ebda8308539322a1b6d3ab77 Reviewed-by: Orgad Shaneh <[email protected]>
Diffstat (limited to 'src/plugins/git/gitgrep.h')
-rw-r--r--src/plugins/git/gitgrep.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/plugins/git/gitgrep.h b/src/plugins/git/gitgrep.h
index 1bcec59d391..3adc487f9fb 100644
--- a/src/plugins/git/gitgrep.h
+++ b/src/plugins/git/gitgrep.h
@@ -29,14 +29,12 @@
#include <QCoreApplication>
-QT_FORWARD_DECLARE_CLASS(QCheckBox)
-
namespace Utils { class FancyLineEdit; }
namespace Git {
namespace Internal {
-class GitGrep : public TextEditor::FileFindExtension
+class GitGrep : public TextEditor::SearchEngine
{
Q_DECLARE_TR_FUNCTIONS(GitGrep)
@@ -47,18 +45,17 @@ public:
QString toolTip() const override;
QWidget *widget() const override;
bool isEnabled() const override;
- bool isEnabled(const TextEditor::FileFindParameters &parameters) const override;
QVariant parameters() const override;
void readSettings(QSettings *settings) override;
void writeSettings(QSettings *settings) const override;
QFuture<Utils::FileSearchResultList> executeSearch(
- const TextEditor::FileFindParameters &parameters) override;
+ const TextEditor::FileFindParameters &parameters,
+ TextEditor::BaseFileFind *baseFileFind) override;
Core::IEditor *openEditor(const Core::SearchResultItem &item,
const TextEditor::FileFindParameters &parameters) override;
private:
QWidget *m_widget;
- QCheckBox *m_enabledCheckBox;
Utils::FancyLineEdit *m_treeLineEdit;
};