|
1 #ifndef _EDITPROFILEFERMENT_H |
|
2 #define _EDITPROFILEFERMENT_H |
|
3 |
|
4 #include <QDialog> |
|
5 #include <QJsonDocument> |
|
6 |
|
7 namespace Ui { |
|
8 class EditProfileFerment; |
|
9 } |
|
10 |
|
11 class EditProfileFerment : public QDialog |
|
12 { |
|
13 Q_OBJECT |
|
14 |
|
15 signals: |
|
16 void entry_changed(); |
|
17 |
|
18 public: |
|
19 explicit EditProfileFerment(int id, QWidget *parent = 0); |
|
20 ~EditProfileFerment(); |
|
21 |
|
22 private slots: |
|
23 void on_saveButton_clicked(); |
|
24 void on_quitButton_clicked(); |
|
25 void on_deleteButton_clicked(); |
|
26 void is_changed(); |
|
27 void make_Json(); |
|
28 void refreshTable(void); |
|
29 void cell_Changed(int nRow, int nCol); |
|
30 void combo_Changed(); |
|
31 void templo_changed(); |
|
32 void temphi_changed(); |
|
33 void on_addButton_clicked(); |
|
34 void on_deleteRow_clicked(); |
|
35 |
|
36 private: |
|
37 Ui::EditProfileFerment *ui; |
|
38 int recno, duration, totalsteps; |
|
39 bool textIsChanged = false; |
|
40 bool ignoreChanges = false; |
|
41 QJsonDocument steps; |
|
42 |
|
43 void WindowTitle(); |
|
44 }; |
|
45 |
|
46 #endif |