X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_EditLine.h;h=c043dc08a5008567c4ef67fba2f2f5b3b344a60c;hb=50c050906e6b5926727fcbadcbf4247326ef60be;hp=1a7b5badd2baf1991032f54ee699bd44027f609d;hpb=b3eb2ec99597987ae45f7b0f8edafb03a6cae129;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_EditLine.h b/src/PartSet/PartSet_EditLine.h index 1a7b5badd..c043dc08a 100644 --- a/src/PartSet/PartSet_EditLine.h +++ b/src/PartSet/PartSet_EditLine.h @@ -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