blob: cac766b301a791a1806f0c9e135d7414bc3183fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
/*
* Copyright Johannes Sixt
* This file is licensed under the GNU General Public License Version 2.
* See the file COPYING in the toplevel directory of the source directory.
*/
#ifndef DBGMAINWND_H
#define DBGMAINWND_H
#include <qtimer.h>
#include <kdockwidget.h>
#include "mainwndbase.h"
#include "regwnd.h"
class KRecentFilesAction;
class WinStack;
class QListBox;
class QCString;
class ExprWnd;
class BreakpointTable;
class ThreadList;
class MemoryWindow;
struct DbgAddr;
class DebuggerMainWnd : public KDockMainWindow, public DebuggerMainWndBase
{
Q_OBJECT
public:
DebuggerMainWnd(const char* name);
~DebuggerMainWnd();
bool debugProgram(const QString& exe, const QString& lang);
protected:
// session properties
virtual void saveProperties(KConfig*);
virtual void readProperties(KConfig*);
// settings
void saveSettings(KConfig*);
void restoreSettings(KConfig*);
void initToolbar();
void initKAction();
// view windows
WinStack* m_filesWindow;
QListBox* m_btWindow;
ExprWnd* m_localVariables;
WatchWindow* m_watches;
RegisterView* m_registers;
BreakpointTable* m_bpTable;
TTYWindow* m_ttyWindow;
ThreadList* m_threads;
MemoryWindow* m_memoryWindow;
QTimer m_backTimer;
// recent execs in File menu
KRecentFilesAction* m_recentExecAction;
protected:
virtual bool queryClose();
virtual TTYWindow* ttyWindow();
virtual QString createOutputWindow();
KDockWidget* dockParent(QWidget* w);
bool isDockVisible(QWidget* w);
bool canChangeDockVisibility(QWidget* w);
void dockUpdateHelper(QString action, QWidget* w);
void fixDockConfig(KConfig* c, bool upgrade);
QString makeSourceFilter();
// to avoid flicker when the status bar is updated,
// we store the last string that we put there
QString m_lastActiveStatusText;
bool m_animRunning;
signals:
void setTabWidth(int tabWidth);
public slots:
virtual void updateUI();
virtual void updateLineItems();
void slotAddWatch();
void slotAddWatch(const QString& text);
void slotNewFileLoaded();
void slotNewStatusMsg();
void slotDebuggerStarting();
void slotToggleBreak(const QString&, int, const DbgAddr&, bool);
void slotEnaDisBreak(const QString&, int, const DbgAddr&);
void slotTermEmuExited();
void slotProgramStopped();
void slotBackTimer();
void slotRecentExec(const KURL& url);
void slotLocalsPopup(QListViewItem*, const QPoint& pt);
void slotLocalsToWatch();
void slotEditValue();
void slotFileOpen();
void slotFileExe();
void slotFileCore();
void slotFileGlobalSettings();
void slotFileProgSettings();
void slotViewStatusbar();
void slotExecUntil();
void slotExecAttach();
void slotExecArgs();
void intoBackground();
void slotConfigureKeys();
};
#endif // DBGMAINWND_H
|