|
@@ -265,10 +265,11 @@ void CGH_Printer::ReadConfigure()
|
|
|
infile.close();
|
|
|
|
|
|
// 参数设置
|
|
|
- ui.lineEditMoveUp->setText(QString::fromStdString(maps_Configure["前"]));
|
|
|
- ui.lineEditMoveDown->setText(QString::fromStdString(maps_Configure["后"]));
|
|
|
- ui.lineEditMoveLeft->setText(QString::fromStdString(maps_Configure["左"]));
|
|
|
- ui.lineEditMoveRight->setText(QString::fromStdString(maps_Configure["右"]));
|
|
|
+ //ui.lineEditMoveUp->setText(QString::fromStdString(maps_Configure["前"]));
|
|
|
+ //ui.lineEditMoveDown->setText(QString::fromStdString(maps_Configure["后"]));
|
|
|
+ //ui.lineEditMoveLeft->setText(QString::fromStdString(maps_Configure["左"]));
|
|
|
+ //ui.lineEditMoveRight->setText(QString::fromStdString(maps_Configure["右"]));
|
|
|
+ ui.lineEditMove->setText(QString::fromStdString(maps_Configure["位移"]));
|
|
|
ui.lineEditShutter->setText(QString::fromStdString(maps_Configure["时间"]));
|
|
|
|
|
|
ReadTransTableConfigue();
|
|
@@ -476,7 +477,7 @@ void CGH_Printer::MoveUp()
|
|
|
{
|
|
|
if (curTransTableState)
|
|
|
{
|
|
|
- double offset = ui.lineEditMoveUp->text().toDouble();
|
|
|
+ double offset = ui.lineEditMove->text().toDouble();
|
|
|
offset = -1 * offset;
|
|
|
|
|
|
if (!PI_MVR(Devices[1], sAxis.c_str(), &offset))
|
|
@@ -502,7 +503,7 @@ void CGH_Printer::MoveDown()
|
|
|
{
|
|
|
if (curTransTableState)
|
|
|
{
|
|
|
- double offset = ui.lineEditMoveDown->text().toDouble();
|
|
|
+ double offset = ui.lineEditMove->text().toDouble();
|
|
|
|
|
|
if (!PI_MVR(Devices[1], sAxis.c_str(), &offset))
|
|
|
{
|
|
@@ -528,7 +529,7 @@ void CGH_Printer::MoveLeft()
|
|
|
{
|
|
|
if (curTransTableState)
|
|
|
{
|
|
|
- double offset = ui.lineEditMoveLeft->text().toDouble();
|
|
|
+ double offset = ui.lineEditMove->text().toDouble();
|
|
|
|
|
|
if (!PI_MVR(Devices[0], sAxis.c_str(), &offset))
|
|
|
{
|
|
@@ -554,7 +555,7 @@ void CGH_Printer::MoveRight()
|
|
|
{
|
|
|
if (curTransTableState)
|
|
|
{
|
|
|
- double offset = ui.lineEditMoveRight->text().toDouble();
|
|
|
+ double offset = ui.lineEditMove->text().toDouble();
|
|
|
offset = -1 * offset;
|
|
|
|
|
|
if (!PI_MVR(Devices[0], sAxis.c_str(), &offset))
|