[go: up one dir, main page]

Menu

[4cf102]: / unarybitpanel.h  Maximize  Restore  History

Download this file

53 lines (42 with data), 941 Bytes

 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
#ifndef UNARYBITPANEL_H
#define UNARYBITPANEL_H
#include <QtGui>
#include <QTableWidget>
#include <QPushButton>
#include <QComboBox>
#include "binarynumber.h"
#include "integeredit.h"
class UnaryBitPanel: public QFrame
{
Q_OBJECT
public:
UnaryBitPanel(QWidget *parent = 0);
void setFontHeightAndWidth(int height, int width);
int fontWidth;
int fontHeight;
QComboBox *operatorCombo;
BinaryNumber *input;
BinaryNumber *output1;
BinaryNumber *output2;
BinaryNumber *add1;
IntegerEdit *inputEdit;
QPushButton *doit;
QTableWidget *table;
int value;
int computedValue;
int fontSize;
QString op;
public slots:
void selectOperator(QString);
void notStep1();
void notStep2();
void bitwiseNotStep1();
void bitwiseNotStep2();
void negateStep1();
void negateStep2();
void negateStep3();
void negateStep4();
private:
signals:
};
#endif