-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormGalilCSKinematics.cpp
More file actions
32 lines (27 loc) · 1.02 KB
/
FormGalilCSKinematics.cpp
File metadata and controls
32 lines (27 loc) · 1.02 KB
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
#include "FormGalilCSKinematics.h"
#include "ui_FormGalilCSKinematics.h"
FormGalilCSKinematics::FormGalilCSKinematics(QString group, QString cs[], QWidget *parent) :
QMainWindow(parent),
ui(new Ui::FormGalilCSKinematics)
{
ui->setupUi(this);
this->group = group;
CONNECT_CLOSE_BUTTON;
SET_GROUP(QELineEdit);
QString group2 = this->group.split(":")[0];
QChar axis = ' ';
for(int i = 0; i < 8; i++)
{
axis = i + 73;
this->findChild<QELineEdit*>("txtDescription" + QString(axis))->setVariableNameSubstitutionsProperty
("motor" + STRING(i + 9) + "=" + group2 + ":" + cs[i]);
this->findChild<QELineEdit*>("txtTransform" + QString(axis))->setVariableNameSubstitutionsProperty
("motor" + STRING(i + 9) + "=" + group2 + ":" + cs[i]);
}
this->ui->lblError->setVariableNameProperty(group2 + ":ERROR_MON");
this->ui->lblName->setVariableNameProperty(this->group + ".NAME");
}
FormGalilCSKinematics::~FormGalilCSKinematics()
{
delete ui;
}