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()
32 /// Show the editor in the given global position
33 /// \param thePoint a position
34 /// \param theValue a value for the editor
35 void start(const QPoint& thePoint, double theValue);
37 /// Checks whether the editor is started
38 /// \returns true if the editor is activated
39 bool isStarted() const;
41 /// Stop the editor, in other words hide it
45 /// Signals about the editing stop
46 /// \param theValue the editor value
47 void stopped(double theValue);
50 /// Returns the editor value
51 /// \return the real value
52 double getValue() const;
55 /// Slot to check the editing stop
59 QLineEdit* myEditor; /// the value editor