summaryrefslogtreecommitdiffstats
path: root/src/kprocessorview.h
blob: 84f105a76f8c6f8ddddbd01be4ca8b18f8958c10 (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 <tdetoolbar.h>
#include <knuminput.h>
#include <tqcheckbox.h>
#include <tdelistview.h>

class MyListView : public TDEListView
{
	TQ_OBJECT
  
	public:
		MyListView(TQWidget *parent) ;
		~MyListView() ;

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


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

	signals:
		void showPopupMenu() ;
} ;


class TDEProcessorView : public TDEToolBar
{
	TQ_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