SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
13 #ifndef smtk_extension_qtAttributeItemInfo_h
14 #define smtk_extension_qtAttributeItemInfo_h
17 #include "smtk/extension/qt/Exports.h"
18 #include "smtk/view/Configuration.h"
26 class qtBaseAttributeView;
45 QPointer<QWidget> parent,
55 template<
typename ItemType>
56 std::shared_ptr<ItemType>
itemAs()
const
58 return std::dynamic_pointer_cast<ItemType>(this->item());
87 std::map<std::string, smtk::view::Configuration::Component>& childrenViewInfo()
const;
99 static bool buildFromComponent(
102 std::map<std::string, qtAttributeItemInfo>& dict);
118 bool createNewDictionary(std::map<std::string, qtAttributeItemInfo>& dict);
125 std::map<std::string, smtk::view::Configuration::Component> m_childrenViewInfo;
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
Container for managers whose content is presented via Qt widgets.
Definition: qtUIManager.h:57
Definition: qtBaseAttributeView.h:29
QPointer< qtBaseAttributeView > m_baseView
View Definition.
Definition: qtAttributeItemInfo.h:124
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
smtk::attribute::ItemPtr item() const
Methods to set and retrieve the item to be used by the generated qtItem.
Definition: qtAttributeItemInfo.h:54
smtk::view::Configuration::Component component() const
Methods to set and retrieve the Component Style Information to be used to generate a qtItem.
Definition: qtAttributeItemInfo.h:65
void setItem(const smtk::attribute::ItemPtr &item)
Methods to set and retrieve the item to be used by the generated qtItem.
Definition: qtAttributeItemInfo.h:53
smtk::weak_ptr< smtk::attribute::Item > WeakItemPtr
Definition: PublicPointerDefs.h:471
smtk::view::Configuration::Component m_component
qtItem Component Definition
Definition: qtAttributeItemInfo.h:122
void setComponent(const smtk::view::Configuration::Component &comp)
Methods to set and retrieve the Component Style Information to be used to generate a qtItem.
Definition: qtAttributeItemInfo.h:64
Class used to generate widgets for Attribute Items.
Definition: qtAttributeItemInfo.h:39
std::shared_ptr< ItemType > itemAs() const
Methods to set and retrieve the item to be used by the generated qtItem.
Definition: qtAttributeItemInfo.h:56
void setParentWidget(QPointer< QWidget > widget)
Methods to set and retrieve the widget to be used as the parent for the generated qtItem.
Definition: qtAttributeItemInfo.h:70
Configure one item in a view, which may contain children.
Definition: Configuration.h:32
QPointer< QWidget > parentWidget() const
Methods to set and retrieve the widget to be used as the parent for the generated qtItem.
Definition: qtAttributeItemInfo.h:71
QPointer< QWidget > m_parentWidget
Parent Widget of the qtItem.
Definition: qtAttributeItemInfo.h:123
smtk::shared_ptr< smtk::attribute::Item > ItemPtr
Definition: PublicPointerDefs.h:467
smtk::attribute::WeakItemPtr m_item
Pointer to the attribute Item.
Definition: qtAttributeItemInfo.h:121