SeExpr
Signals | Public Member Functions | Public Attributes | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
ExprShortEdit Class Reference

#include <ExprShortEdit.h>

Inheritance diagram for ExprShortEdit:

Signals

void exprChanged ()
 

Public Member Functions

 ExprShortEdit (QWidget *parent, bool expanded=true, bool applyOnSelect=true)
 
virtual ~ExprShortEdit ()
 
std::string getExpressionString () const
 
QString getExpression () const
 
void setExpressionString (const std::string &expression)
 
void clearExtraCompleters ()
 
void registerExtraFunction (const std::string &name, const std::string &docString)
 
void registerExtraVariable (const std::string &name, const std::string &docString)
 
void updateCompleter ()
 
void setSimple (bool enabled)
 
void setDetailsMenu (QMenu *menu)
 
void setSearchPath (const QString &context, const QString &path)
 
void setLineWrapMode (QTextEdit::LineWrapMode mode)
 
void setVerticalScrollBarPolicy (Qt::ScrollBarPolicy policy)
 
void setHorizontalScrollBarPolicy (Qt::ScrollBarPolicy policy)
 
void showDetails (int idx)
 
virtual QSize sizeHint () const
 
virtual void hideErrors (bool hidden, const std::string &err)
 

Public Attributes

QToolButton * expandButton
 
ExprShortTextEditedit
 

Protected Slots

virtual void detailPressed ()
 
virtual void expandPressed ()
 
virtual void textFinished ()
 
virtual void handleTextEdited ()
 
virtual void controlChanged (int id)
 
virtual void rebuildControls ()
 
virtual void expressionApplied ()
 
virtual void dialogClosed ()
 

Protected Member Functions

void checkErrors ()
 

Protected Attributes

QTimer * controlRebuildTimer
 
QToolButton * editDetail
 
ExprControlCollectioncontrols
 
ExprDialog_dialog
 
QVBoxLayout * vboxlayout
 
QHBoxLayout * hboxlayout
 
QLabel * error
 
std::string _context
 
std::string _searchPath
 
bool _applyOnSelect
 

Detailed Description

Definition at line 46 of file ExprShortEdit.h.

Constructor & Destructor Documentation

ExprShortEdit::ExprShortEdit ( QWidget *  parent,
bool  expanded = true,
bool  applyOnSelect = true 
)
ExprShortEdit::~ExprShortEdit ( )
virtual

Definition at line 145 of file ExprShortEdit.cpp.

Member Function Documentation

void ExprShortEdit::checkErrors ( )
protected
void ExprShortEdit::clearExtraCompleters ( )
void ExprShortEdit::controlChanged ( int  id)
protectedvirtualslot
void ExprShortEdit::detailPressed ( )
protectedvirtualslot

Definition at line 155 of file ExprShortEdit.cpp.

References showDetails().

Referenced by ExprShortEdit().

void ExprShortEdit::dialogClosed ( )
protectedvirtualslot

Definition at line 184 of file ExprShortEdit.cpp.

Referenced by showDetails().

void ExprShortEdit::expandPressed ( )
protectedvirtualslot

Definition at line 210 of file ExprShortEdit.cpp.

References controlChanged(), controlRebuildTimer, controls, and expandButton.

Referenced by ExprShortEdit().

void ExprShortEdit::exprChanged ( )
signal
void ExprShortEdit::expressionApplied ( )
protectedvirtualslot

Definition at line 179 of file ExprShortEdit.cpp.

References _dialog, ExprDialog::getExpressionString(), and setExpressionString().

Referenced by showDetails().

QString ExprShortEdit::getExpression ( ) const

Definition at line 247 of file ExprShortEdit.cpp.

References edit.

Referenced by controlChanged(), getExpressionString(), and rebuildControls().

std::string ExprShortEdit::getExpressionString ( ) const

Definition at line 252 of file ExprShortEdit.cpp.

References getExpression().

Referenced by checkErrors(), and showDetails().

void ExprShortEdit::handleTextEdited ( )
protectedvirtualslot

Definition at line 227 of file ExprShortEdit.cpp.

void ExprShortEdit::hideErrors ( bool  hidden,
const std::string &  err 
)
virtual

