Salome HOME
Issue #251. Append Export/Import NewGeom commands in the SALOME desktop.
[modules/shaper.git] / src / PartSet / PartSet_WidgetSketchLabel.cpp
index 6089ab850600ee24b185e137f962df8899399831..6c0c3aaae02b42b93cf5a1650f204d0e04a4cf74 100644 (file)
 
 #include <QLabel>
 
-PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent, 
-  const Config_WidgetAPI* theData, 
-  const std::string& theParentId)
-: ModuleBase_ModelWidget(theParent, theData, theParentId)
+PartSet_WidgetSketchLabel::PartSet_WidgetSketchLabel(QWidget* theParent,
+                                                     const Config_WidgetAPI* theData,
+                                                     const std::string& theParentId)
+    : ModuleBase_ModelWidget(theParent, theData, theParentId)
 {
   myText = QString::fromStdString(theData->getProperty("title"));
-  myLabel = new QLabel(myText, theParent);
+  myLabel = new QLabel("", theParent);
   myLabel->setWordWrap(true);
   myTooltip = QString::fromStdString(theData->getProperty("tooltip"));
-  myLabel->setToolTip(myTooltip);
+  myLabel->setToolTip("");
+  myLabel->setIndent(5);
 }
 
 QList<QWidget*> PartSet_WidgetSketchLabel::getControls() const
 {
   QList<QWidget*> aLst;
-  aLst<<myLabel;
+  aLst << myLabel;
   return aLst;
 }
 
@@ -36,16 +37,14 @@ QWidget* PartSet_WidgetSketchLabel::getControl() const
   return myLabel;
 }
 
-
-
 void PartSet_WidgetSketchLabel::setOperationsMgr(XGUI_OperationMgr* theMgr)
 {
   ModuleBase_Operation* aOperation = theMgr->currentOperation();
   if (aOperation->inherits("PartSet_OperationSketch")) {
     PartSet_OperationSketch* aSketchOpe = static_cast<PartSet_OperationSketch*>(aOperation);
     updateLabel(aSketchOpe);
-    connect(aSketchOpe, SIGNAL(planeSelected(double, double, double)), 
-            this, SLOT(onPlaneSelected()));
+    connect(aSketchOpe, SIGNAL(updatePropPanel()), this,
+            SLOT(onPlaneSelected()));
   }
 }
 
@@ -64,4 +63,4 @@ void PartSet_WidgetSketchLabel::updateLabel(PartSet_OperationSketch* theSketchOp
     myLabel->setText(myText);
     myLabel->setToolTip(myTooltip);
   }
-}
\ No newline at end of file
+}