#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 () |
typedef std::vector< std::pair< std::string, std::vector<App::Property*> > > Gui::PropertyEditor::PropertyModel::PropertyList |
PropertyModel::PropertyModel | ( | QObject * | parent | ) |
References femsolver.elmer.equations.elasticity::create().
|
virtual |
void PropertyModel::appendProperty | ( | const App::Property & | _prop | ) |
References Gui::PropertyEditor::PropertyItem::child(), Gui::PropertyEditor::PropertyItem::getFirstProperty(), App::Property::getName(), index(), App::Property::PropDynamic, Gui::PropertyEditor::PropertyItem::propertyName(), Gui::PropertyEditor::PropertyItem::setPropertyData(), and App::Property::testStatus().
QModelIndex PropertyModel::buddy | ( | const QModelIndex & | index | ) | const |
References index().
Referenced by Gui::PropertyEditor::PropertyEditor::closeEditor(), and Gui::PropertyEditor::PropertyEditor::contextMenuEvent().
void PropertyModel::buildUp | ( | const PropertyList & | props | ) |
References App::Property::getName(), Gui::PropertyEditor::PropertyItem::getPropertyData(), index(), Gui::PropertyEditor::PropertyItem::parent(), Gui::PropertyEditor::PropertyItem::row(), Gui::PropertyEditor::PropertyItem::setLinked(), Gui::PropertyEditor::PropertyItem::setParent(), Gui::PropertyEditor::PropertyItem::setPropertyData(), and Gui::PropertyEditor::PropertyItem::updateData().
Referenced by Gui::PropertyEditor::PropertyEditor::buildUp(), and Gui::PropertyEditor::PropertyEditor::commitData().
int PropertyModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
References Gui::PropertyEditor::PropertyItem::columnCount(), columnCount(), and parent().
Referenced by columnCount().
QVariant PropertyModel::data | ( | const QModelIndex & | index, |
int | role = Qt::DisplayRole |
||
) | const |
References Gui::PropertyEditor::PropertyItem::data().
Referenced by Mod.Show.mTempoVis.TempoVis::activateWorkbench(), Mod.Show.SceneDetail.SceneDetail::apply_data(), importIFClegacy.IfcSchema::capitalize(), Mod.Show.mTempoVis.TempoVis::forget(), Mod.Show.mTempoVis.TempoVis::forgetDetail(), Mod.Show.mTempoVis.TempoVis::has(), ArchSchedule.CommandArchSchedule::IsActive(), importIFClegacy.IfcSchema::readEntities(), importIFClegacy.IfcSchema::readTypes(), Mod.Show.mTempoVis.TempoVis::restore(), Mod.Show.mTempoVis.TempoVis::save(), Mod.Show.mTempoVis.TempoVis::stored_val(), FeaturePython.ViewProviderOctahedron::updateData(), and Dice3DS.dom3ds.UndefinedChunk::write().
Qt::ItemFlags PropertyModel::flags | ( | const QModelIndex & | index | ) | const |
References Gui::PropertyEditor::PropertyItem::flags().
QVariant PropertyModel::headerData | ( | int | section, |
Qt::Orientation | orientation, | ||
int | role = Qt::DisplayRole |
||
) | const |
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(), Dice3DS.dom3ds.FileLikeBuffer::advance(), appendProperty(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::begin(), buddy(), buildUp(), Spreadsheet_legacy.MathParser::getValue(), Spreadsheet_legacy.MathParser::hasNext(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::interval(), PathScripts.PathJobDlg.JobCreate::item1ValueChanged(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::length(), Gui::PropertyEditor::PropertyEditor::onItemExpanded(), Spreadsheet_legacy.MathParser::parseAddition(), Spreadsheet_legacy.MathParser::parseMultiplication(), Spreadsheet_legacy.MathParser::parseNegative(), Spreadsheet_legacy.MathParser::parseNumber(), Spreadsheet_legacy.MathParser::parseParenthesis(), Spreadsheet_legacy.MathParser::parseVariable(), Spreadsheet_legacy.MathParser::peek(), propertyIndexFromPath(), Dice3DS.dom3ds.FileLikeBuffer::read(), Dice3DS.dom3ds.FileLikeBuffer::read_fbuf(), Dice3DS.dom3ds.FileLikeBuffer::read_rest(), Dice3DS.dom3ds.FileLikeBuffer::read_to_nul(), removeProperty(), Gui::PropertyEditor::PropertyEditor::reset(), Dice3DS.dom3ds.FileLikeBuffer::room_for_chunks(), Gui::PropertyEditor::PropertyEditor::rowsInserted(), Dice3DS.dom3ds.FileLikeBuffer::seek(), package_list.PackageListItemModel::setData(), PathScripts.PathJobDlg.JobCreate::setupColumnEditor(), Spreadsheet_legacy.MathParser::skipWhitespace(), Dice3DS.dom3ds.FileLikeBuffer::tell(), package_list.PackageListItemModel::update_item_icon(), package_list.PackageListItemModel::update_item_status(), updateProperty(), automotive_design.index_expression::wr1(), and automotive_design.index_expression::wr2().
QModelIndex PropertyModel::parent | ( | const QModelIndex & | index | ) | const |
References Gui::PropertyEditor::PropertyItem::parent(), and Gui::PropertyEditor::PropertyItem::row().
Referenced by PathScripts.PathSimulatorGui.CAMSimTaskUi::accept(), columnCount(), Mod.PartDesign.WizardShaft.Shaft.Shaft::equilibrium(), index(), Gui::PropertyEditor::PropertyEditor::onRowsMoved(), PathScripts.PathSimulatorGui.CAMSimTaskUi::reject(), removeProperty(), removeRows(), rowCount(), Gui::PropertyEditor::PropertyEditor::rowsAboutToBeRemoved(), Gui::PropertyEditor::PropertyEditor::rowsInserted(), PathScripts.PathOpGui.TaskPanelPage::setParent(), and updateProperty().
QModelIndex PropertyModel::propertyIndexFromPath | ( | const QStringList & | path | ) | const |
QStringList PropertyModel::propertyPathFromIndex | ( | const QModelIndex & | index | ) | const |
void PropertyModel::removeProperty | ( | const App::Property & | _prop | ) |
References parent(), and Gui::PropertyEditor::PropertyItem::removeChildren().
int PropertyModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
bool PropertyModel::setHeaderData | ( | int | section, |
Qt::Orientation | orientation, | ||
const QVariant & | value, | ||
int | role = Qt::EditRole |
||
) |
void PropertyModel::updateProperty | ( | const App::Property & | prop | ) |