26 #include <QtGui/QTextBrowser>
27 #include <QtGui/QPlainTextEdit>
28 #include <QtGui/QDialog>
29 #include <QtCore/QTimer>
30 #include <QtCore/QRegExp>
31 #include <QtGui/QLineEdit>
32 #include <QtGui/QCheckBox>
33 #include <QtGui/QSlider>
44 class QListWidgetItem;
76 void showTip(
const QString&
string);
129 void addError(
const int startPos,
const int endPos,
const std::string& error);
void insertCompletion(const QString &completion)
QListWidget * errorWidget
void mousePressEvent(QMouseEvent *event)
ExprCompletionModel * completionModel
void addError(const int startPos, const int endPos, const std::string &error)
void showTip(const QString &string)
ExprControlCollection * controls
void wheelEvent(QWheelEvent *e)
void replaceExtras(const ExprCompletionModel &completer)
void mouseDoubleClickEvent(QMouseEvent *event)
For a multi line expression
std::map< std::string, std::string > functionTooltips
QTimer * controlRebuildTimer
void controlChanged(int id)
void appendStr(const std::string &str)
virtual void keyPressEvent(QKeyEvent *e)
void paintEvent(QPaintEvent *e)
void focusOutEvent(QFocusEvent *e)
ExprEditor(QWidget *parent, ExprControlCollection *controls)
Base class for all controls for Expressions.
void clearExtraCompleters()
ExprHighlighter * highlighter
void registerExtraVariable(const std::string &name, const std::string &docString)
ExprTextEdit(QWidget *parent=0)
QStyle * lastStyleForHighlighter
QAction * _popupEnabledAction
void insertStr(const std::string &str)
void contextMenuEvent(QContextMenuEvent *event)
void focusInEvent(QFocusEvent *e)
void registerExtraFunction(const std::string &name, const std::string &docString)
void setExpr(const std::string &expression, const bool apply=false)