summaryrefslogtreecommitdiffstats
path: root/src/kprocessorview.h
blob: ae21e3df69e5ccbd505d46a62fe2746620b4cb6b (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
  TQ_OBJECT
	public:
		MyListView(TQWidget *tqparent) ;
		~MyListView() ;

	protected:
//		virtual void mousePressEvent( TQMouseEvent *event ) ;


	public slots:
		void slotContextMenu( KListView *, TQListViewItem *, const TQPoint & ) ;

	signals:
		void showPopupMenu() ;
} ;


class KProcessorView : public KToolBar
{
	Q_OBJECT
  TQ_OBJECT
	public:
    	KProcessorView(TQWidget *tqparent = 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( 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