-
Notifications
You must be signed in to change notification settings - Fork 0
/
OperationEditor.h
49 lines (39 loc) · 972 Bytes
/
OperationEditor.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
#ifndef OPERATIONWIDGET_H
#define OPERATIONWIDGET_H
#include <QWidget>
#include "Operation.h"
QT_BEGIN_NAMESPACE
class QFormLayout;
class QLabel;
class QComboBox;
class QSpinBox;
QT_END_NAMESPACE
/*!
* \brief The OperationWidget class - it is used by @OperationDelegate to edit operation's properties
*/
class OperationEditor : public QWidget
{
Q_OBJECT
public:
explicit OperationEditor(int machineCount = 1, QWidget *parent = 0);
~OperationEditor();
// void setWidgetData(int machine, int time);
// int machine()const;
// int time()const;
// QSize sizeHint() const;
const Operation &operation();
void setOperation(const Operation &operation);
/*
public slots:
void setMachinesCount(int);
*/
protected:
Operation m_operation;
int m_machineCount;
QFormLayout *ui_formLayout;
QLabel *ui_label_machine;
QLabel *ui_label_time;
QComboBox *ui_machine;
QSpinBox *ui_time;
};
#endif // OPERATIONWIDGET_H