forked from GTreeSoftware/GTreeCodeExample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TreeChecker.h
50 lines (49 loc) · 1.43 KB
/
TreeChecker.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
#ifndef TREECHECKER_H
#define TREECHECKER_H
#include <QDialog>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QLabel>
#include <QSpinBox>
#include <QLineEdit>
#include <QPushButton>
#include <QCheckBox>
#include "ngtypes/ParamPack.h"
class TreeChecker :public QDialog
{
Q_OBJECT
public:
explicit TreeChecker(QWidget *parent = 0);
~TreeChecker();
void SetParam(NGParamPack arg);
QString TranslateLayerListIntoText(const std::vector<int>& layerList) ;
bool TranslateTextIntoLayerList(const QString &str, std::vector<int>& layerList) ;
void SetHasSoma(bool);
void SetRadius(int arg);
void SetLayerID(const std::vector<int>&);
void SetBranchID(const std::vector<int>&);
bool GetLayerID(std::vector<int>&) ;
bool GetBranchID(std::vector<int>&) ;
int GetRadius()const{ return inputRadius->value(); }
bool HasSoma() const { return checkBox->isChecked(); }
private slots:
void UpdateTreeCheckerTips_Slot();
private:
QVBoxLayout *vl;
QHBoxLayout *hl1;
QHBoxLayout *hl2;
QHBoxLayout *hl3;
QLabel *tips;
QLabel *inputLayerLabel;
QLabel *inputBranchLabel ;
QLabel *inputRadiusLabel;
QSpinBox *inputRadius;
QLineEdit *inputLayerList ;
QLineEdit *inputBranchList;
QHBoxLayout *hl ;
QPushButton *acceptButton ;
QPushButton *cancelButton ;
QCheckBox *checkBox ;
NGParamPack paramPack;
};
#endif