Merge branch 'maint'
[kdbg.git] / kdbg / regwnd.h
blob57eeec5fccfbf5228e1063e903973ed405d116ac
1 /*
2 * Copyright Max Judin, 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.
5 */
7 #ifndef REGWND_H
8 #define REGWND_H
10 #include <qlistview.h>
11 #include <map>
13 class QPopupMenu;
14 class RegisterViewItem;
15 class GroupingViewItem;
16 struct RegisterInfo;
19 class RegisterView : public QListView
21 Q_OBJECT
22 public:
23 RegisterView(QWidget* parent, const char *name = 0L);
24 ~RegisterView();
26 protected slots:
27 void rightButtonClicked(QListViewItem*, const QPoint&, int);
28 void slotModeChange(int);
29 void updateRegisters(QList<RegisterInfo>&);
31 private:
32 void paletteChange(const QPalette& oldPal);
33 void updateGroupVisibility();
34 GroupingViewItem* findMatchingGroup(const QString& regName);
35 GroupingViewItem* findGroup(const QString& groupName);
36 QPopupMenu* m_modemenu;
37 typedef std::map<QString,RegisterViewItem*> RegMap;
38 RegMap m_registers;
40 friend class RegisterViewItem;
43 #endif // REGWND_H