2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
11 #include <kdockwidget.h>
12 #include "mainwndbase.h"
15 class KRecentFilesAction
;
20 class BreakpointTable
;
25 class DebuggerMainWnd
: public KDockMainWindow
, public DebuggerMainWndBase
29 DebuggerMainWnd(const char* name
);
32 bool debugProgram(const QString
& exe
, QCString lang
);
36 virtual void saveProperties(KConfig
*);
37 virtual void readProperties(KConfig
*);
39 void saveSettings(KConfig
*);
40 void restoreSettings(KConfig
*);
43 void updateLineStatus(int lineNo
); /* zero-based line number */
49 WinStack
* m_filesWindow
;
51 ExprWnd
* m_localVariables
;
52 WatchWindow
* m_watches
;
53 RegisterView
* m_registers
;
54 BreakpointTable
* m_bpTable
;
55 TTYWindow
* m_ttyWindow
;
56 ThreadList
* m_threads
;
57 MemoryWindow
* m_memoryWindow
;
61 // recent execs in File menu
62 KRecentFilesAction
* m_recentExecAction
;
65 virtual void closeEvent(QCloseEvent
* e
);
66 virtual TTYWindow
* ttyWindow();
67 virtual QString
createOutputWindow();
69 KDockWidget
* dockParent(QWidget
* w
);
70 bool isDockVisible(QWidget
* w
);
71 bool canChangeDockVisibility(QWidget
* w
);
72 void dockUpdateHelper(QString action
, QWidget
* w
);
73 void fixDockConfig(KConfig
* c
, bool upgrade
);
75 QString
makeSourceFilter();
77 // to avoid flicker when the status bar is updated,
78 // we store the last string that we put there
79 QString m_lastActiveStatusText
;
83 void setTabWidth(int tabWidth
);
86 virtual void updateUI();
87 virtual void updateLineItems();
88 void slotFileChanged();
89 void slotLineChanged();
91 void slotAddWatch(const QString
& text
);
92 void slotNewFileLoaded();
93 void slotNewStatusMsg();
94 void slotDebuggerStarting();
95 void slotToggleBreak(const QString
&, int, const DbgAddr
&, bool);
96 void slotEnaDisBreak(const QString
&, int, const DbgAddr
&);
97 void slotTermEmuExited();
98 void slotProgramStopped();
100 void slotRecentExec(const KURL
& url
);
101 void slotLocalsPopup(QListViewItem
*, const QPoint
& pt
);
102 void slotLocalsToWatch();
103 void slotEditValue();
109 void slotFileGlobalSettings();
110 void slotFileProgSettings();
111 void slotViewToolbar();
112 void slotViewStatusbar();
113 void slotExecUntil();
114 void slotExecAttach();
116 void intoBackground();
117 void slotConfigureKeys();
120 #endif // DBGMAINWND_H