/*!
\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