]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1343. Improvement of Extrusion and Revolution operations: transaction correcti...
authornds <nds@opencascade.com>
Wed, 6 Apr 2016 13:35:43 +0000 (16:35 +0300)
committernds <nds@opencascade.com>
Wed, 6 Apr 2016 13:36:11 +0000 (16:36 +0300)
14 files changed:
src/FeaturesPlugin/extrusion_widget.xml
src/FeaturesPlugin/extrusioncut_widget.xml
src/FeaturesPlugin/extrusionfuse_widget.xml
src/FeaturesPlugin/revolution_widget.xml
src/FeaturesPlugin/revolutioncut_widget.xml
src/FeaturesPlugin/revolutionfuse_widget.xml
src/ModuleBase/ModuleBase_OperationFeature.cpp
src/ModuleBase/ModuleBase_OperationFeature.h
src/PartSet/CMakeLists.txt
src/PartSet/PartSet_Module.cpp
src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp [deleted file]
src/PartSet/PartSet_WidgetMultiSelectorComposite.h [deleted file]
src/PartSet/PartSet_WidgetSketchCreator.cpp
src/PartSet/PartSet_WidgetSketchCreator.h

index 4c94677a107547fcc56ada58d9d69cf9dfcc57ea..ebe912f3b59fb8490ac2db9bcef5896047509f3d 100644 (file)
                    shape_types="faces objects">
     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
   </sketch_launcher>
-  <composite_multi_selector id="base"
+  <multi_selector id="base"
                             label="Base objects:"
                             tooltip="Select a base objects"
                             type_choice="faces objects">
     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
-  </composite_multi_selector>
+  </multi_selector>
   <shape_selector id="direction_object"
                   icon=":icons/axis.png"
                   label="Direction"
index 1e13dfa862c8b94b4775edc75ec9063e6c47acd3..541d5675c7378df7da0f20f675b070440e1fe8af 100755 (executable)
       shape_types="face objects">
       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
     </sketch_launcher>
-    <composite_multi_selector id="base"
+    <multi_selector id="base"
       label="Select a sketch face"
       icon=":icons/sketch.png"
       tooltip="Select a sketch face"
       type_choice="Faces Objects">
       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
-    </composite_multi_selector>
+    </multi_selector>
     <shape_selector id="direction_object"
                     icon=":icons/axis.png"
                     label="Direction"
index cf1e6dfcf9165e249d0bad4c8512875e37fb465a..73740e4a75a1ad2314b749e099b2f306f3f10fa0 100644 (file)
       shape_types="face objects">
       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
     </sketch_launcher>
-    <composite_multi_selector id="base"
+    <multi_selector id="base"
       label="Select a sketch face"
       icon=":icons/sketch.png"
       tooltip="Select a sketch face"
       type_choice="Faces Objects">
       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
-    </composite_multi_selector>
+    </multi_selector>
     <shape_selector id="direction_object"
                     icon=":icons/axis.png"
                     label="Direction"
index c6c50d62cb5b62dc71e7256aaa84c986861a18dc..bf0607ecf42a0f0678cc19a07f583790d747edbe 100644 (file)
                    shape_types="faces objects">
     <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
   </sketch_launcher>
-  <composite_multi_selector id="base"
+  <multi_selector id="base"
                             label="Base objects:"
                             tooltip="Select a base objects"
                             type_choice="faces objects">
     <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
-  </composite_multi_selector>
+  </multi_selector>
   <shape_selector id="axis_object"
                   icon=":icons/axis.png"
                   label="Axis"
index 9c8ab5febcf5ece4a24b84e464acd6facb68fcab..d41197a7aaa1c5deaf5b74dcf61add5930f7fc3f 100644 (file)
       shape_types="face objects">
       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
     </sketch_launcher>
-    <composite_multi_selector id="base"
+    <multi_selector id="base"
       label="Select a sketch face"
       icon=":icons/sketch.png"
       tooltip="Select a sketch face"
       type_choice="Faces Objects">
       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="face,shell"/>
