diff --git a/calculator.h b/calculator.h deleted file mode 100644 index 7315a90d5c203cf0fe524f451ccab8753c3ba61a..0000000000000000000000000000000000000000 --- a/calculator.h +++ /dev/null @@ -1,54 +0,0 @@ -#ifndef CALCULATOR_H -#define CALCULATOR_H - -#include -#include -class QLCDNumber; -class QPushButton; -class QGridLayout; -class QRadioButton; -class QHBoxLayout; - -class Calculator : public QWidget -{ - Q_OBJECT - -public: - Calculator(QWidget *parent = nullptr); - ~Calculator(); - void calc(); - -private: - QLCDNumber* f_lcdNum; - QRadioButton* f_radioBtnCasual; - QRadioButton* f_radioBtnSci; - - QStack f_operStack; - QString f_currentNum; - bool f_if_currNumChangable; - - QGridLayout* f_BtnLayoutCasual; - QGridLayout* f_BtnLayoutSciExtr; - QWidget* f_BtnLayoutSciExtrWidget; - QWidget* f_BtnLayoutCasualExtrWidget; - - QHBoxLayout* f_HBoxBtnLayout; - - QGridLayout* MainLayout; - - - const double PI = 3.1415926535; - const QVector NumND = {"e", "pi"}; - const QVector UnOp = {"rev", "sqr", "sqrt", "-x", "sin", "cos", "tan", "tanh", "sinh", "cosh", "ln", "exp", "n!", "cubic root", "cubic sqr"}; - const QVector OpToCountimmediately = {"log", "ysqr", "ysqrt"}; - const QVector SumOp = {"+", "-"}; - - QPushButton* createButton(const QString &p_str, size_t p_horz, size_t p_vert); - -public slots: - void slotButtonClicked(); - void slotHideSci(bool); - void slotShowSci(bool); - -}; -#endif // CALCULATOR_H