-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMaterialDialog.h
58 lines (39 loc) · 1.28 KB
/
MaterialDialog.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
#ifndef MATERIALDIALOG_H
#define MATERIALDIALOG_H
#include <QDialog>
#include <QTimer>
#include "SMSDataTypes.h"
#define MATERIAL_DIALOG_ACCEPT 99
#define MATERIAL_DIALOG_CANCEL 1
namespace Ui {
class MaterialDialog;
}
class MaterialDialog : public QDialog
{
Q_OBJECT
public:
explicit MaterialDialog(QWidget *parent = nullptr);
~MaterialDialog();
void AssignDialogPtr(QString* itemNamePtr, QString* itemUnitSuffixPtr, QString* itemDescriptionPtr, double* itemUnitCostPtr, bool isEdit);
private slots:
void AlarmTimer();
void on_SetItemName_textEdited(const QString &arg1);
void on_SetUnitSuffix_textEdited(const QString &arg1);
void on_SetUnitCost_valueChanged(double arg1);
void on_SetItemDescription_textEdited(const QString &arg1);
void on_AcceptButton_clicked(bool checked);
void on_CancelButton_clicked(bool checked);
private:
Ui::MaterialDialog *ui;
QTimer* warningTimer;
QString itemName = "";
QString itemUnitSuffix = "";
QString itemDescription = "";
double itemUnitCost = 0.0;
QString *A_itemName;
QString *A_itemUnitSuffix;
QString *A_itemDescription;
double *A_itemUnitCost;
bool isEditDialog = false;
};
#endif // MATERIALDIALOG_H