aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/git/gitgrep.h
blob: 4e5c75d97ab9a6f0f9ee2a2ee94dd95ffc7889b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (C) 2016 Orgad Shaneh <orgads@gmail.com>.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

#pragma once

#include <texteditor/basefilefind.h>

QT_BEGIN_NAMESPACE
class QCheckBox;
QT_END_NAMESPACE

namespace Utils { class FancyLineEdit; }

namespace Git::Internal {

class GitGrepParameters;

class GitGrep : public TextEditor::SearchEngine
{
public:
    GitGrep();
    ~GitGrep() override;

    QString title() const override;
    QString toolTip() const override;
    QWidget *widget() const override;
    void readSettings(const Utils::Store &settings) override;
    void writeSettings(Utils::Store &settings) const override;
    TextEditor::SearchExecutor searchExecutor() const override;
    TextEditor::EditorOpener editorOpener() const override;

private:
    GitGrepParameters gitParameters() const;
    QWidget *m_widget;
    Utils::FancyLineEdit *m_treeLineEdit;
    QCheckBox *m_recurseSubmodules = nullptr;
};

} // Git::Internal