Skip to content

Commit 3643f11

Browse files
authored
Merge pull request #470 from epasveer/465-add-a-visualizer-for-the-gdb-monitor
465 add a visualizer for the gdb monitor
2 parents a1646d9 + 26c1f6f commit 3643f11

18 files changed

Lines changed: 730 additions & 76 deletions

src/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ set(HEADER_FILES
111111
SeerStructVisualizerWidget.h
112112
SeerVarVisualizerWidget.h
113113
SeerImageVisualizerWidget.h
114+
SeerGdbMonitorWidget.h
114115
SeerRegisterValuesBrowserWidget.h
115116
SeerRegisterEditValueDialog.h
116117
SeerRegisterProfileDialog.h
@@ -224,6 +225,7 @@ set(SOURCE_FILES
224225
SeerStructVisualizerWidget.cpp
225226
SeerVarVisualizerWidget.cpp
226227
SeerImageVisualizerWidget.cpp
228+
SeerGdbMonitorWidget.cpp
227229
SeerRegisterValuesBrowserWidget.cpp
228230
SeerRegisterEditValueDialog.cpp
229231
SeerRegisterProfileDialog.cpp

src/QHistoryLineEdit.h

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -34,50 +34,50 @@ class QHistoryLineEdit : public QLineEdit {
3434
QHistoryLineEdit(const QString& contents, QWidget* parent = 0);
3535
QHistoryLineEdit(QWidget* parent = 0);
3636

37-
void enableReturnPressedOnClear ();
37+
void enableReturnPressedOnClear ();
3838

39-
int lineCount () const;
39+
int lineCount () const;
4040

41-
void setHistory (const QStringList& history);
42-
QStringList history() const;
41+
void setHistory (const QStringList& history);
42+
QStringList history () const;
4343

44-
void setWordCompleter (QCompleter* completer);
45-
void setWordCompleterPrefix (const QString& prefix);
46-
void setWordCompleterMinChars (int minChars);
47-
void setWordCompleterMaxSuggestions (int max);
44+
void setWordCompleter (QCompleter* completer);
45+
void setWordCompleterPrefix (const QString& prefix);
46+
void setWordCompleterMinChars (int minChars);
47+
void setWordCompleterMaxSuggestions (int max);
4848

4949
public slots:
50-
void execute ();
50+
void execute ();
5151

5252
signals:
53-
void lineExecuted (QString text);
54-
void lostFocus ();
55-
void gainedFocus ();
56-
void escapePressed ();
53+
void lineExecuted (QString text);
54+
void lostFocus ();
55+
void gainedFocus ();
56+
void escapePressed ();
5757

5858
protected:
59-
void keyPressEvent (QKeyEvent* event) Q_DECL_OVERRIDE;
60-
void wheelEvent (QWheelEvent* event) Q_DECL_OVERRIDE;
61-
void focusOutEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
62-
void focusInEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
59+
void keyPressEvent (QKeyEvent* event) Q_DECL_OVERRIDE;
60+
void wheelEvent (QWheelEvent* event) Q_DECL_OVERRIDE;
61+
void focusOutEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
62+
void focusInEvent (QFocusEvent* event) Q_DECL_OVERRIDE;
6363

64-
void previousLine ();
65-
void nextLine ();
64+
void previousLine ();
65+
void nextLine ();
6666

67-
QString current_word () const;
67+
QString current_word () const;
6868

6969
private slots:
70-
void autoComplete (const QString& completion);
70+
void autoComplete (const QString& completion);
7171

7272
private:
73-
int _wordStart () const;
74-
75-
int _currentLine;
76-
QStringList _lines;
77-
QString _unfinished;
78-
QCompleter* _completer;
79-
QString _completionPrefix;
80-
int _completionMinchars;
81-
int _completionMax;
73+
int _wordStart () const;
74+
75+
int _currentLine;
76+
QStringList _lines;
77+
QString _unfinished;
78+
QCompleter* _completer;
79+
QString _completionPrefix;
80+
int _completionMinchars;
81+
int _completionMax;
8282
};
8383

src/SeerCommandLogsWidget.ui

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,6 @@
3030
<layout class="QHBoxLayout" name="horizontalLayout">
3131
<item>
3232
<widget class="SeerMacroToolButton" name="m1ToolButton">
33-
<property name="toolTip">
34-
<string>M1 macro. Click to execute. Hold down to edit.</string>
35-
</property>
3633
<property name="text">
3734
<string>M1</string>
3835
</property>
@@ -46,9 +43,6 @@
4643
</item>
4744
<item>
4845
<widget class="SeerMacroToolButton" name="m2ToolButton">
49-
<property name="toolTip">
50-
<string>M2 macro. Click to execute. Hold down to edit.</string>
51-
</property>
5246
<property name="text">
5347
<string>M2</string>
5448
</property>
@@ -59,9 +53,6 @@
5953
</item>
6054
<item>
6155
<widget class="SeerMacroToolButton" name="m3ToolButton">
62-
<property name="toolTip">
63-
<string>M3 macro. Click to execute. Hold down to edit.</string>
64-
</property>
6556
<property name="text">
6657
<string>M3</string>
6758
</property>
@@ -72,9 +63,6 @@
7263
</item>
7364
<item>
7465
<widget class="SeerMacroToolButton" name="m4ToolButton">
75-
<property name="toolTip">
76-
<string>M4 macro. Click to execute. Hold down to edit.</string>
77-
</property>
7866
<property name="text">
7967
<string>M4</string>
8068
</property>
@@ -85,9 +73,6 @@
8573
</item>
8674
<item>
8775
<widget class="SeerMacroToolButton" name="m5ToolButton">
88-
<property name="toolTip">
89-
<string>M5 macro. Click to execute. Hold down to edit.</string>
90-
</property>
9176
<property name="text">
9277
<string>M5</string>
9378
</property>
@@ -98,9 +83,6 @@
9883
</item>
9984
<item>
10085
<widget class="SeerMacroToolButton" name="m6ToolButton">
101-
<property name="toolTip">
102-
<string>M6 macro. Click to execute. Hold down to edit.</string>
103-
</property>
10486
<property name="text">
10587
<string>M6</string>
10688
</property>
@@ -111,9 +93,6 @@
11193
</item>
11294
<item>
11395
<widget class="SeerMacroToolButton" name="m7ToolButton">
114-
<property name="toolTip">
115-
<string>M7 macro. Click to execute. Hold down to edit.</string>
116-
</property>
11796
<property name="text">
11897
<string>M7</string>
11998
</property>
@@ -124,9 +103,6 @@
124103
</item>
125104
<item>
126105
<widget class="SeerMacroToolButton" name="m8ToolButton">
127-
<property name="toolTip">
128-
<string>M8 macro. Click to execute. Hold down to edit.</string>
129-
</property>
130106
<property name="text">
131107
<string>M8</string>
132108
</property>
@@ -137,9 +113,6 @@
137113
</item>
138114
<item>
139115
<widget class="SeerMacroToolButton" name="m9ToolButton">
140-
<property name="toolTip">
141-
<string>M9 macro. Click to execute. Hold down to edit.</string>
142-
</property>
143116
<property name="text">
144117
<string>M9</string>
145118
</property>
@@ -150,9 +123,6 @@
150123
</item>
151124
<item>
152125
<widget class="SeerMacroToolButton" name="m0ToolButton">
153-
<property name="toolTip">
154-
<string>M0 macro. Click to execute. Hold down to edit.</string>
155-
</property>
156126
<property name="text">
157127
<string>M0</string>
158128
</property>

0 commit comments

Comments
 (0)