-    </composite_multi_selector>
+    </multi_selector>
     <shape_selector id="axis_object"
                     icon=":icons/axis.png"
                     label="Axis"
index baa883f27f03b0c0ed8bd54fe809f03f3a0d5bba..01eb5f5ebb31e726f7ca808a4c01847624227d65 100644 (file)
       shape_types="face objects">
       <validator id="FeaturesPlugin_ValidatorCompositeLauncher" parameters="base,Sketch"/>
     </sketch_launcher>
-    <composite_multi_selector id="base"
+    <multi_selector id="base"
       label="Select a sketch face"
       icon=":icons/sketch.png"
       tooltip="Select a sketch face"
       type_choice="Faces Objects">
       <validator id="FeaturesPlugin_ValidatorBaseForGeneration" parameters="vertex,edge,wire,face,shell"/>
-    </composite_multi_selector>
+    </multi_selector>
     <shape_selector id="axis_object"
                     icon=":icons/axis.png"
                     label="Axis"
index f331ed72fda1f511a3f7db7a7f711dd8a069813d..0cc1cfea1087925ca846efb76b5241045590d377 100755 (executable)
@@ -412,8 +412,6 @@ FeaturePtr ModuleBase_OperationFeature::previousCurrentFeature()
 void ModuleBase_OperationFeature::initSelection(ModuleBase_ISelection* theSelection,
                                          ModuleBase_IViewer* theViewer)
 {
-  clearPreselection();
-
   QList<ModuleBase_ViewerPrs> aPreSelected;
   // Check that the selected result are not results of operation feature
   FeaturePtr aFeature = feature();
@@ -433,7 +431,13 @@ void ModuleBase_OperationFeature::initSelection(ModuleBase_ISelection* theSelect
   } else
     aPreSelected = theSelection->getSelected(ModuleBase_ISelection::AllControls);
 
-  myPreSelection = aPreSelected;
+  setPreselection(aPreSelected);
+}
+
+void ModuleBase_OperationFeature::setPreselection(const QList<ModuleBase_ViewerPrs>& theValues)
+{
+  clearPreselection();
+  myPreSelection = theValues;
 }
 
 void ModuleBase_OperationFeature::clearPreselection()
index 2d1844d131abb30a5abe536eda018224628fdfdf..b6f5c95fd9315781f5733538f360a8b629c0cf30 100755 (executable)
@@ -98,6 +98,10 @@ Q_OBJECT
   virtual void initSelection(ModuleBase_ISelection* theSelection,
                              ModuleBase_IViewer* theViewer);
 
+  /// Fill internal map by preselection
+  /// \param theValues a list of preselection
+  void setPreselection(const QList<ModuleBase_ViewerPrs>& theValues);
+
   /// \brief Set property pane to the operation
   /// \param theProp a property panel instance
   virtual void setPropertyPanel(ModuleBase_IPropertyPanel* theProp);
