-
Notifications
You must be signed in to change notification settings - Fork 1
/
binarybitpanel.h
executable file
·66 lines (56 loc) · 1.28 KB
/
binarybitpanel.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#ifndef BINARYBITPANEL_H
#define BINARYBITPANEL_H
#include <QtGui>
#include <QTableWidget>
#include <QComboBox>
#include <QPushButton>
#include "binarynumber.h"
#include "integeredit.h"
class BinaryBitPanel: public QFrame
{
Q_OBJECT
public:
BinaryBitPanel(QWidget *parent = 0);
void setFontHeightAndWidth(int height, int width);
int fontWidth;
int fontHeight;
QComboBox *operatorCombo;
BinaryNumber *input1;
BinaryNumber *input2;
BinaryNumber *output;
IntegerEdit *input1Edit;
IntegerEdit *input2Edit;
QPushButton *doit;
QTableWidget *table;
int value1;
int value2;
int count;
int computedValue;
int fontSize;
QString op;
public slots:
void selectOperator(QString);
void orStep1();
void orStep2();
void bitwiseOrStep1();
void bitwiseOrStep2();
void andStep1();
void andStep2();
void bitwiseAndStep1();
void bitwiseAndStep2();
void xorStep1();
void xorStep2();
void shiftLeftStep1();
void shiftLeftStep2();
void signedShiftRightStep1();
void signedShiftRightStep2();
void shiftRightStep1();
void shiftRightStep2();
void rotateLeftStep1();
void rotateLeftStep2();
void rotateRightStep1();
void rotateRightStep2();
private:
signals:
};
#endif