[go: up one dir, main page]

Menu

[735b18]: / intmath.h  Maximize  Restore  History

Download this file

50 lines (39 with data), 797 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
#ifndef INTMATH_H
#define INTMATH_H
#include <QtGui>
#include "binarynumber.h"
#include "integeredit.h"
class IntMath : public QFrame
{
Q_OBJECT
public:
IntMath(QWidget *parent=0);
void setFontHeightAndWidth(int height, int width);
int fontWidth;
int fontHeight;
QComboBox *mathCombo;
BinaryNumber *input1;
BinaryNumber *input2;
BinaryNumber *carry;
BinaryNumber *output;
IntegerEdit *input1Edit;
IntegerEdit *input2Edit;
QPushButton *doit;
QTableWidget *table;
int value1;
int value2;
int computedValue;
int bit;
int row;
int fontSize;
QString op;
public slots:
void selectOperator(QString);
void add1();
void add2();
void multiply1();
void multiply2();
private:
signals:
};
#endif