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

Public Member Functions

 qtResourceItem (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
 

Static Public Member Functions

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

Protected Member Functions

smtk::view::PhraseModelPtr createPhraseModel () const override
 Subclasses override this to create a model of the appropriate type. More...
 
std::string synopsis (bool &membershipValid) const override
 
- Protected Member Functions inherited from smtk::extension::qtReferenceItem
void createWidget () override
 
virtual void clearWidgets ()
 
virtual void updateUI ()
 
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 ()
 

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 ()
 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...
 
- 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 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
 

Member Function Documentation

◆ createPhraseModel()

smtk::view::PhraseModelPtr smtk::extension::qtResourceItem::createPhraseModel ( ) const
overrideprotectedvirtual

Subclasses override this to create a model of the appropriate type.

The model should be configured using information the item (this->configuration()) and be ready for use.

Reimplemented from smtk::extension::qtReferenceItem.


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