SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
qtReferenceItemEditor is a custom UI interface for a smtk::attribute::ReferenceItem that uses a Combo Box. More...
#include <qtReferenceItemEditor.h>
Public Slots | |
void | updateItemData () override |
void | highlightItem (int index) |
void | selectItem (int index) |
void | setOutputOptional (int state) |
void | itemChanged (smtk::attribute::ItemPtr item) |
virtual void | updateChoices (const smtk::common::UUID &ignoreResource=smtk::common::UUID::null()) |
virtual void | updateContents () |
Public Slots inherited from smtk::extension::qtItem | |
virtual void | updateItemData () |
Tell the qtItem to update itself based on changes to its underlying attribute item. | |
Public Member Functions | |
qtReferenceItemEditor (const qtAttributeItemInfo &info) | |
void | markForDeletion () override |
Indicates that the item should be deleted. More... | |
virtual std::string | selectionSourceName () |
void | setDefinitionForCreation (smtk::attribute::DefinitionPtr &def) |
void | setOkToCreate (bool val) |
smtk::resource::PersistentObjectPtr | object (int index) |
QWidget * | lastEditor () const override |
Tab ordering methods. More... | |
void | updateTabOrder (QWidget *precedingEditor) override |
Sets previous widget for tabbing order. | |
Public Member Functions inherited from smtk::extension::qtItem | |
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 |
Static Public Member Functions | |
static qtItem * | createItemWidget (const qtAttributeItemInfo &info) |
Protected Slots | |
virtual void | removeObservers () |
virtual void | resetHover () |
virtual void | highlightOnHoverChanged (bool) |
Protected Slots inherited from smtk::extension::qtItem | |
virtual void | onAdvanceLevelChanged (int levelIdx) |
virtual void | onChildWidgetSizeChanged () |
Protected Member Functions | |
void | createWidget () override |
void | updateListItemSelectionAfterChange (QList< QListWidgetItem * > selItems, QListWidget *list) |
int | handleOperationEvent (const smtk::operation::Operation &op, smtk::operation::EventType event, smtk::operation::Operation::Result result) |
void | handleResourceEvent (const smtk::resource::Resource &resource, smtk::resource::EventType event) |
Protected Member Functions inherited from smtk::extension::qtItem | |
virtual void | setLocalAdvanceLevel (unsigned int level) |
virtual void | addChildItem (qtItem *) |
virtual void | removeChildItem (qtItem *) |
virtual void | clearChildItems () |
QList< qtItem * > & | childItems () |
Additional Inherited Members | |
Signals inherited from smtk::extension::qtItem | |
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... | |
Protected Attributes inherited from smtk::extension::qtItem | |
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 |
qtReferenceItemEditor is a custom UI interface for a smtk::attribute::ReferenceItem that uses a Combo Box.
This qtItem is used by smtk::extension::qtComponentItem and smtk::extension::qtResourceItem to provide a simpler UI for items that are not extensible and that hold a single value. This qtItem also provides two options:
|
overridevirtual |
Tab ordering methods.
The current logic does not support children items.
Reimplemented from smtk::extension::qtItem.
|
overridevirtual |
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 from smtk::extension::qtItem.