mirea-projects/Third term/Industrial programming technologies/1_Calculator/mainwindow.h
2024-09-24 02:22:33 +03:00

42 lines
721 B
C++
Executable File

#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
void digitClicked();
void dotClicked();
void addClicked();
void subtractClicked();
void multiplyClicked();
void divideClicked();
void equalsClicked();
void clearClicked();
void changeSignClicked();
void powClicked();
void printDisplay();
private:
Ui::MainWindow *ui;
double currentValue;
double storedValue;
int doubleDepth;
QString pendingOperator;
};
#endif // MAINWINDOW_H