3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
10 #include <kdockwidget.h>
11 #include "mainwndbase.h"
14 class KRecentFilesAction
;
19 class BreakpointTable
;
24 class DebuggerMainWnd
: public KDockMainWindow
, public DebuggerMainWndBase
28 DebuggerMainWnd(const char* name
);
31 bool debugProgram(const QString
& exe
, QCString lang
);
35 virtual void saveProperties(KConfig
*);
36 virtual void readProperties(KConfig
*);
38 void saveSettings(KConfig
*);
39 void restoreSettings(KConfig
*);
42 void updateLineStatus(int lineNo
); /* zero-based line number */
48 WinStack
* m_filesWindow
;
50 ExprWnd
* m_localVariables
;
51 WatchWindow
* m_watches
;
52 RegisterView
* m_registers
;
53 BreakpointTable
* m_bpTable
;
54 TTYWindow
* m_ttyWindow
;
55 ThreadList
* m_threads
;
56 MemoryWindow
* m_memoryWindow
;
60 // recent execs in File menu
61 KRecentFilesAction
* m_recentExecAction
;
64 virtual void closeEvent(QCloseEvent
* e
);
65 virtual TTYWindow
* ttyWindow();
66 virtual QString
createOutputWindow();
68 KDockWidget
* dockParent(QWidget
* w
);
69 bool isDockVisible(QWidget
* w
);
70 bool canChangeDockVisibility(QWidget
* w
);
71 void dockUpdateHelper(QString action
, QWidget
* w
);
72 void fixDockConfig(KConfig
* c
, bool upgrade
);
74 QString
makeSourceFilter();
76 // to avoid flicker when the status bar is updated,
77 // we store the last string that we put there
78 QString m_lastActiveStatusText
;
82 void setTabWidth(int tabWidth
);
85 virtual void updateUI();
86 virtual void updateLineItems();
87 void slotFileChanged();
88 void slotLineChanged();
90 void slotAddWatch(const QString
& text
);
91 void slotNewFileLoaded();
92 void slotNewStatusMsg();
93 void slotDebuggerStarting();
94 void slotToggleBreak(const QString
&, int, const DbgAddr
&, bool);
95 void slotEnaDisBreak(const QString
&, int, const DbgAddr
&);
96 void slotTermEmuExited();
97 void slotProgramStopped();
99 void slotRecentExec(const KURL
& url
);
100 void slotLocalsPopup(QListViewItem
*, const QPoint
& pt
);
101 void slotLocalsToWatch();
102 void slotEditValue();
108 void slotFileGlobalSettings();
109 void slotFileProgSettings();
110 void slotViewToolbar();
111 void slotViewStatusbar();
112 void slotExecUntil();
113 void slotExecAttach();
115 void intoBackground();
116 void slotConfigureKeys();
119 #endif // DBGMAINWND_H