X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetExprEditor.h;h=b542808f4e5b1ae99992e4da8bd51785e857bce6;hb=39aa2839a4269a2fc87cfe3b4487cce8f3df9a6f;hp=e05a1ecf4c9451e54a868055ef081c6464662a64;hpb=cbde248859fb0072f6012907391ea90cfc254574;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetExprEditor.h b/src/ModuleBase/ModuleBase_WidgetExprEditor.h index e05a1ecf4..b542808f4 100644 --- a/src/ModuleBase/ModuleBase_WidgetExprEditor.h +++ b/src/ModuleBase/ModuleBase_WidgetExprEditor.h @@ -45,12 +45,6 @@ class ExpressionEditor: public QPlainTextEdit /// Returns placeholder list QString placeHolderText() const; - /// Returns true if the current value is modified by has not been applyed yet - bool isModified() const; - - /// Clears modified state - void clearModified(); - public slots: /// Insert additional string for completion /// \param theCompletion a string to insert @@ -68,8 +62,9 @@ signals: void valueModified(); /// The signal about key release on the control, that corresponds to the attribute + /// \param theObject a sender of the event /// \param theEvent key release event - void keyReleased(QKeyEvent* theEvent); + void keyReleased(QObject* theObject, QKeyEvent* theEvent); protected: /// Perform completion by prefix @@ -92,9 +87,6 @@ private: QCompleter* myCompleter; bool myCompletedAndSelected; QString myPlaceHolderText; - - /// Boolean value whether the spin box content is modified - bool myIsModified; }; /** @@ -108,14 +100,15 @@ class MODULEBASE_EXPORT ModuleBase_WidgetExprEditor : public ModuleBase_ModelWid /// Constructor /// \param theParent the parent object /// \param theData the widget configuration. - /// \param theParentId is Id of a parent of the current attribute /// \param thePlaceHolder a placeholder string ModuleBase_WidgetExprEditor( QWidget* theParent, const Config_WidgetAPI* theData, - const std::string& theParentId, const std::string& thePlaceHolder ); virtual ~ModuleBase_WidgetExprEditor(); + /// The methiod called when widget is activated + virtual void activateCustom(); + /// Redefinition of virtual method virtual QList getControls() const; @@ -132,7 +125,7 @@ protected: /// Saves the internal parameters to the given feature /// \return True in success - virtual bool storeValueCustom() const; + virtual bool storeValueCustom(); /// Redefinition of virtual method virtual bool restoreValueCustom();