|
SeExpr
|
#include <ExprBrowser.h>
Public Slots | |
| void | handleSelection (const QModelIndex ¤t, const QModelIndex &previous) |
| void | update () |
| void | clear () |
| void | clearSelection () |
| void | saveExpression () |
| void | saveLocalExpressionAs () |
| void | saveExpressionAs () |
Public Member Functions | |
| ExprBrowser (QWidget *parent, ExprEditor *editor) | |
| ~ExprBrowser () | |
| void | addPath (const std::string &name, const std::string &path) |
| std::string | getSelectedPath () |
| void | selectPath (const char *path) |
| void | addUserExpressionPath (const std::string &context) |
| bool | getExpressionDirs () |
| bool | getExpressionDirs (const std::string &context) |
| void | setSearchPath (const QString &context, const QString &path) |
| void | expandAll () |
| void | expandToDepth (int depth) |
| void | setApplyOnSelect (bool on) |
Private Slots | |
| void | clearFilter () |
| void | filterChanged (const QString &str) |
Private Attributes | |
| ExprEditor * | editor |
| QList< QString > | labels |
| QList< QString > | paths |
| ExprTreeModel * | treeModel |
| ExprTreeFilterModel * | proxyModel |
| QTreeView * | treeNew |
| QLineEdit * | exprFilter |
| std::string | _userExprDir |
| std::string | _localExprDir |
| std::string | _context |
| std::string | _searchPath |
| bool | _applyOnSelect |
Definition at line 44 of file ExprBrowser.h.
| ExprBrowser::ExprBrowser | ( | QWidget * | parent, |
| ExprEditor * | editor | ||
| ) |
Definition at line 263 of file ExprBrowser.cpp.
References clearFilter(), exprFilter, filterChanged(), handleSelection(), proxyModel, treeModel, and treeNew.
| ExprBrowser::~ExprBrowser | ( | ) |
Definition at line 258 of file ExprBrowser.cpp.
References treeModel.
| void ExprBrowser::addPath | ( | const std::string & | name, |
| const std::string & | path | ||
| ) |
Definition at line 297 of file ExprBrowser.cpp.
References ExprTreeModel::addPath(), labels, paths, and treeModel.
Referenced by addUserExpressionPath(), and getExpressionDirs().
| void ExprBrowser::addUserExpressionPath | ( | const std::string & | context | ) |
Definition at line 456 of file ExprBrowser.cpp.
References _userExprDir, and addPath().
Referenced by getExpressionDirs().
|
slot |
Definition at line 348 of file ExprBrowser.cpp.
References ExprTreeModel::clear(), clearSelection(), labels, paths, and treeModel.
Referenced by getExpressionDirs().
|
privateslot |
|
slot |
Definition at line 358 of file ExprBrowser.cpp.
References treeNew.
Referenced by clear(), and ExprDialog::clearExpression().
| void ExprBrowser::expandAll | ( | ) |
Definition at line 445 of file ExprBrowser.cpp.
References treeNew.
Referenced by ExprDialog::exec(), ExprDialog::show(), and ExprShortEdit::showDetails().
| void ExprBrowser::expandToDepth | ( | int | depth | ) |
Definition at line 450 of file ExprBrowser.cpp.
References treeNew.
|
privateslot |
Definition at line 368 of file ExprBrowser.cpp.
References proxyModel, and treeNew.
Referenced by ExprBrowser().
| bool ExprBrowser::getExpressionDirs | ( | ) |
Definition at line 473 of file ExprBrowser.cpp.
References _context, _localExprDir, _searchPath, addPath(), addUserExpressionPath(), clear(), context, P3D_CONFIG_ENVVAR, and update().
Referenced by ExprDialog::exec(), and ExprDialog::show().
| bool ExprBrowser::getExpressionDirs | ( | const std::string & | context | ) |
| std::string ExprBrowser::getSelectedPath | ( | ) |
Definition at line 310 of file ExprBrowser.cpp.
References ExprTreeItem::path, proxyModel, and treeNew.
Referenced by saveExpression().
|
slot |
Definition at line 333 of file ExprBrowser.cpp.
References _applyOnSelect, editor, ExprTreeItem::path, proxyModel, and ExprEditor::setExpr().
Referenced by ExprBrowser().
|
slot |
Definition at line 426 of file ExprBrowser.cpp.
References editor, ExprEditor::getExpr(), getSelectedPath(), and saveExpressionAs().
|
slot |
Definition at line 379 of file ExprBrowser.cpp.
References _userExprDir, editor, ExprEditor::getExpr(), selectPath(), and update().
Referenced by saveExpression().
|
slot |
Definition at line 402 of file ExprBrowser.cpp.
References _localExprDir, editor, ExprEditor::getExpr(), selectPath(), and update().
| void ExprBrowser::selectPath | ( | const char * | path | ) |
Definition at line 321 of file ExprBrowser.cpp.
References ExprTreeModel::find(), index(), proxyModel, treeModel, and treeNew.
Referenced by saveExpressionAs(), and saveLocalExpressionAs().
|
inline |
Definition at line 73 of file ExprBrowser.h.
References _applyOnSelect.
Referenced by ExprShortEdit::showDetails().
| void ExprBrowser::setSearchPath | ( | const QString & | context, |
| const QString & | path | ||
| ) |
Definition at line 304 of file ExprBrowser.cpp.
References _context, and _searchPath.
Referenced by ExprShortEdit::showDetails().
|
slot |
Definition at line 327 of file ExprBrowser.cpp.
References proxyModel, treeModel, ExprTreeModel::update(), and ExprTreeFilterModel::update().
Referenced by getExpressionDirs(), saveExpressionAs(), and saveLocalExpressionAs().
|
private |
Definition at line 59 of file ExprBrowser.h.
Referenced by handleSelection(), and setApplyOnSelect().
|
private |
Definition at line 57 of file ExprBrowser.h.
Referenced by getExpressionDirs(), and setSearchPath().
|
private |
Definition at line 56 of file ExprBrowser.h.
Referenced by getExpressionDirs(), and saveLocalExpressionAs().
|
private |
Definition at line 58 of file ExprBrowser.h.
Referenced by getExpressionDirs(), and setSearchPath().
|
private |
Definition at line 55 of file ExprBrowser.h.
Referenced by addUserExpressionPath(), and saveExpressionAs().
|
private |
Definition at line 48 of file ExprBrowser.h.
Referenced by handleSelection(), saveExpression(), saveExpressionAs(), and saveLocalExpressionAs().
|
private |
Definition at line 54 of file ExprBrowser.h.
Referenced by clearFilter(), and ExprBrowser().
|
private |
Definition at line 49 of file ExprBrowser.h.
|
private |
Definition at line 50 of file ExprBrowser.h.
|
private |
Definition at line 52 of file ExprBrowser.h.
Referenced by ExprBrowser(), filterChanged(), getSelectedPath(), handleSelection(), selectPath(), and update().
|
private |
Definition at line 51 of file ExprBrowser.h.
Referenced by addPath(), clear(), ExprBrowser(), selectPath(), update(), and ~ExprBrowser().
|
private |
Definition at line 53 of file ExprBrowser.h.
Referenced by clearSelection(), expandAll(), expandToDepth(), ExprBrowser(), filterChanged(), getSelectedPath(), and selectPath().
1.8.5