-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmainwindow.h
101 lines (54 loc) · 2.38 KB
/
mainwindow.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
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QString>
#include "db_worker.h"
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
MainWindow(QWidget *parent = nullptr);
~MainWindow();
private slots:
//-------------// Event Filter Method //------------------------
bool eventFilter(QObject *watched, QEvent *event);
//-------------// DB Functions //------------------------
bool add_new_db_data(const QString& acid_limit_input, const QString& equivalent_limit);
bool delete_db_data (const QString& acid_limit_input);
void on_db_add_data_input_Button_clicked();
void on_db_delete_data_Button_clicked();
void on_db_exit_admin_Button_clicked();
//-------------// Change Menu Methods //------------------------
void on_molar_solutions_menubur_triggered();
void on_normal_concentration_menubur_triggered();
void on_ligation_menubur_triggered();
//-------------// Normal Concentration Check Boxes //-------------
void on_normal_concentration_concentration_radioButton_clicked();
void on_normal_concentration_volume_radioButton_clicked();
void on_normal_concentration_mass_radioButton_clicked();
//-------------// Molar Solutions Check Boxes //-------------
void on_molar_solutions_volume_radioButton_clicked();
void on_molar_solutions_molar_concentration_radioButton_clicked();
void on_molar_solutions_mass_radioButton_clicked();
//-------------// Calculate Methods //------------------------
//-------------// Calculate Molar Solutions //------------------------
void calculate_molar_solutions_volume();
void calculate_molar_solutions_molar_concentration();
void calculate_molar_solutions_mass();
//-------------// Calculate Normal Concentration //------------------------
void calculate_normal_concentration_volume();
void calculate_normal_concentration_concentration();
void calculate_normal_concentration_mass();
//-------------// Calculate Ligation //------------------------
void calculate_ligation();
void on_calculate_Button_clicked();
void on_clear_Button_clicked();
void on_info_triggered();
private:
Ui::MainWindow *ui;
DBWorker *db;
};
#endif // MAINWINDOW_H