Fixed that the debugger window really moves itself to the foreground.
[kdbg.git] / kdbg / regwnd.h
bloba2f401e485a95896f5a5ad1d0f9fd6ebe195eb1b
1 // $Id$
3 // Copyright by Judin Max, Johannes Sixt
4 // This file is under GPL, the GNU General Public Licence
6 #ifndef REGWND_H
7 #define REGWND_H
9 #include <qlistview.h>
10 #include <map>
12 class QPopupMenu;
13 class RegisterViewItem;
14 class GroupingViewItem;
15 struct RegisterInfo;
18 class RegisterView : public QListView
20 Q_OBJECT
21 public:
22 RegisterView(QWidget* parent, const char *name = 0L);
23 ~RegisterView();
25 protected slots:
26 void rightButtonClicked(QListViewItem*, const QPoint&, int);
27 void slotModeChange(int);
28 void updateRegisters(QList<RegisterInfo>&);
30 private:
31 void paletteChange(const QPalette& oldPal);
32 void updateGroupVisibility();
33 GroupingViewItem* findMatchingGroup(const QString& regName);
34 GroupingViewItem* findGroup(const QString& groupName);
35 QPopupMenu* m_modemenu;
36 typedef std::map<QString,RegisterViewItem*> RegMap;
37 RegMap m_registers;
39 friend class RegisterViewItem;
42 #endif // REGWND_H