Salome HOME
Issue #2388: Remember last user choice for all dialog boxes with a choice
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetChoice.h
index de5b0e5657878a9aa15fbc33a58f8d11cb211253..dedec5978840d357fa56ac0642bbcad4866d23d7 100644 (file)
@@ -71,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
@@ -89,17 +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