-
Notifications
You must be signed in to change notification settings - Fork 2
/
unitconvertormainwindow.h
122 lines (100 loc) · 3.05 KB
/
unitconvertormainwindow.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
// do not try to play with comments
#ifndef UNITCONVERTORMAINWINDOW_H
#define UNITCONVERTORMAINWINDOW_H
#include <QMainWindow>
#include<convertcm.h>//unit convertor window
#include <QPlainTextEdit>
namespace Ui {
class UnitConvertorMainWindow;
}
class UnitConvertorMainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit UnitConvertorMainWindow(QWidget *parent = nullptr);
~UnitConvertorMainWindow();
double valueInMeter;
double valueInKilometer;
double valueInCentimeter;
double valueInInch;
double valueInFoot;
double valueInYard;
double valueInMillimeter;
double valueInSquareKilometer;
double valueInSquareFoot;
double valueInSquareMeter;
double valueInHectare;
double valueInSquareCentimeter;
double valueInSquareInch;
double valueInSquareYard;
double valueInMiligram;
double valueInGram;
double valueInKilogram;
double valueInPound;
double valueInTon;
double valueInMeterPerSecond;
double valueInMilesPerHour;
double valueInMeterPerHour;
double valueInKilometerPerHour;
double valueInKilometerPerMinute;
double valueInDegree;
double valueInRadian;
double valueInGrad;
double valueInQuadrant;
double valueInCircle;
double valueInTurn;
double valueInSign;
double valueInKelvin;
double valueInCelsius;
double valueInFahrenheit;
double valueInRankine;
double valueInReaumur;
double valueInTriplePointOfWater;
double valueInSecond;
double valueInMinute;
double valueInHour;
double valueInDay;
double valueInWeek;
double valueInMonth;
double valueInYear;
double valueInCubicMeter;
double valueInCubicKilometer;
double valueInCubicCentimeter;
double valueInCubicMillimeter;
double valueInLiter;
double valueInMilliliter;
bool eventFilter(QObject *obj, QEvent *event) override;
convertcm * pconvertcm=NULL;// ADDRESS OF WINDOW UNIT CONVERTOR
signals:
void back();
private:
bool pushButton1Clicked;
Ui::UnitConvertorMainWindow *ui;
QPlainTextEdit *plainTextEdit_2;
QPlainTextEdit *plainTextEdit_3;
QPlainTextEdit *plainTextEditFuel;
QPlainTextEdit *plainTextEditSpeed;
QPlainTextEdit *plainTextEditAngle;
QPlainTextEdit *plainTextEditTemperature;
QPlainTextEdit *plainTextEditTime;
QPlainTextEdit *plainTextEditVolume;
private slots:
void onPlainTextEditTextChangedArea();
void onPlainTextEditTextChangedWeight();
void updateLabels();
void onPlainTextEditTextChangedSpeed();
void onPlainTextEditTextChangedAngle();
void onPlainTextEditTextChangedTemperature();
void onPlainTextEditTextChangedTime();
void onPlainTextEditTextChangedVolume();
void onPushButtonLengthClicked();
void onPushButtonAreaClicked();
void onPushButtonWeightClicked();
void onPushButtonSpeedClicked();
void onPushButtonAngleClicked();
void onPushButtonTemperatureClicked();
void onPushButtonTimeClicked();
void onPushButtonVolumeClicked();
void cleartext();
};
#endif // UNITCONVERTORMAINWINDOW_H