Simulation Modeling Tool Kit
Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
smtk::extension::qtItem Class Reference

an abstract UI class for attribute item More...

#include <qtItem.h>

Inheritance diagram for smtk::extension::qtItem:
Collaboration diagram for smtk::extension::qtItem:

Public Slots

virtual void updateItemData ()
 Tell the qtItem to update itself based on changes to its underlying attribute item.


void widgetSizeChanged ()
 Signal indicates that the underlying widget's size has been modified.
void modified ()
 Signal indicates that the underlying item has been modified.
void childModified (qtItem *item)
 Signal indicates that the child from the underlying item has been modified More...

Public Member Functions

 qtItem (const qtAttributeItemInfo &info)
smtk::attribute::ItemPtr item () const
template<typename ItemType >
std::shared_ptr< ItemType > itemAs () const
qtUIManageruiManager () const
smtk::attribute::ResourcePtr attributeResource () const
 Return the underlying Attribute Resource.
QPointer< QWidget > widget ()
QPointer< QWidget > parentWidget ()
bool isLeafItem ()
virtual void setLabelVisible (bool)
virtual bool isFixedWidth () const
void showAdvanceLevelOverlay (bool)
bool useSelectionManager () const
void setReadOnly (bool mode)
bool isReadOnly () const
virtual void markForDeletion ()
 Indicates that the item should be deleted. More...

Protected Slots

virtual void onAdvanceLevelChanged (int levelIdx)
virtual void onChildWidgetSizeChanged ()

Protected Member Functions

virtual void createWidget ()
virtual void setLocalAdvanceLevel (unsigned int level)
virtual void addChildItem (qtItem *)
virtual void removeChildItem (qtItem *)
virtual void clearChildItems ()
QList< qtItem * > & childItems ()

Protected Attributes

QPointer< QWidget > m_widget
bool m_isLeafItem
bool m_useSelectionManager
bool m_readOnly
bool m_markedForDeletion
qtAttributeItemInfo m_itemInfo
QList< smtk::extension::qtItem * > m_childItems

Detailed Description

an abstract UI class for attribute item

Member Function Documentation

◆ childModified

void smtk::extension::qtItem::childModified ( qtItem item)

Signal indicates that the child from the underlying item has been modified

◆ markForDeletion()

void qtItem::markForDeletion ( )

Indicates that the item should be deleted.

This is similar to Qt's deleteLater() method (in fact it calls it); however, it also allows the qtItem to do some cleanup such as stop observing SMTK "signals".

Reimplemented in smtk::extension::qtReferenceItemEditor, smtk::extension::qtReferenceTree, pqSMTKAttributeItemWidget, and smtk::extension::qtReferenceItem.

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