blob: 71fd9b1b6fa7389de08ade603d8028af482c17e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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 <tqlistview.h>
#include <list>
#include <map>
class TQPopupMenu;
class RegisterViewItem;
class GroupingViewItem;
struct RegisterInfo;
class RegisterView : public TQListView
{
Q_OBJECT
public:
RegisterView(TQWidget* parent, const char *name = 0L);
~RegisterView();
protected slots:
void rightButtonClicked(TQListViewItem*, const TQPoint&, int);
void slotModeChange(int);
void updateRegisters(const std::list<RegisterInfo>&);
private:
void paletteChange(const TQPalette& oldPal);
void updateGroupVisibility();
GroupingViewItem* findMatchingGroup(const TQString& regName);
GroupingViewItem* findGroup(const TQString& groupName);
TQPopupMenu* m_modemenu;
typedef std::map<TQString,RegisterViewItem*> RegMap;
RegMap m_registers;
friend class RegisterViewItem;
};
#endif // REGWND_H
|