Convert KAboutData and KCmdLineOptions.
[kdbg.git] / kdbg / regwnd.h
blob16dabc9eddeaa9853660a58fb6f1dade02b14b58
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 <q3listview.h>
11 #include <Q3PopupMenu>
12 #include <list>
13 #include <map>
15 class Q3PopupMenu;
16 class RegisterViewItem;
17 class GroupingViewItem;
18 struct RegisterInfo;
21 class RegisterView : public Q3ListView
23 Q_OBJECT
24 public:
25 RegisterView(QWidget* parent);
26 ~RegisterView();
28 protected slots:
29 void rightButtonClicked(Q3ListViewItem*, const QPoint&, int);
30 void slotModeChange(int);
31 void updateRegisters(const std::list<RegisterInfo>&);
33 private:
34 void paletteChange(const QPalette& oldPal);
35 void updateGroupVisibility();
36 GroupingViewItem* findMatchingGroup(const QString& regName);
37 GroupingViewItem* findGroup(const QString& groupName);
38 Q3PopupMenu* m_modemenu;
39 typedef std::map<QString,RegisterViewItem*> RegMap;
40 RegMap m_registers;
42 friend class RegisterViewItem;
45 #endif // REGWND_H