Generate and install scalable icons.
[kdbg.git] / kdbg / regwnd.h
blob2d46f6dc85c77eea47c1e86cd27a9b73850c0e9a
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
9 #include <QTreeWidget>
11 #include <list>
12 #include <map>
14 class QMenu;
15 class RegisterViewItem;
16 class GroupingViewItem;
17 class QContextMenuEvent;
18 struct RegisterInfo;
21 class RegisterView : public QTreeWidget
23 Q_OBJECT
24 public:
25 RegisterView(QWidget* parent);
26 ~RegisterView();
28 protected:
29 virtual void contextMenuEvent(QContextMenuEvent*);
30 virtual void changeEvent(QEvent* ev);
32 protected slots:
33 void slotModeChange(QAction*);
34 void updateRegisters(const std::list<RegisterInfo>&);
36 private:
37 void updateGroupVisibility();
38 GroupingViewItem* findMatchingGroup(const QString& regName);
39 GroupingViewItem* findGroup(const QString& groupName);
40 QMenu* m_modemenu;
41 typedef std::map<QString,RegisterViewItem*> RegMap;
42 RegMap m_registers;
44 friend class RegisterViewItem;
47 #endif // REGWND_H