Analitza
#include <expressionedit.h>

Public Slots | |
void | insertText (const QString &text) |
Signals | |
void | returnPressed () |
void | signalHelper (QString) |
Public Member Functions | |
ExpressionEdit (QWidget *parent=0, AlgebraHighlighter::Mode ini=AlgebraHighlighter::Autodetect) | |
~ExpressionEdit () | |
QString | ans () const |
bool | autocomplete () |
Analitza::Expression | expression () const |
bool | isCorrect () const |
bool | isMathML () const |
AlgebraHighlighter::Mode | mode () |
void | setAnalitza (Analitza::Analyzer *in) |
void | setAns (const QString &ans) |
void | setAutocomplete (bool a) |
void | setCorrect (bool cor) |
void | setExamples (const QStringList &ex) |
void | setExpression (const Analitza::Expression &e) |
void | setMode (AlgebraHighlighter::Mode en) |
void | setText (const QString &str) |
QString | text () const |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *e) |
Detailed Description
A widget for manipulate mathemathical expressions.
The expression edit widget is the one where we will input our expressions.
Definition at line 50 of file expressionedit.h.
Constructor & Destructor Documentation
|
explicit |
Constructor.
Creates a new ExpressionEdit.
- Parameters
-
parent is the widget parent. ini specifies what input format is going to expect the highlighting.
Analitza::ExpressionEdit::~ExpressionEdit | ( | ) |
Destructor.
Member Function Documentation
|
inline |
Returns the string that will be entered when the first operator is pressed.
Definition at line 97 of file expressionedit.h.
bool Analitza::ExpressionEdit::autocomplete | ( | ) |
Returns whether autocompletion will be used.
|
protected |
Inherited from QTextEdit, just deals with the menu.
Analitza::Expression Analitza::ExpressionEdit::expression | ( | ) | const |
Returns the expression we have in the text.
|
slot |
Inserts text
text where the cursor is and selects it.
bool Analitza::ExpressionEdit::isCorrect | ( | ) | const |
Checks whether it has been set to correct.
bool Analitza::ExpressionEdit::isMathML | ( | ) | const |
Returns whether there is MathML on the widget.
|
inline |
Returns the ExpressionEdit input mode.
Definition at line 64 of file expressionedit.h.
|
signal |
Emits that a return has been pressed.
void Analitza::ExpressionEdit::setAnalitza | ( | Analitza::Analyzer * | in | ) |
Sets an Analyzer in
module associated to the ExpressionEdit.
It is used to autocomplete variables.
|
inline |
Sets the string ans
that will be entered when an operator is pressed.
Definition at line 94 of file expressionedit.h.
void Analitza::ExpressionEdit::setAutocomplete | ( | bool | a | ) |
Sets whether autocompletion will be used.
void Analitza::ExpressionEdit::setCorrect | ( | bool | cor | ) |
Sets whether it is correct.
Changes the background color.
|
inline |
Sets the examples
to be shown in the context menu.
Definition at line 106 of file expressionedit.h.
void Analitza::ExpressionEdit::setExpression | ( | const Analitza::Expression & | e | ) |
Sets an expression to the input box.
void Analitza::ExpressionEdit::setMode | ( | AlgebraHighlighter::Mode | en | ) |
Sets the ExpressionEdit input mode.
|
inline |
Sets the expression string str
we have.
Definition at line 85 of file expressionedit.h.
|
signal |
Deprecated.
|
inline |
Returns the expression string that we have.
Definition at line 82 of file expressionedit.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:21 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.