copasi API
0.1
|
#include <CQExpressionWidget.h>
Public Types | |
enum | MoveType { None, Left, Right, Mouse, Unknown } |
enum | ActionType { NoAction, SelectToLeft, SelectToRight, Undo } |
enum | ExpressionType { InitialExpression, TransientExpression, ObjectiveFunctions } |
Public Slots | |
void | slotTextChanged () |
void | slotSelectObject () |
Signals | |
void | valid (bool valid) |
Public Member Functions | |
CQExpressionWidget (QWidget *parent=0, const char *name=0) | |
~CQExpressionWidget () | |
void | writeMathML (std::ostream &out) const |
CQValidator< QTextEdit > * | getValidator () |
void | setFunction (const std::string &function) |
std::string | getFunction () const |
void | setExpression (const std::string &expression) |
std::string | getExpression () const |
void | setExpressionType (const ExpressionType &expressionType) |
void | setBoolean (bool isBoolean) |
bool | isValid () |
Protected Slots | |
void | slotCursorPositionChanged () |
void | slotSelectionChanged () |
Protected Member Functions | |
virtual void | keyPressEvent (QKeyEvent *e) |
virtual void | mousePressEvent (QMouseEvent *e) |
bool | isInObject (int pos) |
Protected Attributes | |
int | mOldPar |
int | mOldPos |
int | mOldPar1 |
int | mOldPos1 |
int | mOldPar2 |
int | mOldPos2 |
CCopasiSimpleSelectionTree::ObjectClasses | mObjectClasses |
std::map< std::string, const CCopasiObject * > | mParseList |
const CCopasiObject * | mpCurrentObject |
QString | mNewName |
QColor | mSavedColor |
QColor | mChangedColor |
int | mAnchorPos |
The class for writing/editing a mathematical expression
CQExpressionWidget::CQExpressionWidget | ( | QWidget * | parent = 0 , |
const char * | name = 0 |
||
) |
CQExpressionWidget::~CQExpressionWidget | ( | ) |
std::string CQExpressionWidget::getExpression | ( | ) | const |
Retrieve the expression from the widget in string format
std::string CQExpressionWidget::getFunction | ( | ) | const |
Retrieve the function from the widget in string format
CQValidator< QTextEdit > * CQExpressionWidget::getValidator | ( | ) |
bool CQExpressionWidget::isInObject | ( | int | pos | ) | [protected] |
Function to check whether the given cursor position is in object
bool CQExpressionWidget::isValid | ( | ) |
Check validity of expression
void CQExpressionWidget::keyPressEvent | ( | QKeyEvent * | e | ) | [protected, virtual] |
Function to control key press event
void CQExpressionWidget::mousePressEvent | ( | QMouseEvent * | e | ) | [protected, virtual] |
Function to control mouse press event
void CQExpressionWidget::setBoolean | ( | bool | isBoolean | ) |
Set the boolean
bool | isBoolean |
void CQExpressionWidget::setExpression | ( | const std::string & | expression | ) |
Set the expression for the widget
const | std::string & expression |
void CQExpressionWidget::setExpressionType | ( | const ExpressionType & | expressionType | ) |
Set the type of the current expression
const | ExpressionType & expressionType |
void CQExpressionWidget::setFunction | ( | const std::string & | function | ) |
Set the function for the widget
const | std::string & function |
void CQExpressionWidget::slotCursorPositionChanged | ( | ) | [protected, slot] |
Slot for being activated whenever the cursor is moved
void CQExpressionWidget::slotSelectionChanged | ( | ) | [protected, slot] |
Slot for being activated whenever the selection is changed
void CQExpressionWidget::slotSelectObject | ( | ) | [slot] |
Slot for selecting an object
void CQExpressionWidget::slotTextChanged | ( | ) | [slot] |
Slot for being activated whenever the text on Expression Widget is changed
This slot checks any characters that are newly typed on Expression Widget.
void CQExpressionWidget::valid | ( | bool | valid | ) | [signal] |
Signal for being sent whenever the expression is valid
void CQExpressionWidget::writeMathML | ( | std::ostream & | out | ) | const |
Write display mathml of the expression into the ostream "out"
int CQExpressionWidget::mAnchorPos [protected] |
return anchor position -> new 16.09.09
QColor CQExpressionWidget::mChangedColor [protected] |
QString CQExpressionWidget::mNewName [protected] |
Function to indicate whether we are dealing with an INITIAL or TRANSIENT expression
int CQExpressionWidget::mOldPar [protected] |
int CQExpressionWidget::mOldPar1 [protected] |
int CQExpressionWidget::mOldPar2 [protected] |
int CQExpressionWidget::mOldPos [protected] |
int CQExpressionWidget::mOldPos1 [protected] |
int CQExpressionWidget::mOldPos2 [protected] |
std::map< std::string, const CCopasiObject * > CQExpressionWidget::mParseList [protected] |
const CCopasiObject* CQExpressionWidget::mpCurrentObject [protected] |
QColor CQExpressionWidget::mSavedColor [protected] |