-
Notifications
You must be signed in to change notification settings - Fork 0
/
memorycell.h
44 lines (36 loc) · 952 Bytes
/
memorycell.h
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
#ifndef MEMORYCELL_H
#define MEMORYCELL_H
#include <qlabel.h>
#include <qstring.h>
class MemoryCell : public QLabel
{
Q_OBJECT
public:
MemoryCell(QWidget *parent = 0, const char *name = 0);
void setID( int );
void setMemo( QString );
void setFrequency( long long int );
void setMode( int );
void setFilter( int, int );
int getID();
int getMemo();
long long int getFrequency();
int getMode();
int getFilter_l();
int getFilter_h();
private:
int id;
QString memo;
long long int frequency;
int mode;
int filter_l;
int filter_h;
protected:
void mouseReleaseEvent ( QMouseEvent * );
void enterEvent ( QEvent * );
signals:
void read( MemoryCell * );
void write( MemoryCell * );
void display( MemoryCell * );
};
#endif