Changeset View
Changeset View
Standalone View
Standalone View
plugins/filetemplates/overridespage.h
Show All 16 Lines | |||||
17 | */ | 17 | */ | ||
18 | 18 | | |||
19 | #ifndef KDEVPLATFORM_PLUGIN_OVERRIDESPAGE_H | 19 | #ifndef KDEVPLATFORM_PLUGIN_OVERRIDESPAGE_H | ||
20 | #define KDEVPLATFORM_PLUGIN_OVERRIDESPAGE_H | 20 | #define KDEVPLATFORM_PLUGIN_OVERRIDESPAGE_H | ||
21 | 21 | | |||
22 | #include <QWidget> | 22 | #include <QWidget> | ||
23 | 23 | | |||
24 | #include "language/duchain/declaration.h" | 24 | #include "language/duchain/declaration.h" | ||
25 | #include "ipagefocus.h" | ||||
25 | 26 | | |||
26 | class QTreeWidget; | 27 | class QTreeWidget; | ||
27 | class QTreeWidgetItem; | 28 | class QTreeWidgetItem; | ||
28 | 29 | | |||
29 | namespace KDevelop { | 30 | namespace KDevelop { | ||
30 | 31 | | |||
31 | /** | 32 | /** | ||
32 | * Assistant page for choosing class functions, overridden from base classes. | 33 | * Assistant page for choosing class functions, overridden from base classes. | ||
33 | */ | 34 | */ | ||
34 | class OverridesPage : public QWidget | 35 | class OverridesPage : public QWidget, public IPageFocus | ||
35 | { | 36 | { | ||
36 | Q_OBJECT | 37 | Q_OBJECT | ||
37 | 38 | | |||
38 | public: | 39 | public: | ||
39 | explicit OverridesPage(QWidget* parent); | 40 | explicit OverridesPage(QWidget* parent); | ||
40 | ~OverridesPage() override; | 41 | ~OverridesPage() override; | ||
41 | 42 | | |||
42 | /** | 43 | /** | ||
Show All 31 Lines | |||||
74 | QList<DeclarationPointer> selectedOverrides() const; | 75 | QList<DeclarationPointer> selectedOverrides() const; | ||
75 | 76 | | |||
76 | void clear(); | 77 | void clear(); | ||
77 | 78 | | |||
78 | QTreeWidget* overrideTree() const; | 79 | QTreeWidget* overrideTree() const; | ||
79 | 80 | | |||
80 | QWidget* extraFunctionsContainer() const; | 81 | QWidget* extraFunctionsContainer() const; | ||
81 | 82 | | |||
83 | void setFocusToFirstEditWidget() override; | ||||
84 | | ||||
82 | public Q_SLOTS: | 85 | public Q_SLOTS: | ||
83 | /** | 86 | /** | ||
84 | * Selects all functions for overriding | 87 | * Selects all functions for overriding | ||
85 | */ | 88 | */ | ||
86 | virtual void selectAll(); | 89 | virtual void selectAll(); | ||
87 | /** | 90 | /** | ||
88 | * Deselects all potential overrides | 91 | * Deselects all potential overrides | ||
89 | */ | 92 | */ | ||
Show All 9 Lines |