UI Interface
Create Main Page
The client plugin library provides users with the function to create a display interface in the HMI main program. Implemented by calling the CreateCenterWidget interface
QWidget *mainWidget = new QWidget;
xplugin::CreateCenterWidget(PLUGIN_NAME, mainWidget);
Create Bottom Status Component
The client plugin library provides users with the function to create a bottom status bar in the HMI main program. Implemented by calling the CreateStatusBar interface.
QLabel * statusBarLab = new QLabel;
xplugin:: CreateStatusBar (PLUGIN_NAME, statusBarLab, 1);
Bind Physical Buttons
The client plugin library provides users with the function to bind teach pendant physical buttons. Using this function requires creation and startup.
Create Physical Buttons
xplugin::PhysicalButton btn_wire_feed;
QList<xplugin::PhysicalButton> left_buttons;
left_buttons.append(btn_wire_feed);
QList<xplugin::PhysicalButton> right_buttons;
right_buttons.append(btn_wire_feed);
xplugin::CreatePhyButtonList(PLUGIN_NAME, PLUGIN_NAME, left_buttons, right_buttons);
Start Physical Buttons
xplugin::ChangePhyButtonStatus(PLUGIN_NAME, PLUGIN_NAME, true); // Enable
xplugin::ChangePhyButtonStatus(PLUGIN_NAME, PLUGIN_NAME, false); // Disable
Auxiliary Programming
The client plugin library provides users with the function to create custom auxiliary programming instruction groups in the HMI main program. Implemented through the RLManager class
xplugin::RLManager rlManager = new xplugin::RLManager(this);
rlManager ->createTypeKey("Custom");
rlManager->createSkeleton("Custom", "Custom");
rlManager->createInsDescribe("Custom", "Describe");
rlManager->createPattern("Custom", QString("^\\s*%1\\s*(?://.*)?$").arg("Custom"));
rlManager->createInsDefault("Custom", "Custom 100,101");
rlManager->createPropertyWidget("Custom", [](){return new RLCustomPropertyWidget("Custom");});
rlManager->createInsertWidget("Custom", [](){return new RLCustomInsertWidget("Custom");});
rlManager->createTypeToGroup("demo", "Custom");
rlManager->createGroups(tr("demo group"), "demo");
Auxiliary Popup
The client plugin library provides users with the function to create bottom right corner prompt popup windows in the HMI main program
xplugin::ThrowLog(PLUGIN_NAME, xplugin::enThrowLogLevel::Info, "Prompt message");