Salome HOME
Fix for the issue #2753 : error when dump/load script
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetChoice.h
index cd0fa9521b1848d7b68b96f0164811d9bd31c8a9..dedec5978840d357fa56ac0642bbcad4866d23d7 100644 (file)
@@ -25,9 +25,7 @@
 #include "ModuleBase_ModelWidget.h"
 
 class QWidget;
-class QLabel;
-class QComboBox;
-class QButtonGroup;
+class ModuleBase_ChoiceCtrl;
 
 /**
 * \ingroup GUI
@@ -73,6 +71,9 @@ Q_OBJECT
   /// \return the title value
   QString getPropertyPanelTitle(int theIndex);
 
+  /// The slot is called when user press Ok or OkPlus buttons in the parent property panel
+  virtual void onFeatureAccepted();
+
 signals:
   /// Segnal about selected item
   /// \param theWidget selected widget
@@ -91,15 +92,15 @@ private slots:
   void onCurrentIndexChanged(int theIndex);
 
 private:
-  /// The label
-  QLabel* myLabel;
-
-  /// The control
-  QComboBox* myCombo;
-  QButtonGroup* myButtons;
+  ModuleBase_ChoiceCtrl* myChoiceCtrl;
 
   // XML definition of titles
   QStringList myButtonTitles;
+  std::string myStringListAttribute;
+
+  bool myIsFirst;
+  int myDefValue;
+  bool myHasValue;
 };
 
 #endif