Salome HOME
Issue #1865: Create a field
[modules/shaper.git] / src / CollectionPlugin / CollectionPlugin_WidgetField.h
index 2e6d630ff47ca135addc5a245ab04c77b0abb3c3..816cfb7bf047729bcb09dff5b9b2d1af79cf7e56 100644 (file)
@@ -53,6 +53,11 @@ public:
   /// \return a boolean value
   virtual bool isValidSelection(const std::shared_ptr<ModuleBase_ViewerPrs>& theValue);
 
+  /// Returns true if the event is processed.
+  virtual bool processEnter();
+
+  /// The methiod called when widget is deactivated
+  virtual void deactivate();
 
 protected:
   /// Saves the internal parameters to the given feature
@@ -88,6 +93,10 @@ private slots:
 
   void onShapeTypeChanged(int theType);
 
+  void onFocusChanged(QWidget* theOld, QWidget* theNew);
+
+  void onRangeChanged(int theMin, int theMax);
+
 private:
   void clearData();
 
@@ -136,6 +145,8 @@ private:
 
   QLineEdit* myHeaderEditor;
   int myEditIndex;
+
+  bool myIsEditing;
 };
 
 #endif
\ No newline at end of file