Definition at line 306 of file ExprShortEdit.cpp.

References error.

Referenced by checkErrors().

void ExprShortEdit::rebuildControls ( )
protectedvirtualslot
void ExprShortEdit::registerExtraFunction ( const std::string &  name,
const std::string &  docString 
)
void ExprShortEdit::registerExtraVariable ( const std::string &  name,
const std::string &  docString 
)
void ExprShortEdit::setDetailsMenu ( QMenu *  menu)

Definition at line 322 of file ExprShortEdit.cpp.

References editDetail.

void ExprShortEdit::setExpressionString ( const std::string &  expression)

Definition at line 238 of file ExprShortEdit.cpp.

References checkErrors(), controlRebuildTimer, edit, and exprChanged().

Referenced by expressionApplied().

void ExprShortEdit::setHorizontalScrollBarPolicy ( Qt::ScrollBarPolicy  policy)

Definition at line 332 of file ExprShortEdit.cpp.

References edit.

void ExprShortEdit::setLineWrapMode ( QTextEdit::LineWrapMode  mode)

Definition at line 337 of file ExprShortEdit.cpp.

References edit.

void ExprShortEdit::setSearchPath ( const QString &  context,
const QString &  path 
)

Definition at line 149 of file ExprShortEdit.cpp.

References _context, and _searchPath.

void ExprShortEdit::setSimple ( bool  enabled)

Definition at line 315 of file ExprShortEdit.cpp.

References edit, editDetail, and expandButton.

void ExprShortEdit::setVerticalScrollBarPolicy ( Qt::ScrollBarPolicy  policy)

Definition at line 327 of file ExprShortEdit.cpp.

References edit.

void ExprShortEdit::showDetails ( int  idx)
virtual QSize ExprShortEdit::sizeHint ( ) const
inlinevirtual

Definition at line 96 of file ExprShortEdit.h.

void ExprShortEdit::textFinished ( )
protectedvirtualslot

Definition at line 230 of file ExprShortEdit.cpp.

References checkErrors(), controlRebuildTimer, and exprChanged().

Referenced by ExprShortEdit().

void ExprShortEdit::updateCompleter ( )

Member Data Documentation

bool ExprShortEdit::_applyOnSelect
protected

Definition at line 60 of file ExprShortEdit.h.

Referenced by showDetails().

std::string ExprShortEdit::_context
protected

Definition at line 58 of file ExprShortEdit.h.

Referenced by setSearchPath(), and showDetails().

ExprDialog* ExprShortEdit::_dialog
protected

Definition at line 54 of file ExprShortEdit.h.

Referenced by expressionApplied(), and showDetails().

std::string ExprShortEdit::_searchPath
protected

Definition at line 59 of file ExprShortEdit.h.

Referenced by setSearchPath(), and showDetails().

QTimer* ExprShortEdit::controlRebuildTimer
protected

Definition at line 51 of file ExprShortEdit.h.

Referenced by expandPressed(), ExprShortEdit(), setExpressionString(), and textFinished().

ExprControlCollection* ExprShortEdit::controls
protected

Definition at line 53 of file ExprShortEdit.h.

Referenced by controlChanged(), expandPressed(), ExprShortEdit(), and rebuildControls().

ExprShortTextEdit* ExprShortEdit::edit
QToolButton* ExprShortEdit::editDetail
protected

Definition at line 52 of file ExprShortEdit.h.

Referenced by ExprShortEdit(), setDetailsMenu(), and setSimple().

QLabel* ExprShortEdit::error
protected

Definition at line 57 of file ExprShortEdit.h.

Referenced by ExprShortEdit(), and hideErrors().

QToolButton* ExprShortEdit::expandButton

Definition at line 100 of file ExprShortEdit.h.

Referenced by expandPressed(), ExprShortEdit(), rebuildControls(), and setSimple().

QHBoxLayout* ExprShortEdit::hboxlayout
protected

Definition at line 56 of file ExprShortEdit.h.

Referenced by ExprShortEdit().

QVBoxLayout* ExprShortEdit::vboxlayout
protected

Definition at line 55 of file ExprShortEdit.h.

Referenced by ExprShortEdit(), and rebuildControls().


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