| 1 |
/******************************************************************************** |
| 2 |
** Form generated from reading UI file 'calculator.ui' |
| 3 |
** |
| 4 |
** Created by: Qt User Interface Compiler version 5.12.0 |
| 5 |
** |
| 6 |
** WARNING! All changes made in this file will be lost when recompiling UI file! |
| 7 |
********************************************************************************/ |
| 8 |
|
| 9 |
#ifndef CALCULATOR_H |
| 10 |
#define CALCULATOR_H |
| 11 |
|
| 12 |
#include <QtCore/QVariant> |
| 13 |
#include <QtWidgets/QApplication> |
| 14 |
#include <QtWidgets/QLineEdit> |
| 15 |
#include <QtWidgets/QToolButton> |
| 16 |
#include <QtWidgets/QWidget> |
| 17 |
|
| 18 |
QT_BEGIN_NAMESPACE |
| 19 |
|
| 20 |
class Ui_Calculator |
| 21 |
{ |
| 22 |
public: |
| 23 |
QToolButton *backspaceButton; |
| 24 |
QToolButton *clearButton; |
| 25 |
QToolButton *clearAllButton; |
| 26 |
QToolButton *clearMemoryButton; |
| 27 |
QToolButton *readMemoryButton; |
| 28 |
QToolButton *setMemoryButton; |
| 29 |
QToolButton *addToMemoryButton; |
| 30 |
QToolButton *sevenButton; |
| 31 |
QToolButton *eightButton; |
| 32 |
QToolButton *nineButton; |
| 33 |
QToolButton *fourButton; |
| 34 |
QToolButton *fiveButton; |
| 35 |
QToolButton *sixButton; |
| 36 |
QToolButton *oneButton; |
| 37 |
QToolButton *twoButton; |
| 38 |
QToolButton *threeButton; |
| 39 |
QToolButton *zeroButton; |
| 40 |
QToolButton *pointButton; |
| 41 |
QToolButton *changeSignButton; |
| 42 |
QToolButton *plusButton; |
| 43 |
QToolButton *divisionButton; |
| 44 |
QToolButton *timesButton; |
| 45 |
QToolButton *minusButton; |
| 46 |
QToolButton *squareRootButton; |
| 47 |
QToolButton *powerButton; |
| 48 |
QToolButton *reciprocalButton; |
| 49 |
QToolButton *equalButton; |
| 50 |
QLineEdit *display; |
| 51 |
|
| 52 |
void setupUi(QWidget *Calculator) |
| 53 |
{ |
| 54 |
if (Calculator->objectName().isEmpty()) |
| 55 |
Calculator->setObjectName(QString::fromUtf8("Calculator")); |
| 56 |
Calculator->resize(314, 301); |
| 57 |
QSizePolicy sizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed); |
| 58 |
sizePolicy.setHorizontalStretch(0); |
| 59 |
sizePolicy.setVerticalStretch(0); |
| 60 |
sizePolicy.setHeightForWidth(Calculator->sizePolicy().hasHeightForWidth()); |
| 61 |
Calculator->setSizePolicy(sizePolicy); |
| 62 |
Calculator->setMinimumSize(QSize(314, 301)); |
| 63 |
Calculator->setMaximumSize(QSize(314, 301)); |
| 64 |
backspaceButton = new QToolButton(Calculator); |
| 65 |
backspaceButton->setObjectName(QString::fromUtf8("backspaceButton")); |
| 66 |
backspaceButton->setGeometry(QRect(10, 50, 91, 41)); |
| 67 |
clearButton = new QToolButton(Calculator); |
| 68 |
clearButton->setObjectName(QString::fromUtf8("clearButton")); |
| 69 |
clearButton->setGeometry(QRect(110, 50, 91, 41)); |
| 70 |
clearAllButton = new QToolButton(Calculator); |
| 71 |
clearAllButton->setObjectName(QString::fromUtf8("clearAllButton")); |
| 72 |
clearAllButton->setGeometry(QRect(210, 50, 91, 41)); |
| 73 |
clearMemoryButton = new QToolButton(Calculator); |
| 74 |
clearMemoryButton->setObjectName(QString::fromUtf8("clearMemoryButton")); |
| 75 |
clearMemoryButton->setGeometry(QRect(10, 100, 41, 41)); |
| 76 |
readMemoryButton = new QToolButton(Calculator); |
| 77 |
readMemoryButton->setObjectName(QString::fromUtf8("readMemoryButton")); |
| 78 |
readMemoryButton->setGeometry(QRect(10, 150, 41, 41)); |
| 79 |
setMemoryButton = new QToolButton(Calculator); |
| 80 |
setMemoryButton->setObjectName(QString::fromUtf8("setMemoryButton")); |
| 81 |
setMemoryButton->setGeometry(QRect(10, 200, 41, 41)); |
| 82 |
addToMemoryButton = new QToolButton(Calculator); |
| 83 |
addToMemoryButton->setObjectName(QString::fromUtf8("addToMemoryButton")); |
| 84 |
addToMemoryButton->setGeometry(QRect(10, 250, 41, 41)); |
| 85 |
sevenButton = new QToolButton(Calculator); |
| 86 |
sevenButton->setObjectName(QString::fromUtf8("sevenButton")); |
| 87 |
sevenButton->setGeometry(QRect(60, 100, 41, 41)); |
| 88 |
eightButton = new QToolButton(Calculator); |
| 89 |
eightButton->setObjectName(QString::fromUtf8("eightButton")); |
| 90 |
eightButton->setGeometry(QRect(110, 100, 41, 41)); |
| 91 |
nineButton = new QToolButton(Calculator); |
| 92 |
nineButton->setObjectName(QString::fromUtf8("nineButton")); |
| 93 |
nineButton->setGeometry(QRect(160, 100, 41, 41)); |
| 94 |
fourButton = new QToolButton(Calculator); |
| 95 |
fourButton->setObjectName(QString::fromUtf8("fourButton")); |
| 96 |
fourButton->setGeometry(QRect(60, 150, 41, 41)); |
| 97 |
fiveButton = new QToolButton(Calculator); |
| 98 |
fiveButton->setObjectName(QString::fromUtf8("fiveButton")); |
| 99 |
fiveButton->setGeometry(QRect(110, 150, 41, 41)); |
| 100 |
sixButton = new QToolButton(Calculator); |
| 101 |
sixButton->setObjectName(QString::fromUtf8("sixButton")); |
| 102 |
sixButton->setGeometry(QRect(160, 150, 41, 41)); |
| 103 |
oneButton = new QToolButton(Calculator); |
| 104 |
oneButton->setObjectName(QString::fromUtf8("oneButton")); |
| 105 |
oneButton->setGeometry(QRect(60, 200, 41, 41)); |
| 106 |
twoButton = new QToolButton(Calculator); |
| 107 |
twoButton->setObjectName(QString::fromUtf8("twoButton")); |
| 108 |
twoButton->setGeometry(QRect(110, 200, 41, 41)); |
| 109 |
threeButton = new QToolButton(Calculator); |
| 110 |
threeButton->setObjectName(QString::fromUtf8("threeButton")); |
| 111 |
threeButton->setGeometry(QRect(160, 200, 41, 41)); |
| 112 |
zeroButton = new QToolButton(Calculator); |
| 113 |
zeroButton->setObjectName(QString::fromUtf8("zeroButton")); |
| 114 |
zeroButton->setGeometry(QRect(60, 250, 41, 41)); |
| 115 |
pointButton = new QToolButton(Calculator); |
| 116 |
pointButton->setObjectName(QString::fromUtf8("pointButton")); |
| 117 |
pointButton->setGeometry(QRect(110, 250, 41, 41)); |
| 118 |
changeSignButton = new QToolButton(Calculator); |
| 119 |
changeSignButton->setObjectName(QString::fromUtf8("changeSignButton")); |
| 120 |
changeSignButton->setGeometry(QRect(160, 250, 41, 41)); |
| 121 |
plusButton = new QToolButton(Calculator); |
| 122 |
plusButton->setObjectName(QString::fromUtf8("plusButton")); |
| 123 |
plusButton->setGeometry(QRect(210, 250, 41, 41)); |
| 124 |
divisionButton = new QToolButton(Calculator); |
| 125 |
divisionButton->setObjectName(QString::fromUtf8("divisionButton")); |
| 126 |
divisionButton->setGeometry(QRect(210, 100, 41, 41)); |
| 127 |
timesButton = new QToolButton(Calculator); |
| 128 |
timesButton->setObjectName(QString::fromUtf8("timesButton")); |
| 129 |
timesButton->setGeometry(QRect(210, 150, 41, 41)); |
| 130 |
minusButton = new QToolButton(Calculator); |
| 131 |
minusButton->setObjectName(QString::fromUtf8("minusButton")); |
| 132 |
minusButton->setGeometry(QRect(210, 200, 41, 41)); |
| 133 |
squareRootButton = new QToolButton(Calculator); |
| 134 |
squareRootButton->setObjectName(QString::fromUtf8("squareRootButton")); |
| 135 |
squareRootButton->setGeometry(QRect(260, 100, 41, 41)); |
| 136 |
powerButton = new QToolButton(Calculator); |
| 137 |
powerButton->setObjectName(QString::fromUtf8("powerButton")); |
| 138 |
powerButton->setGeometry(QRect(260, 150, 41, 41)); |
| 139 |
reciprocalButton = new QToolButton(Calculator); |
| 140 |
reciprocalButton->setObjectName(QString::fromUtf8("reciprocalButton")); |
| 141 |
reciprocalButton->setGeometry(QRect(260, 200, 41, 41)); |
| 142 |
equalButton = new QToolButton(Calculator); |
| 143 |
equalButton->setObjectName(QString::fromUtf8("equalButton")); |
| 144 |
equalButton->setGeometry(QRect(260, 250, 41, 41)); |
| 145 |
display = new QLineEdit(Calculator); |
| 146 |
display->setObjectName(QString::fromUtf8("display")); |
| 147 |
display->setGeometry(QRect(10, 10, 291, 31)); |
| 148 |
display->setMaxLength(15); |
| 149 |
display->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter); |
| 150 |
display->setReadOnly(true); |
| 151 |
|
| 152 |
retranslateUi(Calculator); |
| 153 |
|
| 154 |
QMetaObject::connectSlotsByName(Calculator); |
| 155 |
} // setupUi |
| 156 |
|
| 157 |
void retranslateUi(QWidget *Calculator) |
| 158 |
{ |
| 159 |
Calculator->setWindowTitle(QCoreApplication::translate("Calculator", "Calculator", nullptr)); |
| 160 |
backspaceButton->setText(QCoreApplication::translate("Calculator", "Backspace", nullptr)); |
| 161 |
clearButton->setText(QCoreApplication::translate("Calculator", "Clear", nullptr)); |
| 162 |
clearAllButton->setText(QCoreApplication::translate("Calculator", "Clear All", nullptr)); |
| 163 |
clearMemoryButton->setText(QCoreApplication::translate("Calculator", "MC", nullptr)); |
| 164 |
readMemoryButton->setText(QCoreApplication::translate("Calculator", "MR", nullptr)); |
| 165 |
setMemoryButton->setText(QCoreApplication::translate("Calculator", "MS", nullptr)); |
| 166 |
addToMemoryButton->setText(QCoreApplication::translate("Calculator", "M+", nullptr)); |
| 167 |
sevenButton->setText(QCoreApplication::translate("Calculator", "7", nullptr)); |
| 168 |
eightButton->setText(QCoreApplication::translate("Calculator", "8", nullptr)); |
| 169 |
nineButton->setText(QCoreApplication::translate("Calculator", "9", nullptr)); |
| 170 |
fourButton->setText(QCoreApplication::translate("Calculator", "4", nullptr)); |
| 171 |
fiveButton->setText(QCoreApplication::translate("Calculator", "5", nullptr)); |
| 172 |
sixButton->setText(QCoreApplication::translate("Calculator", "6", nullptr)); |
| 173 |
oneButton->setText(QCoreApplication::translate("Calculator", "1", nullptr)); |
| 174 |
twoButton->setText(QCoreApplication::translate("Calculator", "2", nullptr)); |
| 175 |
threeButton->setText(QCoreApplication::translate("Calculator", "3", nullptr)); |
| 176 |
zeroButton->setText(QCoreApplication::translate("Calculator", "0", nullptr)); |
| 177 |
pointButton->setText(QCoreApplication::translate("Calculator", ".", nullptr)); |
| 178 |
changeSignButton->setText(QCoreApplication::translate("Calculator", "+-", nullptr)); |
| 179 |
plusButton->setText(QCoreApplication::translate("Calculator", "+", nullptr)); |
| 180 |
divisionButton->setText(QCoreApplication::translate("Calculator", "/", nullptr)); |
| 181 |
timesButton->setText(QCoreApplication::translate("Calculator", "*", nullptr)); |
| 182 |
minusButton->setText(QCoreApplication::translate("Calculator", "-", nullptr)); |
| 183 |
squareRootButton->setText(QCoreApplication::translate("Calculator", "Sqrt", nullptr)); |
| 184 |
powerButton->setText(QCoreApplication::translate("Calculator", "x^2", nullptr)); |
| 185 |
reciprocalButton->setText(QCoreApplication::translate("Calculator", "1/x", nullptr)); |
| 186 |
equalButton->setText(QCoreApplication::translate("Calculator", "=", nullptr)); |
| 187 |
} // retranslateUi |
| 188 |
|
| 189 |
}; |
| 190 |
|
| 191 |
namespace Ui { |
| 192 |
class Calculator: public Ui_Calculator {}; |
| 193 |
} // namespace Ui |
| 194 |
|
| 195 |
QT_END_NAMESPACE |
| 196 |
|
| 197 |
#endif // CALCULATOR_H |