Refine "View Code" command.
[kdbg.git] / kdbg / regwnd.h
blob242064f541d7582765c6560e7feee628584f2eae
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 <list>
12 #include <map>
14 class QPopupMenu;
15 class RegisterViewItem;
16 class GroupingViewItem;
17 struct RegisterInfo;
20 class RegisterView : public QListView
22 Q_OBJECT
23 public:
24 RegisterView(QWidget* parent, const char *name = 0L);
25 ~RegisterView();
27 protected slots:
28 void rightButtonClicked(QListViewItem*, const QPoint&, int);
29 void slotModeChange(int);
30 void updateRegisters(const std::list<RegisterInfo>&);
32 private:
33 void paletteChange(const QPalette& oldPal);
34 void updateGroupVisibility();
35 GroupingViewItem* findMatchingGroup(const QString& regName);
36 GroupingViewItem* findGroup(const QString& groupName);
37 QPopupMenu* m_modemenu;
38 typedef std::map<QString,RegisterViewItem*> RegMap;
39 RegMap m_registers;
41 friend class RegisterViewItem;
44 #endif // REGWND_H