blob: 05c95b4ad3bd41b6b21b996dafb7dfa68105a9b8 (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#ifndef KPROCESSORVIEW_H
#define KPROCESSORVIEW_H
#include <ktoolbar.h>
#include <knuminput.h>
#include <tqcheckbox.h>
#include <klistview.h>
class MyListView : public KListView
{
Q_OBJECT
public:
MyListView(TQWidget *parent) ;
~MyListView() ;
protected:
// virtual void mousePressEvent( TQMouseEvent *event ) ;
public slots:
void slotContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ;
signals:
void showPopupMenu() ;
} ;
class TDEProcessorView : public KToolBar
{
Q_OBJECT
public:
TDEProcessorView(TQWidget *parent = 0, const char *name = 0);
~TDEProcessorView();
void setRegisterValues( unsigned char *values ) ;
void getRegisterValues( unsigned char *values ) ;
void setFlags( unsigned char flags );
unsigned char getFlags() ;
public slots:
void slotItemRenamed( TQListViewItem * item ) ;
void slotHexMode() ;
void showPopupMenu() ;
signals:
void processorRegsChanged() ;
void processorFlagsChanged() ;
private:
virtual void resizeEvent( TQResizeEvent *event ) ;
protected:
MyListView *view ;
TQListViewItem * regs[ 16 ] ;
TQListViewItem * zeroFlag, * carryFlag, * ieFlag ;
bool m_bHexMode ;
};
#endif
|