X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetExprEditor.h;h=b7af4cfb557921d7da86b7bf1c673ee957f1fe77;hb=450d1bd65c11870d3942a30164518037b9a7503e;hp=39ae9823546f07afd09c1960fe7ba6dd70f21c37;hpb=3b6472899555f2186d09f45f4f1fde38b3af969a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetExprEditor.h b/src/ModuleBase/ModuleBase_WidgetExprEditor.h index 39ae98235..b7af4cfb5 100644 --- a/src/ModuleBase/ModuleBase_WidgetExprEditor.h +++ b/src/ModuleBase/ModuleBase_WidgetExprEditor.h @@ -54,6 +54,17 @@ class ExpressionEditor: public QPlainTextEdit /// Perform completion void performCompletion(); + /// A slot for processing text changed event + void onTextChanged(); + +signals: + /// The signal about text change in the text editor + void valueModified(); + + /// The signal about key release on the control, that corresponds to the attribute + /// \param theEvent key release event + void keyReleased(QKeyEvent* theEvent); + protected: /// Perform completion by prefix /// \param theCompletionPrefix a prefix for looking for completion @@ -70,7 +81,7 @@ class ExpressionEditor: public QPlainTextEdit /// Redefinition of virtual method virtual void paintEvent( QPaintEvent* ); - private: +private: QStringListModel* myCompleterModel; QCompleter* myCompleter; bool myCompletedAndSelected; @@ -99,11 +110,17 @@ class MODULEBASE_EXPORT ModuleBase_WidgetExprEditor : public ModuleBase_ModelWid /// Redefinition of virtual method virtual QList getControls() const; - public slots: - /// A slot for processing text changed event + /// Returns true if the event is processed. + virtual bool processEnter(); + +protected slots: + /// A slot for processing text changed event void onTextChanged(); protected: + /// Do not initialize value on the widget activation + virtual void initializeValueByActivate(); + /// Saves the internal parameters to the given feature /// \return True in success virtual bool storeValueCustom() const;