Gui::PropertyEditor::PropertyItem Class Reference

#include <PropertyItem.h>

Public Member Functions

void appendChild (PropertyItem *child)
virtual void assignProperty (const App::Property *)
virtual void bind (const App::ObjectIdentifier &_path)
virtual void bind (const App::Property &prop)
 override the bind functions to ensure we issue the propertyBound() call, which is then overloaded by childs which like to be informed of a binding More...
PropertyItemchild (int row)
int childCount () const
int columnCount () const
virtual QWidgetcreateEditor (QWidget *parent, const QObject *receiver, const char *method) const
 Creates the appropriate editor for this item and sets the editor to the value of overrideValue(). More...
QWidgetcreateExpressionEditor (QWidget *parent, const QObject *receiver, const char *method) const
virtual QVariant data (int column, int role) const
int decimals () const
virtual QVariant editorData (QWidget *editor) const
QString expressionAsString () const
QVariant expressionEditorData (QWidget *editor) const
Qt::ItemFlags flags (int column) const
App::PropertygetFirstProperty ()
const App::PropertygetFirstProperty () const
const std::vector< App::Property * > & getPropertyData () const
bool hasAnyExpression () const
bool hasProperty (const App::Property *) const
void insertChild (int, PropertyItem *child)
bool isLinked () const
bool isReadOnly () const
virtual bool isSeparator () const
PropertyItemparent () const
virtual void propertyBound ()
QString propertyName () const
void removeChildren (int from, int to)
 PropertyItem::removeChildren Deletes the children in the range of [from, to]. More...
bool removeProperty (const App::Property *)
void reset ()
int row () const
bool setData (const QVariant &value)
void setDecimals (int)
virtual void setEditorData (QWidget *editor, const QVariant &data) const
void setExpressionEditorData (QWidget *editor, const QVariant &data) const
void setLinked (bool)
void setParent (PropertyItem *parent)
void setPropertyData (const std::vector< App::Property * > &)
 Sets the current property objects. More...
void setPropertyName (const QString &)
void setPropertyValue (const QString &)
void setReadOnly (bool)
PropertyItemtakeChild (int)
 PropertyItem::takeChild Removes the child at index row but doesn't delete it. More...
bool testStatus (App::Property::Status pos) const
void updateData ()
 ~PropertyItem ()
- Public Member Functions inherited from Gui::ExpressionBinding
virtual bool apply ()
virtual bool apply (const std::string &propName)
bool autoApply () const
 ExpressionBinding ()
QPixmap getIcon (const char *name, const QSize &size) const
bool hasExpression () const
bool isBound () const
void setAutoApply (bool value)
void unbind ()
virtual ~ExpressionBinding ()

Protected Member Functions

virtual QVariant decoration (const QVariant &) const
virtual QVariant displayName () const
virtual void initialize ()
virtual void onChange ()
 PropertyItem ()
virtual void setValue (const QVariant &)
virtual QVariant toolTip (const App::Property *) const
virtual QVariant toString (const QVariant &) const
virtual QVariant value (const App::Property *) const
- Protected Member Functions inherited from Gui::ExpressionBinding
void expressionChange (const App::ObjectIdentifier &id)
std::string getEscapedExpressionString () const
boost::shared_ptr< App::ExpressiongetExpression () const
std::string getExpressionString (bool no_throw=true) const
const App::ObjectIdentifiergetPath () const
void objectDeleted (const App::DocumentObject &)
virtual void setExpression (boost::shared_ptr< App::Expression > expr)

Protected Attributes

QList< PropertyItem * > childItems
bool cleared
QString displayText
bool linked
int precision
std::vector< App::Property * > propertyItems
QString propName
bool readonly
- Protected Attributes inherited from Gui::ExpressionBinding
QPalette defaultPalette
boost::signals2::scoped_connection expressionchanged
int iconHeight
bool m_autoApply
boost::signals2::scoped_connection objectdeleted

Constructor & Destructor Documentation

◆ ~PropertyItem()

PropertyItem::~PropertyItem ( )

◆ PropertyItem()

PropertyItem::PropertyItem ( )

Member Function Documentation

◆ appendChild()

◆ assignProperty()

void PropertyItem::assignProperty ( const App::Property )

◆ bind() [1/2]

void PropertyItem::bind ( const App::ObjectIdentifier _path)

Reimplemented from Gui::ExpressionBinding.

References Gui::ExpressionBinding::bind().

◆ bind() [2/2]

void PropertyItem::bind ( const App::Property prop)

override the bind functions to ensure we issue the propertyBound() call, which is then overloaded by childs which like to be informed of a binding

Reimplemented from Gui::ExpressionBinding.

References Gui::ExpressionBinding::bind().

Referenced by SketcherGui::PropertyConstraintListItem::initialize().

◆ child()

◆ childCount()

◆ columnCount()

int PropertyItem::columnCount ( ) const

◆ createEditor()

QWidget * PropertyItem::createEditor ( QWidget parent,
const QObject receiver,
const char *  method 
) const

Creates the appropriate editor for this item and sets the editor to the value of overrideValue().

Reimplemented in PartGui::PropertyEnumAttacherItem.

Referenced by Gui::PropertyEditor::PropertyItemDelegate::createEditor().

◆ createExpressionEditor()

QWidget * PropertyItem::createExpressionEditor ( QWidget parent,
const QObject receiver,
const char *  method 
) const

◆ data()

◆ decimals()

◆ decoration()

QVariant PropertyItem::decoration ( const QVariant &  ) const

◆ displayName()

QVariant PropertyItem::displayName ( ) const

◆ editorData()

QVariant PropertyItem::editorData ( QWidget editor) const

◆ expressionAsString()

QString PropertyItem::expressionAsString ( ) const

◆ expressionEditorData()

QVariant PropertyItem::expressionEditorData ( QWidget editor) const

◆ flags()

Qt::ItemFlags PropertyItem::flags ( int  column) const

◆ getFirstProperty() [1/2]

App::Property * PropertyItem::getFirstProperty ( )

◆ getFirstProperty() [2/2]

const App::Property * PropertyItem::getFirstProperty ( ) const

◆ getPropertyData()

const std::vector< App::Property * > & PropertyItem::getPropertyData ( void  ) const

◆ hasAnyExpression()

bool PropertyItem::hasAnyExpression ( ) const

◆ hasProperty()

◆ initialize()

void PropertyItem::initialize ( )

◆ insertChild()

void PropertyItem::insertChild ( int  index,
PropertyItem child 

◆ isLinked()

bool PropertyItem::isLinked ( ) const

◆ isReadOnly()

◆ isSeparator()

virtual bool Gui::PropertyEditor::PropertyItem::isSeparator ( ) const

◆ onChange()

void PropertyItem::onChange ( )

Reimplemented from Gui::ExpressionBinding.

◆ parent()

◆ propertyBound()

virtual void Gui::PropertyEditor::PropertyItem::propertyBound ( )

◆ propertyName()

◆ removeChildren()

void PropertyItem::removeChildren ( int  from,
int  to 

PropertyItem::removeChildren Deletes the children in the range of [from, to].

Referenced by Gui::PropertyEditor::PropertyModel::removeRows().

◆ removeProperty()

bool PropertyItem::removeProperty ( const App::Property prop)

◆ reset()

◆ row()

int PropertyItem::row ( ) const

◆ setData()

bool PropertyItem::setData ( const QVariant &  value)

◆ setDecimals()

void PropertyItem::setDecimals ( int  prec)

◆ setEditorData()

void PropertyItem::setEditorData ( QWidget editor,
const QVariant &  data 
) const

◆ setExpressionEditorData()

void PropertyItem::setExpressionEditorData ( QWidget editor,
const QVariant &  data 
) const

◆ setLinked()

void PropertyItem::setLinked ( bool  l)

◆ setParent()

◆ setPropertyData()

void PropertyItem::setPropertyData ( const std::vector< App::Property * > &  items)

◆ setPropertyName()

void PropertyItem::setPropertyName ( const QString &  name)

◆ setPropertyValue()

◆ setReadOnly()

void PropertyItem::setReadOnly ( bool  ro)

◆ setValue()

◆ takeChild()

PropertyItem * PropertyItem::takeChild ( int  row)

PropertyItem::takeChild Removes the child at index row but doesn't delete it.

References setParent().

◆ testStatus()

bool PropertyItem::testStatus ( App::Property::Status  pos) const

◆ toolTip()

◆ toString()

◆ updateData()

◆ value()

QVariant PropertyItem::value ( const App::Property ) const

Reimplemented in Gui::PropertyEditor::PropertyLinkItem, SketcherGui::PropertyConstraintListItem, MeshGui::PropertyMeshKernelItem, FemGui::PropertyFemMeshItem, Gui::PropertyEditor::PropertyTransientFileItem, Gui::PropertyEditor::PropertyPathItem, Gui::PropertyEditor::PropertyFileItem, Gui::PropertyEditor::PropertyMaterialListItem, Gui::PropertyEditor::PropertyMaterialItem, Gui::PropertyEditor::PropertyColorItem, Gui::PropertyEditor::PropertyIntegerListItem, Gui::PropertyEditor::PropertyFloatListItem, Gui::PropertyEditor::PropertyStringListItem, Gui::PropertyEditor::PropertyEnumItem, Gui::PropertyEditor::PropertyPlacementItem, Gui::PropertyEditor::PropertyMatrixItem, Gui::PropertyEditor::PropertyVectorDistanceItem, Gui::PropertyEditor::PropertyVectorListItem, Gui::PropertyEditor::PropertyVectorItem, Gui::PropertyEditor::PropertyBoolItem, Gui::PropertyEditor::PropertyFloatConstraintItem, Gui::PropertyEditor::PropertyUnitItem, Gui::PropertyEditor::PropertyFloatItem, Gui::PropertyEditor::PropertyIntegerConstraintItem, Gui::PropertyEditor::PropertyIntegerItem, Gui::PropertyEditor::PropertyFontItem, and Gui::PropertyEditor::PropertyStringItem.

Referenced by child(), PathScripts.PathProperty.Property::displayString(), PathScripts.PathProperty.PropertyQuantity::displayString(), PathScripts.PathSetupSheetOpPrototype.Property::displayString(), PathScripts.PathSetupSheetOpPrototype.PropertyQuantity::displayString(), Mod.PartDesign.WizardShaft.SegmentFunction.SegmentFunction::evaluate(), PathScripts.PathProperty.Property::getValue(), PathScripts.PathSetupSheetOpPrototype.Property::getValue(), Mod.PartDesign.WizardShaft.SegmentFunction.IntervalFunction::lowervalue(), PathScripts.PathProperty.Property::setValue(), and PathScripts.PathSetupSheetOpPrototype.Property::setValue().

Member Data Documentation

◆ childItems

QList<PropertyItem*> Gui::PropertyEditor::PropertyItem::childItems

◆ cleared

bool Gui::PropertyEditor::PropertyItem::cleared

◆ displayText

QString Gui::PropertyEditor::PropertyItem::displayText

◆ linked

bool Gui::PropertyEditor::PropertyItem::linked

◆ parentItem

PropertyItem* Gui::PropertyEditor::PropertyItem::parentItem

◆ precision

◆ propertyItems

std::vector<App::Property*> Gui::PropertyEditor::PropertyItem::propertyItems

◆ propName

QString Gui::PropertyEditor::PropertyItem::propName

◆ readonly

bool Gui::PropertyEditor::PropertyItem::readonly

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