aimsgui
5.1.2
|
Prints elements and attributes of a GenericObject (Python-like) object into a QTreeWidget tree. More...
#include <aims/listview/qpython.h>
Public Types | |
typedef QTreeWidgetItem *(* | Helper) (const carto::GenericObject &obj, QTreeWidgetItem *parent, QPythonPrinter &qp, const QString &attname, const QString &attype, bool viewinternal) |
typedef std::map< std::string, Helper > | HelperSet |
Public Member Functions | |
QPythonPrinter (QTreeWidgetItem *parent, const carto::SyntaxSet &syntax=carto::SyntaxSet(), const HelperSet &helpers=HelperSet()) | |
QPythonPrinter (QTreeWidget *parent, const carto::SyntaxSet &syntax=carto::SyntaxSet(), const HelperSet &helpers=HelperSet()) | |
virtual | ~QPythonPrinter () |
virtual QTreeWidgetItem * | write (const carto::GenericObject &object, bool writeInternals=false) |
virtual void | write (const carto::GenericObject &object, QTreeWidgetItem *parent, const std::string &syntax, const std::string &semantic, bool writeInternals) |
bool | isInternal (const std::string &syntax, const std::string &semantic) |
int | valueColumn () const |
int | attributeColumn () const |
int | typeColumn () const |
void | setValueColumn (int c) |
void | setPropertyColumn (int c) |
void | setTypeColumn (int c) |
Protected Member Functions | |
virtual void | initHelpers () |
Protected Attributes | |
carto::SyntaxSet | _rules |
HelperSet | _helpers |
QTreeWidget * | _lview |
QTreeWidgetItem * | _lvitem |
int | _valcol |
int | _attcol |
int | _typcol |
Prints elements and attributes of a GenericObject (Python-like) object into a QTreeWidget tree.
typedef QTreeWidgetItem*(* aims::gui::QPythonPrinter::Helper) (const carto::GenericObject &obj, QTreeWidgetItem *parent, QPythonPrinter &qp, const QString &attname, const QString &attype, bool viewinternal) |
typedef std::map<std::string, Helper> aims::gui::QPythonPrinter::HelperSet |
aims::gui::QPythonPrinter::QPythonPrinter | ( | QTreeWidgetItem * | parent, |
const carto::SyntaxSet & | syntax = carto::SyntaxSet() , |
||
const HelperSet & | helpers = HelperSet() |
||
) |
aims::gui::QPythonPrinter::QPythonPrinter | ( | QTreeWidget * | parent, |
const carto::SyntaxSet & | syntax = carto::SyntaxSet() , |
||
const HelperSet & | helpers = HelperSet() |
||
) |
|
virtual |
|
inline |
|
protectedvirtual |
bool aims::gui::QPythonPrinter::isInternal | ( | const std::string & | syntax, |
const std::string & | semantic | ||
) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
|
virtual |
|
protected |
Definition at line 95 of file qpython.h.
Referenced by attributeColumn(), and setPropertyColumn().
|
protected |
|
protected |
|
protected |
Definition at line 96 of file qpython.h.
Referenced by setTypeColumn(), and typeColumn().
|
protected |
Definition at line 94 of file qpython.h.
Referenced by setValueColumn(), and valueColumn().