|
SHAPER
9.15.0
|
A multi-line text editor which lets to input formula and provides a list of completion strings. More...

Public Slots | |
| void | insertCompletion (const QString &theCompletion, bool isSingleWord=false) |
| Insert additional string for completion. More... | |
| void | performCompletion () |
| Perform completion. More... | |
| void | onTextChanged () |
| A slot for processing text changed event. More... | |
Signals | |
| void | valueModified () |
| The signal about text change in the text editor. More... | |
| void | keyReleased (QObject *theObject, QKeyEvent *theEvent) |
| The signal about key release on the control, that corresponds to the attribute. More... | |
Public Member Functions | |
| ExpressionEditor (QWidget *theParent=0) | |
| Constructor. More... | |
| void | setCompletionList (QStringList &) |
| Set list of completion strings. More... | |
| void | setPlaceHolderText (const QString &) |
| Set a text which will be shown when the listr is empty. More... | |
| QString | placeHolderText () const |
| Returns placeholder list. More... | |
Protected Member Functions | |
| void | performCompletion (const QString &theCompletionPrefix) |
| Perform completion by prefix. More... | |
| virtual void | keyPressEvent (QKeyEvent *theEvent) |
| Redefinition of virtual method. More... | |
| bool | handledCompletedAndSelected (QKeyEvent *theEvent) |
| Key events processing theEvent a key event. More... | |
| virtual void | paintEvent (QPaintEvent *) |
| Redefinition of virtual method. More... | |
A multi-line text editor which lets to input formula and provides a list of completion strings.
|
explicit |
Constructor.
| theParent | a parent widget |
| void ExpressionEditor::setCompletionList | ( | QStringList & | theList | ) |
Set list of completion strings.
| void ExpressionEditor::setPlaceHolderText | ( | const QString & | thePlaceHolderText | ) |
Set a text which will be shown when the listr is empty.
| QString ExpressionEditor::placeHolderText | ( | ) | const |
Returns placeholder list.
|
slot |
Insert additional string for completion.
| theCompletion | a string to insert |
| isSingleWord | a flag shows that inserted string is single word or not |
|
slot |
Perform completion.
|
slot |
A slot for processing text changed event.
|
signal |
The signal about text change in the text editor.
|
signal |
The signal about key release on the control, that corresponds to the attribute.
| theObject | a sender of the event |
| theEvent | key release event |
|
protected |
Perform completion by prefix.
| theCompletionPrefix | a prefix for looking for completion |
|
protectedvirtual |
Redefinition of virtual method.
| theEvent | a key press event |
|
protected |
Key events processing theEvent a key event.
|
protectedvirtual |
Redefinition of virtual method.