#include <PropertyEditor.h>
Public Member Functions | |
void | buildUp (const std::map< std::string, std::vector< App::Property * > > &props) |
Builds up the list view with the properties. | |
bool | isAutomaticDocumentUpdate (bool) const |
PropertyEditor (QWidget *parent=0) | |
void | setAutomaticDocumentUpdate (bool) |
~PropertyEditor () | |
Protected Member Functions | |
virtual void | closeEditor (QWidget *editor, QAbstractItemDelegate::EndEditHint hint) |
virtual void | commitData (QWidget *editor) |
virtual void | currentChanged (const QModelIndex ¤t, const QModelIndex &previous) |
virtual void | drawBranches (QPainter *painter, const QRect &rect, const QModelIndex &index) const |
virtual void | editorDestroyed (QObject *editor) |
virtual QStyleOptionViewItem | viewOptions () const |
Definition at line 43 of file PropertyEditor.h.
PropertyEditor::PropertyEditor | ( | QWidget * | parent = 0 |
) |
Definition at line 40 of file PropertyEditor.cpp.
PropertyEditor::~PropertyEditor | ( | ) |
Definition at line 54 of file PropertyEditor.cpp.
void PropertyEditor::buildUp | ( | const std::map< std::string, std::vector< App::Property * > > & | props | ) |
Builds up the list view with the properties.
Definition at line 129 of file PropertyEditor.cpp.
References Gui::PropertyEditor::PropertyModel::buildUp(), Base::Console(), Gui::PropertyEditor::PropertyModel::propertyIndexFromPath(), and Gui::PropertyEditor::PropertyModel::propertyPathFromIndex().
void PropertyEditor::closeEditor | ( | QWidget * | editor, | |
QAbstractItemDelegate::EndEditHint | hint | |||
) | [protected, virtual] |
Definition at line 75 of file PropertyEditor.cpp.
References App::Application::getActiveDocument(), App::GetApplication(), App::Document::isTouched(), and App::Document::recompute().
void PropertyEditor::commitData | ( | QWidget * | editor | ) | [protected, virtual] |
Definition at line 85 of file PropertyEditor.cpp.
References Gui::PropertyEditor::PropertyModel::buildUp().
void PropertyEditor::currentChanged | ( | const QModelIndex & | current, | |
const QModelIndex & | previous | |||
) | [protected, virtual] |
Definition at line 101 of file PropertyEditor.cpp.
void PropertyEditor::drawBranches | ( | QPainter * | painter, | |
const QRect & | rect, | |||
const QModelIndex & | index | |||
) | const [protected, virtual] |
Definition at line 110 of file PropertyEditor.cpp.
References viewOptions().
void PropertyEditor::editorDestroyed | ( | QObject * | editor | ) | [protected, virtual] |
Definition at line 96 of file PropertyEditor.cpp.
bool PropertyEditor::isAutomaticDocumentUpdate | ( | bool | ) | const |
Definition at line 63 of file PropertyEditor.cpp.
void PropertyEditor::setAutomaticDocumentUpdate | ( | bool | v | ) |
Definition at line 58 of file PropertyEditor.cpp.
Referenced by Gui::PropertyView::PropertyView().
QStyleOptionViewItem PropertyEditor::viewOptions | ( | ) | const [protected, virtual] |
Definition at line 68 of file PropertyEditor.cpp.
Referenced by drawBranches().