SeExpr
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
ExprCompletionModel Class Reference

#include <ExprCompletionModel.h>

Inheritance diagram for ExprCompletionModel:

Public Member Functions

void clearFunctions ()
 
void addFunction (const QString &function, const QString &docString)
 
void clearVariables ()
 
void addVariable (const QString &str, const QString &comment)
 
void syncExtras (const ExprCompletionModel &otherModel)
 
 ExprCompletionModel (QObject *parent=0)
 
QModelIndex index (int row, int column, const QModelIndex &) const
 
QModelIndex parent (const QModelIndex &) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent) const
 
QString getFirstLine (const std::string &all) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QString getDocString (const QString &s)
 

Public Attributes

std::vector< QString > local_variables
 

Private Attributes

std::vector< QString > functions
 
std::vector< QString > functions_comment
 
std::map< QString, int > functionNameToFunction
 
std::vector< QString > variables
 
std::vector< QString > variables_comment
 

Static Private Attributes

static std::vector< QString > builtins
 

Detailed Description

Definition at line 30 of file ExprCompletionModel.h.

Constructor & Destructor Documentation

ExprCompletionModel::ExprCompletionModel ( QObject *  parent = 0)

Definition at line 28 of file ExprCompletionModel.cpp.

References builtins, and SeExpr2::ExprFunc::getFunctionNames().

Member Function Documentation

void ExprCompletionModel::addFunction ( const QString &  function,
const QString &  docString 
)
void ExprCompletionModel::addVariable ( const QString &  str,
const QString &  comment 
)
void ExprCompletionModel::clearFunctions ( )
void ExprCompletionModel::clearVariables ( )
int ExprCompletionModel::columnCount ( const QModelIndex &  parent) const
inline

Definition at line 59 of file ExprCompletionModel.h.

QVariant ExprCompletionModel::data ( const QModelIndex &  index,
int  role = Qt::DisplayRole 
) const
QString ExprCompletionModel::getDocString ( const QString &  s)
QString ExprCompletionModel::getFirstLine ( const std::string &  all) const
inline

Definition at line 62 of file ExprCompletionModel.h.

Referenced by data().

QVariant ExprCompletionModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const
inline

Definition at line 71 of file ExprCompletionModel.h.

QModelIndex ExprCompletionModel::index ( int  row,
int  column,
const QModelIndex &   
) const
inline

Definition at line 46 of file ExprCompletionModel.h.

QModelIndex ExprCompletionModel::parent ( const QModelIndex &  ) const
inline

Definition at line 49 of file ExprCompletionModel.h.

Referenced by rowCount().

int ExprCompletionModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const
inline

Definition at line 52 of file ExprCompletionModel.h.

References builtins, functions, local_variables, parent(), and variables.

void ExprCompletionModel::syncExtras ( const ExprCompletionModel otherModel)

Member Data Documentation

std::vector< QString > ExprCompletionModel::builtins
staticprivate

Definition at line 84 of file ExprCompletionModel.h.

Referenced by data(), ExprCompletionModel(), and rowCount().

std::map<QString,int> ExprCompletionModel::functionNameToFunction
private

Definition at line 86 of file ExprCompletionModel.h.

Referenced by addFunction(), clearFunctions(), getDocString(), and syncExtras().

std::vector<QString> ExprCompletionModel::functions
private

Definition at line 85 of file ExprCompletionModel.h.

Referenced by addFunction(), clearFunctions(), data(), rowCount(), and syncExtras().

std::vector<QString> ExprCompletionModel::functions_comment
private

Definition at line 85 of file ExprCompletionModel.h.

Referenced by addFunction(), clearFunctions(), data(), getDocString(), and syncExtras().

std::vector<QString> ExprCompletionModel::local_variables
std::vector<QString> ExprCompletionModel::variables
private

Definition at line 87 of file ExprCompletionModel.h.

Referenced by addVariable(), clearVariables(), data(), rowCount(), and syncExtras().

std::vector<QString> ExprCompletionModel::variables_comment
private

Definition at line 87 of file ExprCompletionModel.h.

Referenced by addVariable(), clearVariables(), data(), and syncExtras().


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