1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: PartSet_EditLine.h
4 // Created: 02 Jun 2014
5 // Author: Natalia ERMOLAEVA
7 #ifndef PartSet_EditLine_H
8 #define PartSet_EditLine_H
19 \class PartSet_EditLine
20 * \brief The class to give an editor to modify a real value
22 class PARTSET_EXPORT PartSet_EditLine : public QObject
27 PartSet_EditLine(QWidget* theParent);
29 virtual ~PartSet_EditLine()
34 /// Show the editor in the given global position
35 /// \param thePoint a position
36 /// \param theValue a value for the editor
37 void start(const QPoint& thePoint, double theValue);
39 /// Checks whether the editor is started
40 /// \returns true if the editor is activated
41 bool isStarted() const;
43 /// Stop the editor, in other words hide it
47 /// Signals about the editing stop
48 /// \param theValue the editor value
49 void stopped(double theValue);
52 /// Returns the editor value
53 /// \return the real value
54 double getValue() const;
57 /// Slot to check the editing stop
61 QLineEdit* myEditor; /// the value editor