Changeset View
Changeset View
Standalone View
Standalone View
debugger/variable/variablecollection.h
Show All 32 Lines | |||||
33 | 33 | | |||
34 | #include <debugger/debuggerexport.h> | 34 | #include <debugger/debuggerexport.h> | ||
35 | #include "../util/treemodel.h" | 35 | #include "../util/treemodel.h" | ||
36 | #include "../util/treeitem.h" | 36 | #include "../util/treeitem.h" | ||
37 | #include "../../interfaces/idocument.h" | 37 | #include "../../interfaces/idocument.h" | ||
38 | #include "../interfaces/idebugsession.h" | 38 | #include "../interfaces/idebugsession.h" | ||
39 | #include "../../interfaces/idebugcontroller.h" | 39 | #include "../../interfaces/idebugcontroller.h" | ||
40 | 40 | | |||
41 | namespace GDBDebugger { | 41 | namespace KDevMI { namespace GDB { | ||
42 | class GdbTest; | 42 | class GdbTest; | ||
43 | } | 43 | } | ||
44 | } | ||||
44 | 45 | | |||
45 | namespace KDevelop | 46 | namespace KDevelop | ||
46 | { | 47 | { | ||
47 | class VariableToolTip; | 48 | class VariableToolTip; | ||
48 | 49 | | |||
49 | class KDEVPLATFORMDEBUGGER_EXPORT Variable : public TreeItem | 50 | class KDEVPLATFORMDEBUGGER_EXPORT Variable : public TreeItem | ||
50 | { | 51 | { | ||
51 | Q_OBJECT | 52 | Q_OBJECT | ||
52 | friend class GDBDebugger::GdbTest; | 53 | friend class KDevMI::GDB::GdbTest; | ||
53 | public: | 54 | public: | ||
54 | protected: | 55 | protected: | ||
55 | Variable(TreeModel* model, TreeItem* parent, | 56 | Variable(TreeModel* model, TreeItem* parent, | ||
56 | const QString& expression, | 57 | const QString& expression, | ||
57 | const QString& display = {}); | 58 | const QString& display = {}); | ||
58 | 59 | | |||
59 | public: | 60 | public: | ||
60 | enum format_t { Natural, Binary, Octal, Decimal, Hexadecimal }; | 61 | enum format_t { Natural, Binary, Octal, Decimal, Hexadecimal }; | ||
▲ Show 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 129 | public: | |||
136 | } | 137 | } | ||
137 | 138 | | |||
138 | void fetchMoreChildren() override {} | 139 | void fetchMoreChildren() override {} | ||
139 | }; | 140 | }; | ||
140 | 141 | | |||
141 | class KDEVPLATFORMDEBUGGER_EXPORT Watches : public TreeItem | 142 | class KDEVPLATFORMDEBUGGER_EXPORT Watches : public TreeItem | ||
142 | { | 143 | { | ||
143 | Q_OBJECT | 144 | Q_OBJECT | ||
144 | friend class GDBDebugger::GdbTest; | 145 | friend class KDevMI::GDB::GdbTest; | ||
145 | public: | 146 | public: | ||
146 | Watches(TreeModel* model, TreeItem* parent); | 147 | Watches(TreeModel* model, TreeItem* parent); | ||
147 | Variable* add(const QString& expression); | 148 | Variable* add(const QString& expression); | ||
148 | 149 | | |||
149 | void reinstall(); | 150 | void reinstall(); | ||
150 | 151 | | |||
151 | Variable *addFinishResult(const QString& convenienceVarible); | 152 | Variable *addFinishResult(const QString& convenienceVarible); | ||
152 | void removeFinishResult(); | 153 | void removeFinishResult(); | ||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |