|
@@ -1,4 +1,5 @@
|
|
|
#include "JIoMapPage.h"
|
|
|
+#include <Machine.h>
|
|
|
|
|
|
JIoMapPage::JIoMapPage() {}
|
|
|
|
|
@@ -10,7 +11,7 @@ QWidget* JIoMapPage::CreateIoPage(const CONFIG_BASE_STRUCT& control)
|
|
|
// 2. 创建垂直布局
|
|
|
QHBoxLayout* pHLayout = new QHBoxLayout();
|
|
|
|
|
|
- ClickCircleLabel* pIoState = new ClickCircleLabel();
|
|
|
+ IoStateLab* pIoState = new IoStateLab();
|
|
|
pIoState->setIoName(strName);
|
|
|
QLabel* pAxisNmae = new QLabel();
|
|
|
QString strAxisName = tr("AxisNmae:", "轴名称:");
|
|
@@ -66,7 +67,7 @@ QWidget* JIoMapPage::CreateAxisTestPage(const CONFIG_BASE_STRUCT& control)
|
|
|
QPushButton* pTest = new QPushButton(tr("Axis Test","轴测试"));
|
|
|
QObject::connect(pTest, &QPushButton::clicked, [strName]()
|
|
|
{
|
|
|
- // 执行弹出窗口
|
|
|
+ ns_module::CViewMotion::GetInstance()->ShowMotionAdjustPage(strName.toStdString());
|
|
|
});
|
|
|
|
|
|
pHLayout->addWidget(pTest);
|