#include <PropertyModel.h>
Public Types | |
typedef std::vector< std::pair< std::string, std::vector< App::Property * > > > | PropertyList |
Public Member Functions | |
void | appendProperty (const App::Property &) |
QModelIndex | buddy (const QModelIndex &index) const |
void | buildUp (const PropertyList &props) |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const |
Qt::ItemFlags | flags (const QModelIndex &index) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const |
QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
QModelIndex | parent (const QModelIndex &index) const |
QModelIndex | propertyIndexFromPath (const QStringList &) const |
PropertyModel (QObject *parent) | |
QStringList | propertyPathFromIndex (const QModelIndex &) const |
void | removeProperty (const App::Property &) |
bool | removeRows (int row, int count, const QModelIndex &parent=QModelIndex()) |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
bool | setData (const QModelIndex &idx, const QVariant &value, int role) |
bool | setHeaderData (int section, Qt::Orientation orientation, const QVariant &value, int role=Qt::EditRole) |
void | updateProperty (const App::Property &) |
virtual | ~PropertyModel () |
Member Typedef Documentation
◆ PropertyList
typedef std::vector< std::pair< std::string, std::vector<App::Property*> > > Gui::PropertyEditor::PropertyModel::PropertyList |
Constructor & Destructor Documentation
◆ PropertyModel()
PropertyModel::PropertyModel | ( | QObject * | parent | ) |
References femsolver.elmer.equations.elasticity::create().
◆ ~PropertyModel()
|
virtual |
Member Function Documentation
◆ appendProperty()
void PropertyModel::appendProperty | ( | const App::Property & | prop | ) |
References Gui::PropertyEditor::PropertyItem::appendChild(), Gui::PropertyEditor::PropertyItem::child(), Gui::PropertyEditor::PropertyItem::childCount(), femsolver.elmer.equations.elasticity::create(), Gui::PropertyEditor::PropertyItemFactory::createPropertyItem(), data(), App::Property::getEditorName(), App::Property::getGroup(), App::Property::getName(), index(), Gui::PropertyEditor::PropertyItem::insertChild(), Gui::PropertyEditor::PropertyItemFactory::instance(), Gui::PropertyEditor::PropertyItem::isSeparator(), Gui::PropertyEditor::PropertyItem::propertyName(), Gui::PropertyEditor::PropertyItem::setParent(), Gui::PropertyEditor::PropertyItem::setPropertyData(), and Gui::PropertyView::showAll().
◆ buddy()
QModelIndex PropertyModel::buddy | ( | const QModelIndex & | index | ) | const |
References index().
Referenced by Gui::PropertyEditor::PropertyEditor::contextMenuEvent().
◆ buildUp()
void PropertyModel::buildUp | ( | const PropertyList & | props | ) |
References Gui::PropertyEditor::PropertyItem::appendChild(), femsolver.elmer.equations.elasticity::create(), Gui::PropertyEditor::PropertyItemFactory::createPropertyItem(), App::Property::getEditorName(), App::Property::getGroup(), App::Property::getName(), Gui::PropertyEditor::PropertyItemFactory::instance(), Gui::PropertyEditor::PropertyItem::reset(), Gui::PropertyEditor::PropertyItem::setLinked(), Gui::PropertyEditor::PropertyItem::setParent(), Gui::PropertyEditor::PropertyItem::setPropertyData(), and Gui::PropertyView::showAll().
Referenced by Gui::PropertyEditor::PropertyEditor::buildUp(), and Gui::PropertyEditor::PropertyEditor::commitData().
◆ columnCount()
int PropertyModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
References Gui::PropertyEditor::PropertyItem::columnCount(), and parent().
◆ data()
QVariant PropertyModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
References Gui::PropertyEditor::PropertyItem::data().
Referenced by appendProperty(), and ArchSchedule.CommandArchSchedule::IsActive().
◆ flags()
Qt::ItemFlags PropertyModel::flags | ( | const QModelIndex & | index | ) | const |
References Gui::PropertyEditor::PropertyItem::flags().
◆ headerData()
QVariant PropertyModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
◆ index()
QModelIndex PropertyModel::index | ( | int | row, |
int | column, | ||
const QModelIndex & | parent = QModelIndex() |
||
) | const |
References Gui::PropertyEditor::PropertyItem::child(), and parent().
Referenced by Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::addSegment(), appendProperty(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::begin(), buddy(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::interval(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::length(), propertyIndexFromPath(), Gui::PropertyEditor::PropertyEditor::updateEditorMode(), updateProperty(), automotive_design.index_expression::wr1(), and automotive_design.index_expression::wr2().
◆ parent()
QModelIndex PropertyModel::parent | ( | const QModelIndex & | index | ) | const |
References Gui::PropertyEditor::PropertyItem::parent(), and Gui::PropertyEditor::PropertyItem::row().
Referenced by columnCount(), index(), propertyIndexFromPath(), removeRows(), and rowCount().
◆ propertyIndexFromPath()
QModelIndex PropertyModel::propertyIndexFromPath | ( | const QStringList & | path | ) | const |
References index(), parent(), Gui::PropertyEditor::PropertyItem::propertyName(), and rowCount().
Referenced by Gui::PropertyEditor::PropertyEditor::buildUp().
◆ propertyPathFromIndex()
QStringList PropertyModel::propertyPathFromIndex | ( | const QModelIndex & | index | ) | const |
◆ removeProperty()
void PropertyModel::removeProperty | ( | const App::Property & | prop | ) |
◆ removeRows()
bool PropertyModel::removeRows | ( | int | row, |
int | count, | ||
const QModelIndex & | parent = QModelIndex() |
||
) |
References parent(), and Gui::PropertyEditor::PropertyItem::removeChildren().
◆ rowCount()
int PropertyModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
◆ setData()
bool PropertyModel::setData | ( | const QModelIndex & | idx, |
const QVariant & | value, | ||
int | role | ||
) |
◆ setHeaderData()
bool PropertyModel::setHeaderData | ( | int | section, |
Qt::Orientation | orientation, | ||
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
◆ updateProperty()
void PropertyModel::updateProperty | ( | const App::Property & | prop | ) |
References Gui::PropertyEditor::PropertyItem::assignProperty(), Gui::PropertyEditor::PropertyItem::child(), Gui::PropertyEditor::PropertyItem::childCount(), Gui::PropertyEditor::PropertyItem::hasProperty(), index(), and Gui::PropertyEditor::PropertyItem::updateData().
Referenced by Gui::PropertyEditor::PropertyEditor::updateProperty().
The documentation for this class was generated from the following files:
- src/Gui/propertyeditor/PropertyModel.h
- src/Gui/propertyeditor/PropertyModel.cpp