forked from FLAME-HPC/flame_visualiser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
conditiondialog.h
42 lines (35 loc) · 966 Bytes
/
conditiondialog.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
/*!
* \file conditiondialog.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for condition dialog
*/
#ifndef CONDITIONDIALOG_H_
#define CONDITIONDIALOG_H_
#include <QDialog>
#include "./agenttype.h"
#include "./condition.h"
#include "./ui_conditiondialog.h"
class ConditionDialog : public QDialog, public Ui::ConditionDialog {
Q_OBJECT
public:
ConditionDialog(QList<AgentType> * ats = 0, QString agentType = "",
int r = 0, QWidget *parent = 0);
void setCondition(Condition c);
Condition getCondition();
signals:
void setVariableComboBox(int i);
void setOpComboBox(int i);
void setValueSpinBox(double d);
void okButton();
void cancelButton();
private slots:
void updateEnable(bool c);
private:
QList<AgentType> * agentTypes;
Condition condition;
int row;
QStringList operators;
};
#endif // CONDITIONDIALOG_H_