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
*);
46 WinStack
* m_filesWindow
;
48 ExprWnd
* m_localVariables
;
49 WatchWindow
* m_watches
;
50 RegisterView
* m_registers
;
51 BreakpointTable
* m_bpTable
;
52 TTYWindow
* m_ttyWindow
;
53 ThreadList
* m_threads
;
54 MemoryWindow
* m_memoryWindow
;
58 // recent execs in File menu
59 KRecentFilesAction
* m_recentExecAction
;
62 virtual void closeEvent(QCloseEvent
* e
);
63 virtual TTYWindow
* ttyWindow();
64 virtual QString
createOutputWindow();
66 KDockWidget
* dockParent(QWidget
* w
);
67 bool isDockVisible(QWidget
* w
);
68 bool canChangeDockVisibility(QWidget
* w
);
69 void dockUpdateHelper(QString action
, QWidget
* w
);
70 void fixDockConfig(KConfig
* c
, bool upgrade
);
72 QString
makeSourceFilter();
74 // to avoid flicker when the status bar is updated,
75 // we store the last string that we put there
76 QString m_lastActiveStatusText
;
80 void setTabWidth(int tabWidth
);
83 virtual void updateUI();
84 virtual void updateLineItems();
85 void slotFileChanged();
87 void slotAddWatch(const QString
& text
);
88 void slotNewFileLoaded();
89 void slotNewStatusMsg();
90 void slotDebuggerStarting();
91 void slotToggleBreak(const QString
&, int, const DbgAddr
&, bool);
92 void slotEnaDisBreak(const QString
&, int, const DbgAddr
&);
93 void slotTermEmuExited();
94 void slotProgramStopped();
96 void slotRecentExec(const KURL
& url
);
97 void slotLocalsPopup(QListViewItem
*, const QPoint
& pt
);
98 void slotLocalsToWatch();
105 void slotFileGlobalSettings();
106 void slotFileProgSettings();
107 void slotViewStatusbar();
108 void slotExecUntil();
109 void slotExecAttach();
111 void intoBackground();
112 void slotConfigureKeys();
115 #endif // DBGMAINWND_H