blob: ae4b6fce7dcfc4f9832677683719452a706f9892 (
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
|
#ifndef KPROCESSORVIEW_H
#define KPROCESSORVIEW_H
#include <ktoolbar.h>
#include <knuminput.h>
#include <qcheckbox.h>
#include <klistview.h>
class MyListView : public KListView
{
Q_OBJECT
public:
MyListView(QWidget *parent) ;
~MyListView() ;
protected:
// virtual void mousePressEvent( QMouseEvent *event ) ;
public slots:
void slotContextMenu( KListView *, QListViewItem *, const QPoint & ) ;
signals:
void showPopupMenu() ;
} ;
class KProcessorView : public KToolBar
{
Q_OBJECT
public:
KProcessorView(QWidget *parent = 0, const char *name = 0);
~KProcessorView();
void setRegisterValues( unsigned char *values ) ;
void getRegisterValues( unsigned char *values ) ;
void setFlags( unsigned char flags );
unsigned char getFlags() ;
public slots:
void slotItemRenamed( QListViewItem * item ) ;
void slotHexMode() ;
void showPopupMenu() ;
signals:
void processorRegsChanged() ;
void processorFlagsChanged() ;
private:
virtual void resizeEvent( QResizeEvent *event ) ;
protected:
MyListView *view ;
QListViewItem * regs[ 16 ] ;
QListViewItem * zeroFlag, * carryFlag, * ieFlag ;
bool m_bHexMode ;
};
#endif
|