index bb032d0d76b5f9fd41f0c85761c092c80714e18a..e0d363f525e93cbb8a565912d5d24b134cddad6e 100644 (file)
@@ -19,7 +19,6 @@ SET(PROJECT_HEADERS
        PartSet_WidgetPoint2d.h
        PartSet_WidgetEditor.h
        PartSet_WidgetMultiSelector.h
-       PartSet_WidgetMultiSelectorComposite.h
        PartSet_WidgetPoint2dDistance.h
        PartSet_WidgetPoint2DFlyout.h
        PartSet_WidgetShapeSelector.h
@@ -47,7 +46,6 @@ SET(PROJECT_SOURCES
        PartSet_Validators.cpp
        PartSet_WidgetEditor.cpp
        PartSet_WidgetMultiSelector.cpp
-       PartSet_WidgetMultiSelectorComposite.cpp
        PartSet_WidgetPoint2d.cpp
        PartSet_WidgetPoint2dDistance.cpp
        PartSet_WidgetPoint2DFlyout.cpp
index f4984ca051f7cb28ab60abb19b2b6190c4847604..a55a66c4844a8e60b56fb502f50e8b8dad8e6c76 100755 (executable)
@@ -10,7 +10,6 @@
 #include "PartSet_WidgetPoint2DFlyout.h"
 #include "PartSet_WidgetShapeSelector.h"
 #include "PartSet_WidgetMultiSelector.h"
-#include "PartSet_WidgetMultiSelectorComposite.h"
 #include "PartSet_WidgetEditor.h"
 #include "PartSet_WidgetFileSelector.h"
 #include "PartSet_WidgetSketchCreator.h"
@@ -680,10 +679,6 @@ ModuleBase_ModelWidget* PartSet_Module::createWidgetByType(const std::string& th
                           new PartSet_WidgetMultiSelector(theParent, aWorkshop, theWidgetApi);
     aShapeSelectorWgt->setSketcher(mySketchMgr->activeSketch());
     aWgt = aShapeSelectorWgt;
-  } else if (theType == "composite_multi_selector") {
-    PartSet_WidgetMultiSelectorComposite* aShapeSelectorWgt =
-                 new PartSet_WidgetMultiSelectorComposite(theParent, aWorkshop, theWidgetApi);
-    aWgt = aShapeSelectorWgt;
   }
   else if (theType == WDG_DOUBLEVALUE_EDITOR) {
     aWgt = new PartSet_WidgetEditor(theParent, aWorkshop, theWidgetApi);
diff --git a/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp b/src/PartSet/PartSet_WidgetMultiSelectorComposite.cpp
deleted file mode 100755 (executable)
index 2c34e5c..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        PartSet_WidgetMultiSelectorComposite.cpp
-// Created:     17 Mar 2016
-// Author:      Natalia Ermolaeva
-
-#include "PartSet_WidgetMultiSelectorComposite.h"
-
-PartSet_WidgetMultiSelectorComposite::PartSet_WidgetMultiSelectorComposite(QWidget* theParent,
-                                                         ModuleBase_IWorkshop* theWorkshop,
-                                                         const Config_WidgetAPI* theData)
-: ModuleBase_WidgetMultiSelector(theParent, theWorkshop, theData)
-{
-}
-
-PartSet_WidgetMultiSelectorComposite::~PartSet_WidgetMultiSelectorComposite()
-{
-}
-
-bool PartSet_WidgetMultiSelectorComposite::focusTo()
-{
-  bool aCanHaveFocus = true;
-
-  if (hasSubObjects()) {
-  // disable widget controls
-    disableControls();
-    aCanHaveFocus = false;
-  }
-  else
-    aCanHaveFocus = ModuleBase_WidgetMultiSelector::focusTo();
-  return aCanHaveFocus;
-}
-
-void PartSet_WidgetMultiSelectorComposite::setEditingMode(bool isEditing)
-{
-  ModuleBase_ModelWidget::setEditingMode(isEditing);
-  bool aHasSubObjects = hasSubObjects();
-  if (aHasSubObjects)
-    disableControls();
-}
-
-bool PartSet_WidgetMultiSelectorComposite::hasSubObjects() const
-{
-  bool aHasSubObjects = false;
-
-  bool aCanSetFocus = true;
-  CompositeFeaturePtr aComposite = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
-  if (aComposite.get())
-    aHasSubObjects = aComposite->numberOfSubs() > 0;
-  return aHasSubObjects;
-}
-
-void PartSet_WidgetMultiSelectorComposite::disableControls()
-{
-  QList<QWidget*> aMyControls = getControls();
-  foreach(QWidget*  eachControl, aMyControls) {
-    eachControl->setFocusPolicy(Qt::NoFocus);
-    eachControl->setEnabled(false);
-  }
-}
diff --git a/src/PartSet/PartSet_WidgetMultiSelectorComposite.h b/src/PartSet/PartSet_WidgetMultiSelectorComposite.h
deleted file mode 100755 (executable)
index 4cfd940..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
-
-// File:        PartSet_WidgetMultiSelectorComposite.h
-// Created:     17 Mar 2016
-// Author:      Natalia Ermolaeva
-
-#ifndef PartSet_WidgetMultiSelectorComposite_H
-#define PartSet_WidgetMultiSelectorComposite_H
-
-#include "PartSet.h"
-
-#include <ModuleBase_WidgetMultiSelector.h>
-
-#include <ModelAPI_CompositeFeature.h>
-
-/**
-* \ingroup Modules
-* Customosation of ModuleBase_WidgetMultiSelector in order to provide 
-* working with sketch specific objects and creation of external objects.
-*/
-class PARTSET_EXPORT PartSet_WidgetMultiSelectorComposite: public ModuleBase_WidgetMultiSelector
-{
-Q_OBJECT
- public:
-  /// Constructor
-  /// \param theParent the parent object
-  /// \param theWorkshop instance of workshop interface
-  /// \param theData the widget configuation. The attribute of the model widget is obtained from
-  PartSet_WidgetMultiSelectorComposite(QWidget* theParent, ModuleBase_IWorkshop* theWorkshop,
-                              const Config_WidgetAPI* theData);
-
-  virtual ~PartSet_WidgetMultiSelectorComposite();
-
-  /// Set focus to the first control of the current widget. The focus policy of the control is checked.
-  /// If the widget has the NonFocus focus policy, it is skipped.
-  /// \return the state whether the widget can accept the focus
-  virtual bool focusTo();
-
-  /// Editing mode depends on mode of current operation. This value is defined by it.
-  virtual void setEditingMode(bool isEditing);
-
-private:
-  /// Returns true if the current composite feature contains at least one sub-object
-  /// \return boolean value
-  bool hasSubObjects() const;
-
-  /// Disable controls by setting them focus policy NoFocus and disabling them
-  void disableControls();
-};
-
-#endif
\ No newline at end of file
index cc3f93362a60c5d7d613b55cf1a26c5dc5061e26..1f00cc5a1c02a5650d3142d432e0ca517d013342 100644 (file)
@@ -48,7 +48,7 @@
 #include <QMessageBox>
 #include <QMainWindow>
 
-//#define DEBUG_UNDO_INVALID_SKETCH
+#define DEBUG_UNDO_INVALID_SKETCH
 
 PartSet_WidgetSketchCreator::PartSet_WidgetSketchCreator(QWidget* theParent, 
                                                          PartSet_Module* theModule,
@@ -71,19 +71,6 @@ PartSet_WidgetSketchCreator::PartSet_WidgetSketchCreator(QWidget* theParent,
   myLabel->setWordWrap(true);
   aLayout->addWidget(myLabel);
   aLayout->addStretch(1);
-  /*if (!aLabelIcon.isEmpty())
-    myLabel->setPixmap(QPixmap(aLabelIcon));
-
-
-  QString aToolTip = QString::fromStdString(theData->widgetTooltip());
-  myTextLine = new QLineEdit(this);
-  myTextLine->setReadOnly(true);
-  myTextLine->setToolTip(aToolTip);
-  myTextLine->installEventFilter(this);
-
-  myLabel->setToolTip(aToolTip);
-
-  aLayout->addRow(myLabel, myTextLine);*/
 
   std::string aTypes = theData->getProperty("shape_types");
   myShapeTypes = QString(aTypes.c_str()).split(' ', QString::SkipEmptyParts);
@@ -93,6 +80,9 @@ PartSet_WidgetSketchCreator::PartSet_WidgetSketchCreator(QWidget* theParent,
 
 PartSet_WidgetSketchCreator::~PartSet_WidgetSketchCreator()
 {
+  // we need to deactivate here in order to hide preview planes if the selection mode is
+  // active
+  deactivate();
 }
 
 QList<QWidget*> PartSet_WidgetSketchCreator::getControls() const
@@ -104,12 +94,6 @@ QList<QWidget*> PartSet_WidgetSketchCreator::getControls() const
 
 bool PartSet_WidgetSketchCreator::restoreValueCustom()
 {
-  /*CompositeFeaturePtr aCompFeature = 
-    std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
-  if (aCompFeature->numberOfSubs() > 0) {
-    FeaturePtr aSubFeature = aCompFeature->subFeature(0);
-    myTextLine->setText(QString::fromStdString(aSubFeature->data()->name()));
-  }*/
   return true;
 }
 
@@ -178,8 +162,6 @@ bool PartSet_WidgetSketchCreator::isValidSelectionCustom(const ModuleBase_Viewer
 
 void PartSet_WidgetSketchCreator::activateSelectionControl()
 {
-  setVisibleSelectionControl(true);
-
   // we need to call activate here as the widget has no focus accepted controls
   // if these controls are added here, activate will happens automatically after focusIn()
   XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myModule->workshop());
@@ -201,8 +183,11 @@ void PartSet_WidgetSketchCreator::setVisibleSelectionControl(const bool theSelec
     else { // hide current control
       if (aWidget == this)
         aWidget->setVisible(false);
-      else
+      else {
         aWidget->setVisible(true);
+        if (aWidget->attributeID() == myAttributeListID)
+          setEnabledModelWidget(aWidget, !hasSubObjects());
+      }
     }
   }
 
@@ -232,8 +217,22 @@ QIntList PartSet_WidgetSketchCreator::getShapeTypes() const
 void PartSet_WidgetSketchCreator::setEditingMode(bool isEditing)
 {
   ModuleBase_ModelWidget::setEditingMode(isEditing);
-  if (isEditing)
+  if (isEditing) {
     setVisibleSelectionControl(false);
+
+    ModuleBase_ModelWidget* anAttributeListWidget = 0;
+    XGUI_Workshop* aWorkshop = XGUI_Tools::workshop(myModule->workshop());
+    XGUI_PropertyPanel* aPanel = aWorkshop->propertyPanel();
+    const QList<ModuleBase_ModelWidget*>& aWidgets = aPanel->modelWidgets();
+    foreach(ModuleBase_ModelWidget* aWidget, aWidgets) {
+      if (aWidget->attributeID() == myAttributeListID) {
+        anAttributeListWidget = aWidget;
+        break;
+      }
+    }
+    if (anAttributeListWidget)
+      setEnabledModelWidget(anAttributeListWidget, !hasSubObjects());
+  }
 }
 
 bool PartSet_WidgetSketchCreator::isSelectionMode() const
@@ -244,6 +243,17 @@ bool PartSet_WidgetSketchCreator::isSelectionMode() const
   return !aHasValueInList;
 }
 
+bool PartSet_WidgetSketchCreator::hasSubObjects() const
+{
+  bool aHasSubObjects = false;
+
+  bool aCanSetFocus = true;
+  CompositeFeaturePtr aComposite = std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
+  if (aComposite.get())
+    aHasSubObjects = aComposite->numberOfSubs() > 0;
+  return aHasSubObjects;
+}
+
 bool PartSet_WidgetSketchCreator::setSelection(QList<ModuleBase_ViewerPrs>& theValues,
                                                const bool theToValidate)
 {
@@ -305,23 +315,13 @@ bool PartSet_WidgetSketchCreator::startSketchOperation(const QList<ModuleBase_Vi
   CompositeFeaturePtr aCompFeature = 
     std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
 
-  /// add sketch feature without current feature change.
-  /// it is important to do not change the current feature in order to
-  /// after sketch edition, the extrusion cut feature becomes current
-  SessionPtr aMgr = ModelAPI_Session::get();
-  DocumentPtr aDoc = aMgr->activeDocument();
-  FeaturePtr aPreviousCurrentFeature = aDoc->currentFeature(false);
-  FeaturePtr aSketch = aCompFeature->addFeature("Sketch");
-
-  PartSet_WidgetSketchLabel::fillSketchPlaneBySelection(aSketch, aValue);
-
-  aDoc->setCurrentFeature(aPreviousCurrentFeature, false);
-
   // start edit operation for the sketch
   ModuleBase_OperationFeature* aFOperation = dynamic_cast<ModuleBase_OperationFeature*>
                                                             (myModule->createOperation("Sketch"));
-  if (aFOperation)
-    aFOperation->setFeature(aSketch);
+  QList<ModuleBase_ViewerPrs> aValues;
+  aValues.push_back(aValue);
+  aFOperation->setPreselection(aValues);
+
   myModule->sendOperation(aFOperation);
 
   return aSketchStarted;
@@ -330,16 +330,16 @@ bool PartSet_WidgetSketchCreator::startSketchOperation(const QList<ModuleBase_Vi
 bool PartSet_WidgetSketchCreator::focusTo()
 {
   // this method is called only in creation mode. In Edition mode this widget is hidden
-  CompositeFeaturePtr aCompFeature = 
-      std::dynamic_pointer_cast<ModelAPI_CompositeFeature>(myFeature);
-  if (isSelectionMode() && aCompFeature->numberOfSubs() == 0) {
+  if (isSelectionMode() && !hasSubObjects()) {
+    setVisibleSelectionControl(true);
     activateSelectionControl();
     openExtrusionTransaction();
     return true;
   }
   else
     connect(myModule, SIGNAL(resumed(ModuleBase_Operation*)), SLOT(onResumed(ModuleBase_Operation*)));
-  return false;
+
+  return true;
 }
 
 void PartSet_WidgetSketchCreator::deactivate()
@@ -401,7 +401,11 @@ void PartSet_WidgetSketchCreator::onResumed(ModuleBase_Operation* theOp)
   }
   openExtrusionTransaction();
 
-  if (aCompFeature->numberOfSubs() > 0) {
+  if (aCompFeature->numberOfSubs() == 0) {
+    // call activateWidget() of the parent to connect to the viewer seleciton
+    activateSelectionControl();
+  }
+  else {
     // check if the created sketch is valid. If it is invalid, it will be deleted with warning else
     /// the attribute selection list will be filled by result of this sketch.
     setVisibleSelectionControl(false);
@@ -495,3 +499,12 @@ void PartSet_WidgetSketchCreator::setSketchObjectToList(const CompositeFeaturePt
     aBaseObjectsSelectionList->append(aSketchRes, GeomShapePtr());
   }
 }
+
+void PartSet_WidgetSketchCreator::setEnabledModelWidget(ModuleBase_ModelWidget* theModelWidget,
+                                                        const bool theEnabled)
+{
+  QList<QWidget*> aMyControls = theModelWidget->getControls();
+  foreach(QWidget*  eachControl, aMyControls) {
+    eachControl->setEnabled(theEnabled);
+  }
+}
index b7b8b2f40df2969545389fc8c0ef55e198f426a9..d94e0d6d9dee4011ad7e5a44941bf74245095642 100644 (file)
@@ -12,7 +12,6 @@
 #include <ModuleBase_WidgetSelector.h>
 
 class QLabel;
-class QLineEdit;
 class PartSet_Module;
 class ModelAPI_Tools;
 class ModuleBase_Operation;
@@ -117,6 +116,10 @@ private:
   /// \return boolean value
   bool isSelectionMode() const;
 
+  /// Returns true if the current composite feature contains at least one sub-object
+  /// \return boolean value
+  bool hasSubObjects() const;
+
 private slots:
   void onResumed(ModuleBase_Operation* theOp);
 
@@ -134,6 +137,12 @@ private:
   /// \return true if validation succeed
   bool validateSelectionList() const;
 
+  /// Change enable state of controls in the model widget by the attribute identifier
+  /// \param theModelWidget a model widget
+  /// \param theEnabled a state if the controls should be enabled/disabled
+  void setEnabledModelWidget(ModuleBase_ModelWidget* theModelWidget,
+                             const bool theEnabled);
+
 private:
   std::string myAttributeListID;
 
@@ -146,9 +155,6 @@ private:
   /// Label of the widget
   QLabel* myLabel;
 
-  /// Input control of the widget
-  QLineEdit* myTextLine;
-
   /// List of accepting shapes types
   QStringList myShapeTypes;