+ myStackWidget = new QStackedWidget(this);
+ myStackWidget->setContentsMargins(0,0,0,0);
+ aLayout->addWidget(myStackWidget);
+
+ // Define label for plane selection
+ QWidget* aFirstWgt = new QWidget(this);
+
+ QString aText = QString::fromStdString(theData->getProperty("title"));
+ QLabel* aLabel = new QLabel(aText, aFirstWgt);
+ aLabel->setWordWrap(true);
+ QString aTooltip = QString::fromStdString(theData->getProperty("tooltip"));
+ aLabel->setToolTip(aTooltip);
+ aLabel->setIndent(5);
+
+ aLayout = new QVBoxLayout(aFirstWgt);
+ ModuleBase_Tools::zeroMargins(aLayout);
+ aLayout->addWidget(aLabel);
+
+ myStackWidget->addWidget(aFirstWgt);
+
+ // Define widget for sketch manmagement
+ QWidget* aSecondWgt = new QWidget(this);
+ aLayout = new QVBoxLayout(aSecondWgt);
+ ModuleBase_Tools::zeroMargins(aLayout);
+
+ QGroupBox* aViewBox = new QGroupBox(tr("Sketcher plane"), this);
+ QVBoxLayout* aViewLayout = new QVBoxLayout(aViewBox);
+
+ myViewInverted = new QCheckBox(tr("Inverted"), aViewBox);
+ aViewLayout->addWidget(myViewInverted);
+
+ QPushButton* aSetViewBtn = new QPushButton(QIcon(":icons/plane_view.png"), tr("Set plane view"), aViewBox);
+ connect(aSetViewBtn, SIGNAL(clicked(bool)), this, SLOT(onSetPlaneView()));
+ aViewLayout->addWidget(aSetViewBtn);