X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetExprEditor.h;h=b7af4cfb557921d7da86b7bf1c673ee957f1fe77;hb=8cd56d486b6e96b8814002f9f0f4acadd6cea11b;hp=eb2ff9aa1e1d861f68b164aa0e3efc207e30d452;hpb=3eedcd3fa7bfd2eea9337c24a5fcdd96f263340a;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetExprEditor.h b/src/ModuleBase/ModuleBase_WidgetExprEditor.h index eb2ff9aa1..b7af4cfb5 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 @@ -64,11 +58,8 @@ class ExpressionEditor: public QPlainTextEdit void onTextChanged(); signals: - void editingFinished(); + /// The signal about text change in the text editor void valueModified(); - /// A signal that is emitted by the "Tab" key event. It is emitted before the key is processed. - void valueStored(); - void focusNextPrev(); /// The signal about key release on the control, that corresponds to the attribute /// \param theEvent key release event @@ -90,19 +81,11 @@ signals: /// Redefinition of virtual method virtual void paintEvent( QPaintEvent* ); - /// The parent method that processes the "Tab"/"SHIF + Tab" keyboard events - /// Emits a signal about focus change - /// If theIsNext is true, this function searches forward, if next is false, it searches backward. - virtual bool focusNextPrevChild(bool theIsNext); - - private: +private: QStringListModel* myCompleterModel; QCompleter* myCompleter; bool myCompletedAndSelected; QString myPlaceHolderText; - - /// Boolean value whether the spin box content is modified - bool myIsModified; }; /** @@ -135,6 +118,9 @@ protected slots: 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;