+
+
+QWidget* ModuleBase_WidgetFactory::selectorControl(QWidget* theParent)
+{
+ QWidget* aRes = new QWidget();
+ QHBoxLayout* aLayout = new QHBoxLayout(aRes);
+
+ aLayout->setContentsMargins(0, 0, 0, 0);
+ QString aLabelText = qs(myWidgetApi->widgetLabel());
+ QString aLabelIcon = qs(myWidgetApi->widgetIcon());
+ QLabel* aLabel = new QLabel(aLabelText, aRes);
+ aLabel->setPixmap(QPixmap(aLabelIcon));
+
+ aLayout->addWidget(aLabel);
+
+ QLineEdit* aTextLine = new QLineEdit(aRes);
+ aTextLine->setReadOnly(true);
+
+ aLayout->addWidget(aTextLine);
+
+ QToolButton* aActivateBtn = new QToolButton(aRes);
+ aActivateBtn->setIcon(QIcon(":icons/hand_point.png"));
+ aActivateBtn->setCheckable(true);
+
+ aLayout->addWidget(aActivateBtn);
+
+ return aRes;
+}
+
+
+QWidget* ModuleBase_WidgetFactory::booleanControl(QWidget* theParent)
+{
+ QString aText = qs(myWidgetApi->widgetLabel());
+ QString aToolTip = qs(myWidgetApi->widgetTooltip());
+ QString aDefault = qs(myWidgetApi->getProperty("default"));
+
+ QCheckBox* aRes = new QCheckBox(aText, theParent);
+ aRes->setToolTip(aToolTip);
+ aRes->setChecked(aDefault == "true");
+ return aRes;
+}
\ No newline at end of file