Salome HOME
Remove extra includes
[modules/shaper.git] / src / PartSet / PartSet_EditLine.h
index 1a7b5badd2baf1991032f54ee699bd44027f609d..c043dc08a5008567c4ef67fba2f2f5b3b344a60c 100644 (file)
@@ -16,36 +16,47 @@ class QWidget;
 /*!
  \class PartSet_EditLine
  * \brief The class to give an editor to modify a real value
-*/
+ */
 class PARTSET_EXPORT PartSet_EditLine : public QObject
 {
-  Q_OBJECT
-public:
+Q_OBJECT
+ public:
   /// Constructor
   PartSet_EditLine(QWidget* theParent);
   /// Destructor
-  virtual ~PartSet_EditLine() {};
+  virtual ~PartSet_EditLine()
+  {
+  }
+  ;
 
   /// Show the editor in the given global position
   /// \param thePoint a position
   /// \param theValue a value for the editor
   void start(const QPoint& thePoint, double theValue);
 
-  /// Returns the editor value
-  /// \return the real value
-  double getValue() const;
+  /// Checks whether the editor is started
+  /// \returns true if the editor is activated
+  bool isStarted() const;
+
+  /// Stop the editor, in other words hide it
+  void stop();
 
 signals:
   /// Signals about the editing stop
   /// \param theValue the editor value
   void stopped(double theValue);
 
-protected slots:
+ protected:
+  /// Returns the editor value
+  /// \return the real value
+  double getValue() const;
+
+ protected slots:
   /// Slot to check the editing stop
   void onStopEditing();
 
-protected:
-  QLineEdit* myEditor; /// the value editor
+ protected:
+  QLineEdit* myEditor;  /// the value editor
 };
 
 #endif