diff options
Diffstat (limited to 'kdbg/regwnd.h')
-rw-r--r-- | kdbg/regwnd.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/kdbg/regwnd.h b/kdbg/regwnd.h new file mode 100644 index 0000000..242064f --- /dev/null +++ b/kdbg/regwnd.h @@ -0,0 +1,44 @@ +/* + * Copyright Max Judin, Johannes Sixt + * This file is licensed under the GNU General Public License Version 2. + * See the file COPYING in the toplevel directory of the source directory. + */ + +#ifndef REGWND_H +#define REGWND_H + +#include <qlistview.h> +#include <list> +#include <map> + +class QPopupMenu; +class RegisterViewItem; +class GroupingViewItem; +struct RegisterInfo; + + +class RegisterView : public QListView +{ + Q_OBJECT +public: + RegisterView(QWidget* parent, const char *name = 0L); + ~RegisterView(); + +protected slots: + void rightButtonClicked(QListViewItem*, const QPoint&, int); + void slotModeChange(int); + void updateRegisters(const std::list<RegisterInfo>&); + +private: + void paletteChange(const QPalette& oldPal); + void updateGroupVisibility(); + GroupingViewItem* findMatchingGroup(const QString& regName); + GroupingViewItem* findGroup(const QString& groupName); + QPopupMenu* m_modemenu; + typedef std::map<QString,RegisterViewItem*> RegMap; + RegMap m_registers; + +friend class RegisterViewItem; +}; + +#endif // REGWND_H |