-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnormalview.h
53 lines (46 loc) · 1008 Bytes
/
normalview.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
#ifndef NORMALVIEW_H
#define NORMALVIEW_H
#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QGridLayout>
#include <QFile>
#include <QShortcut>
#include <float.h>
#include <historyview.h>
class NormalView : public QWidget
{
Q_OBJECT
public:
explicit NormalView(QWidget *parent = 0);
void setHistoryView(HistoryView *h);
HistoryView *historyView();
private:
//basic
double memory;
bool _memory;
double solution;
bool _solution;
double op1;
bool _op1;
double op2;
bool _op2;
char operation;
bool divisionByZero;
QByteArray tempText;
QByteArray inputText;
HistoryView *history;
//layout
QGridLayout *layoutNormal;
QPushButton *btnNormal[25];
QLabel *labelNormalSolution;
QLabel *labelNormalTemp;
signals:
public slots:
void solutionRefresh(int mode);
double calculate();
void initAll();
void initWithoutSolution();
void memoryEnabled(bool enable);
};
#endif // NORMALVIEW_H