Changeset View
Changeset View
Standalone View
Standalone View
addons/snippets/snippetview.h
Show All 19 Lines | |||||
20 | * along with this library; see the file COPYING.LIB. If not, write to | 20 | * along with this library; see the file COPYING.LIB. If not, write to | ||
21 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 21 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||
22 | * Boston, MA 02110-1301, USA. | 22 | * Boston, MA 02110-1301, USA. | ||
23 | */ | 23 | */ | ||
24 | 24 | | |||
25 | #ifndef SNIPPETVIEW_H | 25 | #ifndef SNIPPETVIEW_H | ||
26 | #define SNIPPETVIEW_H | 26 | #define SNIPPETVIEW_H | ||
27 | 27 | | |||
28 | #include <KTextEditor/MainWindow> | ||||
29 | | ||||
28 | #include "ui_snippetview.h" | 30 | #include "ui_snippetview.h" | ||
29 | 31 | | |||
30 | class QStandardItem; | 32 | class QStandardItem; | ||
31 | class KateSnippetGlobal; | 33 | class KateSnippetGlobal; | ||
32 | class QAction; | 34 | class QAction; | ||
33 | class QSortFilterProxyModel; | 35 | class QSortFilterProxyModel; | ||
34 | 36 | | |||
35 | namespace KTextEditor { | 37 | namespace KTextEditor { | ||
36 | } | 38 | } | ||
37 | 39 | | |||
38 | /** | 40 | /** | ||
39 | * This class gets embedded into the right tool view by the KateSnippetGlobal. | 41 | * This class gets embedded into the right tool view by the KateSnippetGlobal. | ||
40 | * @author Robert Gruber <rgruber@users.sourceforge.net> | 42 | * @author Robert Gruber <rgruber@users.sourceforge.net> | ||
41 | * @author Milian Wolff <mail@milianw.de> | 43 | * @author Milian Wolff <mail@milianw.de> | ||
42 | */ | 44 | */ | ||
43 | class SnippetView : public QWidget, public Ui::SnippetViewBase | 45 | class SnippetView : public QWidget, public Ui::SnippetViewBase | ||
44 | { | 46 | { | ||
45 | Q_OBJECT | 47 | Q_OBJECT | ||
46 | 48 | | |||
47 | public: | 49 | public: | ||
48 | explicit SnippetView(KateSnippetGlobal* plugin, QWidget* parent = nullptr); | 50 | explicit SnippetView(KateSnippetGlobal* plugin, KTextEditor::MainWindow *mainWindow, QWidget* parent = nullptr); | ||
49 | 51 | | |||
50 | public: | 52 | public: | ||
51 | void setupActionsForWindow(QWidget* widget); | 53 | void setupActionsForWindow(QWidget* widget); | ||
52 | 54 | | |||
53 | private Q_SLOTS: | 55 | private Q_SLOTS: | ||
54 | /** | 56 | /** | ||
55 | * Opens the "Add Repository" dialog. | 57 | * Opens the "Add Repository" dialog. | ||
56 | */ | 58 | */ | ||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |