23 #ifndef ExprShortEditUI_h
24 #define ExprShortEditUI_h
29 #include <QtGui/QWidget>
30 #include <QtGui/QTextEdit>
31 #include <QtGui/QWheelEvent>
62 ExprShortEdit(QWidget* parent,
bool expanded =
true,
bool applyOnSelect =
true);
96 virtual QSize
sizeHint()
const{
return QSize(400, 50);}
97 virtual void hideErrors(
bool hidden,
const std::string &err);
139 void showTip(
const QString&
string);
virtual void expandPressed()
virtual void hideErrors(bool hidden, const std::string &err)
void showDetails(int idx)
void showTip(const QString &string)
QTimer * controlRebuildTimer
void paintEvent(QPaintEvent *e)
virtual void wheelEvent(QWheelEvent *e)
void clearExtraCompleters()
virtual void textFinished()
ExprShortTextEdit(QWidget *parent)
virtual void rebuildControls()
virtual void detailPressed()
void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy policy)
void setSimple(bool enabled)
void registerExtraFunction(const std::string &name, const std::string &docString)
ExprHighlighter * highlighter
void setDetailsMenu(QMenu *menu)
For a multi line expression
void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy policy)
void insertCompletion(const QString &completion)
virtual QSize sizeHint() const
ExprControlCollection * controls
void setLineWrapMode(QTextEdit::LineWrapMode mode)
virtual void mousePressEvent(QMouseEvent *event)
void registerExtraVariable(const std::string &name, const std::string &docString)
virtual void focusInEvent(QFocusEvent *e)
void setColor(bool editing)
virtual void mouseDoubleClickEvent(QMouseEvent *event)
ExprCompletionModel * completionModel
If a scalar is used in a vector context
virtual void dialogClosed()
void setExpressionString(const std::string &expression)
std::string getExpressionString() const
virtual void keyPressEvent(QKeyEvent *e)
QToolButton * expandButton
ExprShortEdit(QWidget *parent, bool expanded=true, bool applyOnSelect=true)
QString getExpression() const
virtual void handleTextEdited()
virtual void controlChanged(int id)
virtual void expressionApplied()
QStyle * lastStyleForHighlighter
virtual void focusOutEvent(QFocusEvent *e)
void setSearchPath(const QString &context, const QString &path)