SeExprEditor Class Reference

#include <SeExprEditor.h>

List of all members.

Public Slots

void exprChanged ()
void rebuildControls ()
void controlChanged (int id)
void nextError ()
void selectError ()
void sendApply ()
void sendPreview ()
void insertStr (const std::string &str)

Signals

void apply ()
void preview ()

Public Member Functions

 SeExprEditor (QWidget *parent, SeExprEdControlCollection *controls)
virtual ~SeExprEditor ()
std::string getExpr ()
void setExpr (const std::string &expression, const bool apply=false)
void appendStr (const std::string &str)
void addError (const int startPos, const int endPos, const std::string &error)
void clearErrors ()
void clearExtraCompleters ()
void registerExtraFunction (const std::string &name, const std::string &docString)
void registerExtraVariable (const std::string &name, const std::string &docString)
void replaceExtras (const SeExprEdCompletionModel &completer)
void updateCompleter ()
void updateStyle ()

Private Attributes

SeExprEdExpressionTextEditexprTe
SeExprEdControlCollectioncontrols
QListWidget * errorWidget
QTimer * controlRebuildTimer
QTimer * previewTimer
bool _updatingText
int errorHeight

Detailed Description

Definition at line 90 of file SeExprEditor.h.


Constructor & Destructor Documentation

SeExprEditor::SeExprEditor ( QWidget *  parent,
SeExprEdControlCollection controls 
)
SeExprEditor::~SeExprEditor (  )  [virtual]

Definition at line 83 of file SeExprEditor.cpp.

References controlRebuildTimer, and previewTimer.


Member Function Documentation

void SeExprEditor::addError ( const int  startPos,
const int  endPos,
const std::string &  error 
)

Definition at line 418 of file SeExprEditor.cpp.

References errorHeight, and errorWidget.

Referenced by SeExprEdDialog::applyExpression().

void SeExprEditor::appendStr ( const std::string &  str  ) 

Definition at line 413 of file SeExprEditor.cpp.

References exprTe.

void SeExprEditor::apply (  )  [signal]

Referenced by sendApply(), and setExpr().

void SeExprEditor::clearErrors (  ) 

Definition at line 443 of file SeExprEditor.cpp.

References errorHeight, and errorWidget.

Referenced by SeExprEdDialog::applyExpression(), SeExprEditor(), and setExpr().

void SeExprEditor::clearExtraCompleters (  ) 
void SeExprEditor::controlChanged ( int  id  )  [slot]
void SeExprEditor::exprChanged (  )  [slot]

Definition at line 167 of file SeExprEditor.cpp.

References _updatingText, and controlRebuildTimer.

Referenced by SeExprEditor().

std::string SeExprEditor::getExpr (  ) 
void SeExprEditor::insertStr ( const std::string &  str  )  [slot]

Definition at line 408 of file SeExprEditor.cpp.

References exprTe.

Referenced by SeExprEditor().

void SeExprEditor::nextError (  )  [slot]

Definition at line 436 of file SeExprEditor.cpp.

References errorWidget.

Referenced by SeExprEdDialog::applyExpression(), and SeExprEditor().

void SeExprEditor::preview (  )  [signal]

Referenced by sendPreview().

void SeExprEditor::rebuildControls (  )  [slot]
void SeExprEditor::registerExtraFunction ( const std::string &  name,
const std::string &  docString 
)
void SeExprEditor::registerExtraVariable ( const std::string &  name,
const std::string &  docString 
)
void SeExprEditor::replaceExtras ( const SeExprEdCompletionModel completer  ) 
void SeExprEditor::selectError (  )  [slot]

Definition at line 144 of file SeExprEditor.cpp.

References errorWidget, and exprTe.

Referenced by SeExprEditor().

void SeExprEditor::sendApply (  )  [slot]

Definition at line 157 of file SeExprEditor.cpp.

References apply().

Referenced by SeExprEditor().

void SeExprEditor::sendPreview (  )  [slot]

Definition at line 162 of file SeExprEditor.cpp.

References preview().

Referenced by SeExprEditor().

void SeExprEditor::setExpr ( const std::string &  expression,
const bool  apply = false 
)
void SeExprEditor::updateCompleter (  ) 
void SeExprEditor::updateStyle (  ) 

Definition at line 476 of file SeExprEditor.cpp.

References exprTe, and SeExprEdExpressionTextEdit::updateStyle().


Member Data Documentation

Definition at line 146 of file SeExprEditor.h.

Referenced by controlChanged(), and exprChanged().

Definition at line 142 of file SeExprEditor.h.

Referenced by exprChanged(), SeExprEditor(), and ~SeExprEditor().

Definition at line 139 of file SeExprEditor.h.

Referenced by controlChanged(), and rebuildControls().

Definition at line 147 of file SeExprEditor.h.

Referenced by addError(), and clearErrors().

QListWidget* SeExprEditor::errorWidget [private]

Definition at line 140 of file SeExprEditor.h.

Referenced by addError(), clearErrors(), nextError(), SeExprEditor(), and selectError().

QTimer* SeExprEditor::previewTimer [private]

Definition at line 143 of file SeExprEditor.h.

Referenced by controlChanged(), SeExprEditor(), and ~SeExprEditor().


The documentation for this class was generated from the following files:

Generated on 25 Jul 2013 for SeExpr by  doxygen 1.6.1