When an item having the current item is taken out from the tree,
[kdbg.git] / kdbg / dbgmainwnd.h
blobeb24d7793168fa8b8a37b66b1fcf9d8400e626e7
1 // $Id$
3 // Copyright by Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #ifndef DBGMAINWND_H
7 #define DBGMAINWND_H
9 #include <qtimer.h>
10 #include "dockmainwindow.h"
11 #include "mainwndbase.h"
12 #include "regwnd.h"
14 class WinStack;
15 class QPopupMenu;
16 class QListBox;
17 class ExprWnd;
18 class DockWidget;
19 class BreakpointTable;
20 class ThreadList;
21 struct DbgAddr;
23 class DebuggerMainWnd : public DockMainWindow, public DebuggerMainWndBase
25 Q_OBJECT
26 public:
27 DebuggerMainWnd(const char* name);
28 ~DebuggerMainWnd();
30 protected:
31 // session properties
32 virtual void saveProperties(KConfig*);
33 virtual void readProperties(KConfig*);
34 // settings
35 void saveSettings(KConfig*);
36 void restoreSettings(KConfig*);
38 // statusbar texts
39 void updateLineStatus(int lineNo); /* zero-based line number */
41 void initMenu();
42 void initToolbar();
44 // view windows
45 WinStack* m_filesWindow;
46 QListBox* m_btWindow;
47 ExprWnd* m_localVariables;
48 WatchWindow* m_watches;
49 RegisterView* m_registers;
50 BreakpointTable* m_bpTable;
51 TTYWindow* m_ttyWindow;
52 ThreadList* m_threads;
54 // menus
55 QPopupMenu* m_menuFile;
56 QPopupMenu* m_menuView;
57 QPopupMenu* m_menuProgram;
58 QPopupMenu* m_menuBrkpt;
59 QPopupMenu* m_menuWindow;
61 QTimer m_backTimer;
63 protected:
64 virtual void closeEvent(QCloseEvent* e);
65 virtual KToolBar* dbgToolBar();
66 virtual KStatusBar* dbgStatusBar();
67 virtual QWidget* dbgMainWnd();
68 virtual TTYWindow* ttyWindow();
69 virtual QString createOutputWindow();
70 virtual void doGlobalOptions();
72 DockWidget* dockParent(QWidget* w);
73 bool isDockVisible(QWidget* w);
74 bool canChangeDockVisibility(QWidget* w);
75 void showhideWindow(QWidget* w);
76 void dockUpdateHelper(UpdateUI* item, QWidget* w);
77 void intoBackground();
79 QString makeSourceFilter();
81 signals:
82 void forwardMenuCallback(int item);
83 void setTabWidth(int tabWidth);
85 public slots:
86 virtual void menuCallback(int item);
87 void updateUIItem(UpdateUI* item);
88 virtual void updateUI();
89 virtual void updateLineItems();
90 void slotFileChanged();
91 void slotLineChanged();
92 void slotAddWatch();
93 void slotNewFileLoaded();
94 void slotNewStatusMsg();
95 void slotAnimationTimeout();
96 void slotDebuggerStarting();
97 void slotToggleBreak(const QString&, int, const DbgAddr&, bool);
98 void slotEnaDisBreak(const QString&, int, const DbgAddr&);
99 void slotTermEmuExited();
100 void slotProgramStopped();
101 void slotBackTimer();
104 #endif // DBGMAINWND_H