Gui::PropertyEditor::PropertyItem Class Reference

#include <PropertyItem.h>

Inheritance diagram for Gui::PropertyEditor::PropertyItem:
Base::BaseClass Gui::PropertyEditor::PropertyBoolItem Gui::PropertyEditor::PropertyColorItem Gui::PropertyEditor::PropertyDoubleVectorItem Gui::PropertyEditor::PropertyEnumItem Gui::PropertyEditor::PropertyFileItem Gui::PropertyEditor::PropertyFloatConstraintItem Gui::PropertyEditor::PropertyFloatItem Gui::PropertyEditor::PropertyFontItem Gui::PropertyEditor::PropertyIntegerConstraintItem Gui::PropertyEditor::PropertyIntegerItem Gui::PropertyEditor::PropertyPathItem Gui::PropertyEditor::PropertyPlacementItem Gui::PropertyEditor::PropertySeparatorItem Gui::PropertyEditor::PropertyStringItem Gui::PropertyEditor::PropertyStringListItem Gui::PropertyEditor::PropertyTransientFileItem Gui::PropertyEditor::PropertyUnitItem Gui::PropertyEditor::PropertyVectorItem MeshGui::PropertyMeshKernelItem

List of all members.

Public Member Functions

void appendChild (PropertyItem *child)
PropertyItem * child (int row)
int childCount () const
int columnCount () const
virtual QWidget * 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().
QVariant data (int column, int role) const
virtual QVariant editorData (QWidget *editor) const
Qt::ItemFlags flags (int column) const
const std::vector
< App::Property * > & 
getPropertyData () const
virtual Base::Type getTypeId (void) const
bool isReadOnly () const
virtual bool isSeparator () const
PropertyItem * parent () const
QString propertyName () const
void reset ()
int row () const
bool setData (const QVariant &value)
virtual void setEditorData (QWidget *editor, const QVariant &data) const
void setParent (PropertyItem *parent)
void setPropertyData (const std::vector< App::Property * > &)
 Sets the current property objects.
void setPropertyName (const QString &)
void setPropertyValue (const QString &)
void setReadOnly (bool)
 ~PropertyItem ()

Static Public Member Functions

static void * create (void)
static Base::Type getClassTypeId (void)
static void init (void)

Protected Member Functions

virtual QVariant decoration (const App::Property *) const
 PropertyItem ()
QString pythonIdentifier (const App::Property *) const
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

Detailed Description

Definition at line 47 of file PropertyItem.h.


Constructor & Destructor Documentation

PropertyItem::~PropertyItem (  ) 

Definition at line 62 of file PropertyItem.cpp.

PropertyItem::PropertyItem (  )  [protected]

Definition at line 58 of file PropertyItem.cpp.


Member Function Documentation

void PropertyItem::appendChild ( PropertyItem *  child  ) 
PropertyItem * PropertyItem::child ( int  row  ) 

Definition at line 106 of file PropertyItem.cpp.

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

int PropertyItem::childCount (  )  const

Definition at line 111 of file PropertyItem.cpp.

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

int PropertyItem::columnCount (  )  const

Definition at line 116 of file PropertyItem.cpp.

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

void * Gui::PropertyEditor::PropertyItem::create ( void   )  [static]
QWidget * PropertyItem::createEditor ( QWidget *  parent,
const QObject *  receiver,
const char *  method 
) const [virtual]

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

Definition at line 185 of file PropertyItem.cpp.

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

QVariant PropertyItem::data ( int  column,
int  role 
) const
QVariant PropertyItem::decoration ( const App::Property *   )  const [protected, virtual]

Reimplemented in Gui::PropertyEditor::PropertyColorItem.

Definition at line 136 of file PropertyItem.cpp.

Referenced by data().

QVariant PropertyItem::editorData ( QWidget *  editor  )  const [virtual]
Qt::ItemFlags PropertyItem::flags ( int  column  )  const

Definition at line 298 of file PropertyItem.cpp.

References isReadOnly().

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

Base::Type Gui::PropertyEditor::PropertyItem::getClassTypeId ( void   )  [static]
const std::vector< App::Property * > & PropertyItem::getPropertyData ( void   )  const
Base::Type Gui::PropertyEditor::PropertyItem::getTypeId ( void   )  const [virtual]
void Gui::PropertyEditor::PropertyItem::init ( void   )  [static]
bool PropertyItem::isReadOnly (  )  const
virtual bool Gui::PropertyEditor::PropertyItem::isSeparator (  )  const [inline, virtual]
PropertyItem * PropertyItem::parent (  )  const
QString PropertyItem::propertyName (  )  const
QString PropertyItem::pythonIdentifier ( const App::Property *  prop  )  const [protected]
void PropertyItem::reset (  ) 

Definition at line 67 of file PropertyItem.cpp.

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

int PropertyItem::row (  )  const

Definition at line 307 of file PropertyItem.cpp.

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

bool PropertyItem::setData ( const QVariant &  value  ) 

Definition at line 279 of file PropertyItem.cpp.

References parent(), and setValue().

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

void PropertyItem::setEditorData ( QWidget *  editor,
const QVariant &  data 
) const [virtual]
void PropertyItem::setParent ( PropertyItem *  parent  ) 
void PropertyItem::setPropertyData ( const std::vector< App::Property * > &  items  ) 

Sets the current property objects.

Definition at line 73 of file PropertyItem.cpp.

References App::PropertyContainer::isReadOnly(), parent(), and setReadOnly().

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

void PropertyItem::setPropertyName ( const QString &  name  ) 
void PropertyItem::setPropertyValue ( const QString &  value  ) 
void PropertyItem::setReadOnly ( bool  ro  ) 
void PropertyItem::setValue ( const QVariant &   )  [protected, virtual]
QVariant PropertyItem::toolTip ( const App::Property *  prop  )  const [protected, virtual]
QVariant PropertyItem::toString ( const QVariant &  prop  )  const [protected, virtual]
QVariant PropertyItem::value ( const App::Property *   )  const [protected, virtual]

The documentation for this class was generated from the following files:

Generated on Wed Nov 23 19:02:12 2011 for FreeCAD by  doxygen 1.6.1