-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmpostdialog.h
52 lines (45 loc) · 1.06 KB
/
mpostdialog.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
/*!
* \file mpostdialog.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for mpost dialog
*/
#ifndef MPOSTDIALOG_H_
#define MPOSTDIALOG_H_
#include <QDialog>
#include <QDialogButtonBox>
#include <QComboBox>
#include <QSpinBox>
#include <QDoubleSpinBox>
#include <QCheckBox>
#include <QGroupBox>
#include "./mpost.h"
#include "./memorymodel.h"
class QDialogButtonBox;
class MpostDialog : public QDialog {
Q_OBJECT
public:
MpostDialog(MemoryModel * m, QWidget *parent = 0);
void setMpost(Mpost m);
Mpost getMpost();
signals:
void setVariableComboBox(int i);
void setVariable2ComboBox(int i);
void setOpComboBox(int i);
private:
QDialogButtonBox *buttonBox;
QComboBox *variable;
QComboBox *variable2;
QComboBox * op;
QSpinBox * value;
QSpinBox * value2;
QCheckBox * myEnabled;
QGroupBox *lhsGroup;
QGroupBox *opGroup;
QGroupBox *rhsGroup;
Mpost mpost;
MemoryModel * memory;
QStringList operators;
};
#endif // MPOSTDIALOG_H_