Gui::PropertyEditor::PropertyModel Class Reference

#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)

◆ ~PropertyModel()

PropertyModel::~PropertyModel ( )
virtual

Member Function Documentation

◆ appendProperty()

◆ buddy()

QModelIndex PropertyModel::buddy ( const QModelIndex &  index) const

◆ buildUp()

◆ columnCount()

int PropertyModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

◆ data()

◆ flags()

Qt::ItemFlags PropertyModel::flags ( const QModelIndex &  index) const

◆ 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(), Dice3DS.dom3ds.FileLikeBuffer::advance(), appendProperty(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::begin(), buddy(), Spreadsheet_legacy.MathParser::getValue(), Spreadsheet_legacy.MathParser::hasNext(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::interval(), PathScripts.PathJobDlg.JobCreate::item1ValueChanged(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::length(), 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(), Dice3DS.dom3ds.FileLikeBuffer::room_for_chunks(), Dice3DS.dom3ds.FileLikeBuffer::seek(), PathScripts.PathJobDlg.JobCreate::setupColumnEditor(), Spreadsheet_legacy.MathParser::skipWhitespace(), Dice3DS.dom3ds.FileLikeBuffer::tell(), Gui::PropertyEditor::PropertyEditor::updateEditorMode(), updateProperty(), automotive_design.index_expression::wr1(), and automotive_design.index_expression::wr2().

◆ parent()

◆ propertyIndexFromPath()

QModelIndex PropertyModel::propertyIndexFromPath ( const QStringList &  path) const

◆ propertyPathFromIndex()

QStringList PropertyModel::propertyPathFromIndex ( const QModelIndex &  index) const

◆ removeProperty()

◆ removeRows()

bool PropertyModel::removeRows ( int  row,
int  count,
const QModelIndex &  parent = QModelIndex() 
)

◆ 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()


The documentation for this class was generated from the following files:
  • Sources/FreeCAD/src/Gui/propertyeditor/PropertyModel.h
  • Sources/FreeCAD/src/Gui/propertyeditor/PropertyModel.cpp