Changeset View
Changeset View
Standalone View
Standalone View
addons/search/plugin_search.h
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Line(s) | 46 | namespace KTextEditor{ | |||
---|---|---|---|---|---|
47 | class MovingRange; | 47 | class MovingRange; | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | class Results: public QWidget, public Ui::Results | 50 | class Results: public QWidget, public Ui::Results | ||
51 | { | 51 | { | ||
52 | Q_OBJECT | 52 | Q_OBJECT | ||
53 | public: | 53 | public: | ||
54 | Results(QWidget *parent = nullptr); | 54 | Results(QWidget *parent = nullptr); | ||
55 | int matches; | 55 | int matches = 0; | ||
56 | QRegularExpression regExp; | 56 | QRegularExpression regExp; | ||
57 | bool useRegExp; | 57 | bool useRegExp = false; | ||
58 | bool matchCase; | 58 | bool matchCase; | ||
59 | QString replaceStr; | 59 | QString replaceStr; | ||
60 | int searchPlaceIndex; | 60 | int searchPlaceIndex = 0; | ||
61 | QString treeRootText; | 61 | QString treeRootText; | ||
62 | }; | 62 | }; | ||
63 | 63 | | |||
64 | // This class keeps the focus inside the S&R plugin when pressing tab/shift+tab by overriding focusNextPrevChild() | 64 | // This class keeps the focus inside the S&R plugin when pressing tab/shift+tab by overriding focusNextPrevChild() | ||
65 | class ContainerWidget:public QWidget | 65 | class ContainerWidget:public QWidget | ||
66 | { | 66 | { | ||
67 | Q_OBJECT | 67 | Q_OBJECT | ||
68 | public: | 68 | public: | ||
Show All 13 Lines | |||||
82 | 82 | | |||
83 | public: | 83 | public: | ||
84 | explicit KatePluginSearch(QObject* parent = nullptr, const QList<QVariant>& = QList<QVariant>()); | 84 | explicit KatePluginSearch(QObject* parent = nullptr, const QList<QVariant>& = QList<QVariant>()); | ||
85 | ~KatePluginSearch() override; | 85 | ~KatePluginSearch() override; | ||
86 | 86 | | |||
87 | QObject *createView(KTextEditor::MainWindow *mainWindow) override; | 87 | QObject *createView(KTextEditor::MainWindow *mainWindow) override; | ||
88 | 88 | | |||
89 | private: | 89 | private: | ||
90 | KateSearchCommand* m_searchCommand; | 90 | KateSearchCommand* m_searchCommand = nullptr; | ||
91 | }; | 91 | }; | ||
92 | 92 | | |||
93 | 93 | | |||
94 | 94 | | |||
95 | class KatePluginSearchView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface | 95 | class KatePluginSearchView : public QObject, public KXMLGUIClient, public KTextEditor::SessionConfigInterface | ||
96 | { | 96 | { | ||
97 | Q_OBJECT | 97 | Q_OBJECT | ||
98 | Q_INTERFACES(KTextEditor::SessionConfigInterface) | 98 | Q_INTERFACES(KTextEditor::SessionConfigInterface) | ||
▲ Show 20 Lines • Show All 149 Lines • Show Last 20 Lines |