SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
an abstract UI class for attribute item More...
#include <qtItem.h>
Public Slots | |
virtual void | updateItemData () |
Tell the qtItem to update itself based on changes to its underlying attribute item. | |
Signals | |
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... | |
void | editingWidgetChanged () |
Indicates editing widget changed. More... | |
Public Member Functions | |
qtItem (const qtAttributeItemInfo &info) | |
smtk::attribute::ItemPtr | item () const |
template<typename ItemType > | |
std::shared_ptr< ItemType > | itemAs () const |
qtUIManager * | uiManager () 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... | |
virtual QWidget * | lastEditor () const |
Returns editor widget, used when setting tab order. | |
virtual void | updateTabOrder (QWidget *) |
Sets previous widget for tabbing order. | |
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 |
an abstract UI class for attribute item
|
signal |
Signal indicates that the child from the underlying item has been modified
|
signal |
Indicates editing widget changed.
In some cases, parent item should update tab order.
|
virtual |
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.