Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Coincidence to rectangle macro feature: 1. Get point of sub-feature to set coincidenc...
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetExprEditor.h
diff --git
a/src/ModuleBase/ModuleBase_WidgetExprEditor.h
b/src/ModuleBase/ModuleBase_WidgetExprEditor.h
index e05a1ecf4c9451e54a868055ef081c6464662a64..bbd84a89f2f415cfb71405e23b2b24cf8d6ea184 100644
(file)
--- 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 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
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
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
/// \param theEvent key release event
- void keyReleased(QKeyEvent* theEvent);
+ void keyReleased(Q
Object* theObject, Q
KeyEvent* theEvent);
protected:
/// Perform completion by prefix
protected:
/// Perform completion by prefix
@@
-92,9
+87,6
@@
private:
QCompleter* myCompleter;
bool myCompletedAndSelected;
QString myPlaceHolderText;
QCompleter* myCompleter;
bool myCompletedAndSelected;
QString myPlaceHolderText;
-
- /// Boolean value whether the spin box content is modified
- bool myIsModified;
};
/**
};
/**
@@
-116,6
+108,9
@@
class MODULEBASE_EXPORT ModuleBase_WidgetExprEditor : public ModuleBase_ModelWid
const std::string& thePlaceHolder );
virtual ~ModuleBase_WidgetExprEditor();
const std::string& thePlaceHolder );
virtual ~ModuleBase_WidgetExprEditor();
+ /// The methiod called when widget is activated
+ virtual void activateCustom();
+
/// Redefinition of virtual method
virtual QList<QWidget*> getControls() const;
/// Redefinition of virtual method
virtual QList<QWidget*> getControls() const;