SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Member Functions | Static Public Member Functions | List of all members
smtk::extension::qtComponentItem Class Reference
Inheritance diagram for smtk::extension::qtComponentItem:
[legend]
Collaboration diagram for smtk::extension::qtComponentItem:
[legend]

Public Member Functions

 qtComponentItem (const qtAttributeItemInfo &info)
 
- Public Member Functions inherited from smtk::extension::qtReferenceItem
 qtReferenceItem (const qtAttributeItemInfo &info)
 
void markForDeletion () override
 Indicates that the item should be deleted. More...
 
AcceptsTypes acceptableTypes () const
 
void setLabelVisible (bool) override
 
bool setSelectionIconPaths (const std::string &selectedIconPath, const std::string &unselectedIconPath)
 Set the paths (into qrc files or the local filesystem) of icons used to indicate which items are selected and which are not. More...
 
std::pair< std::string, std::string > selectionIconPaths () const
 Return the paths to icons used to display the membership in the item.
 
- 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
 
qtUIManageruiManager () const
 
smtk::attribute::ResourcePtr attributeResource () const
 Return the underlying Attribute Resource.
 
QPointer< QWidget > widget ()
 
QPointer< QWidget > parentWidget ()
 
bool isLeafItem ()
 
virtual bool isFixedWidth () const
 
void showAdvanceLevelOverlay (bool)
 
bool useSelectionManager () const
 
void setReadOnly (bool mode)
 
bool isReadOnly () const
 
virtual QWidget * lastEditor () const
 Returns editor widget, used when setting tab order.
 
virtual void updateTabOrder (QWidget *)
 Sets previous widget for tabbing order.
 

Static Public Member Functions

static qtItemcreateItemWidget (const qtAttributeItemInfo &info)
 
- Static Public Member Functions inherited from smtk::extension::qtReferenceItem
static qtItemcreateItemWidget (const qtAttributeItemInfo &info)
 

Additional Inherited Members

- Public Types inherited from smtk::extension::qtReferenceItem
enum  AcceptsTypes { NONE, RESOURCES, COMPONENTS, BOTH }
 
- Public Slots inherited from smtk::extension::qtReferenceItem
void updateItemData () override
 
- Public Slots inherited from smtk::extension::qtItem
virtual void updateItemData ()
 Tell the qtItem to update itself based on changes to its underlying attribute item.
 
- Signals inherited from smtk::extension::qtItem
void widgetSizeChanged ()
 Signal indicates that the underlying widget's size has been modified.
 
void modified (qtItem *item)
 Signal indicates that the underlying item (or one that it owns) has been modified.
 
void editingWidgetChanged ()
 Indicates editing widget changed. More...
 
- Protected Types inherited from smtk::extension::qtReferenceItem
enum  UpdateSource { UpdateSource::ITEM_FROM_GUI, UpdateSource::GUI_FROM_ITEM }
 Indicate whether the GUI should be updated from the item it presents or vice versa. More...
 
- Protected Slots inherited from smtk::extension::qtReferenceItem
void removeObservers ()
 
virtual void selectionLinkToggled (bool linked)
 
virtual void setOutputOptional (int state)
 
void popupClosing ()
 Called whenever the edit button's QMenu is about to hide. More...
 
virtual void linkHover (bool link)
 Link this item to the "hovered" selection bit. More...
 
virtual void linkHoverTrue ()
 
virtual void linkHoverFalse ()
 
virtual void synchronizeAndHide (bool escaping=false)
 Called when the user asks to close the popup. More...
 
virtual void copyFromSelection ()
 
virtual void copyToSelection ()
 
virtual void clearItem ()
 
virtual void sneakilyHideButtons ()
 
virtual void cleverlyShowButtons ()
 
void membershipChanged (int val)
 Update our labels when the membership badge has changed.
 
- Protected Slots inherited from smtk::extension::qtItem
virtual void onAdvanceLevelChanged (int levelIdx)
 
virtual void onChildWidgetSizeChanged ()
 
- Protected Member Functions inherited from smtk::extension::qtReferenceItem
virtual smtk::view::PhraseModelPtr createPhraseModel () const
 Subclasses override this to create a model of the appropriate type. More...
 
void createWidget () override
 
virtual void clearWidgets ()
 
virtual void updateUI ()
 
virtual std::string synopsis (bool &membershipValid) const
 
virtual void updateSynopsisLabels () const
 
bool eventFilter (QObject *src, QEvent *event) override
 
virtual void toggleCurrentItem ()
 Called by eventFilter() when user hits space/enter in popup.
 
virtual bool synchronize (UpdateSource src)
 Children must implement this.
 
smtk::extension::qt::MembershipBadge::MemberMap & members () const
 retrieve membership from the phraseModel's badge
 
void checkRemovedComponents (smtk::view::DescriptivePhrasePtr, smtk::view::PhraseModelEvent, const std::vector< int > &, const std::vector< int > &, const std::vector< int > &)
 
- 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 ()
 
- Protected Attributes inherited from smtk::extension::qtReferenceItem
qtReferenceItemDatam_p
 
- 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
 

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