|
1 #ifndef _PRODONDATE_H |
|
2 #define _PRODONDATE_H |
|
3 |
|
4 #include <QDialog> |
|
5 #include <QtWidgets/QGridLayout> |
|
6 #include <QtWidgets/QGroupBox> |
|
7 #include <QtWidgets/QPushButton> |
|
8 #include <QtWidgets/QListView> |
|
9 #include <QtWidgets/QTreeWidget> |
|
10 #include <QtWidgets/QDialog> |
|
11 #include <QtWidgets/QHeaderView> |
|
12 #include <QtWidgets/QLabel> |
|
13 #include <QtWidgets/QLineEdit> |
|
14 #include <QtWidgets/QPlainTextEdit> |
|
15 #include <QtWidgets/QDoubleSpinBox> |
|
16 #include <QtWidgets/QSpinBox> |
|
17 |
|
18 namespace Ui { |
|
19 class ProdOnDate; |
|
20 } |
|
21 |
|
22 class ProdOnDate : public QDialog |
|
23 { |
|
24 Q_OBJECT |
|
25 |
|
26 public: |
|
27 explicit ProdOnDate(QWidget *parent = nullptr); |
|
28 ~ProdOnDate(); |
|
29 |
|
30 signals: |
|
31 void setStatus(QString); |
|
32 |
|
33 private slots: |
|
34 void on_openButton_clicked(); |
|
35 void on_item_clicked(QTreeWidgetItem *, int); |
|
36 void on_item_doubleclicked(QTreeWidgetItem *, int); |
|
37 void refreshTable(void); |
|
38 |
|
39 private: |
|
40 QGridLayout *gridLayout; |
|
41 QTreeWidget *treeWidget; |
|
42 QGroupBox *groupBox, *recipeBox; |
|
43 QHBoxLayout *horizontalLayout; |
|
44 QPushButton *quitButton, *openButton; |
|
45 QLabel *volumeLabel, *efficiencyLabel, *boilvolumeLabel; |
|
46 QLabel *boiltimeLabel, *ogLabel, *fgLabel; |
|
47 QLabel *abvLabel, *co2Label, *colorLabel; |
|
48 QLabel *colormethodLabel, *ibuLabel, *ibumethodLabel; |
|
49 QLabel *remarksLabel; |
|
50 QDoubleSpinBox *volumeEdit, *boilvolumeEdit; |
|
51 QDoubleSpinBox *efficiencyEdit, *ogEdit, *fgEdit; |
|
52 QDoubleSpinBox *abvEdit, *co2Edit; |
|
53 QSpinBox *boiltimeEdit, *colorEdit, *ibuEdit; |
|
54 QPlainTextEdit *remarksEdit; |
|
55 QLineEdit *colormethodEdit, *ibumethodEdit; |
|
56 int record; |
|
57 |
|
58 void edit(int recno); |
|
59 void showRecipe(); |
|
60 }; |
|
61 |
|
62 #endif |