1 // File: PartSet_EditLine.h
2 // Created: 02 Jun 2014
3 // Author: Natalia ERMOLAEVA
5 #ifndef PartSet_EditLine_H
6 #define PartSet_EditLine_H
17 \class PartSet_EditLine
18 * \brief The class to give an editor to modify a real value
20 class PARTSET_EXPORT PartSet_EditLine : public QObject
25 PartSet_EditLine(QWidget* theParent);
27 virtual ~PartSet_EditLine() {};
29 /// Show the editor in the given global position
30 /// \param thePoint a position
31 /// \param theValue a value for the editor
32 void start(const QPoint& thePoint, double theValue);
34 /// Returns the editor value
35 /// \return the real value
36 double getValue() const;
39 /// Signals about the editing stop
40 /// \param theValue the editor value
41 void stopped(double theValue);
44 /// Slot to check the editing stop
48 QLineEdit* myEditor; /// the value editor