SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_extension_qt_qtReferenceItem_h
11 #define smtk_extension_qt_qtReferenceItem_h
14 #include "smtk/extension/qt/MembershipBadge.h"
15 #include "smtk/extension/qt/qtItem.h"
16 #include "smtk/view/PhraseModel.h"
23 class qtReferenceItemData;
39 void markForDeletion()
override;
50 AcceptsTypes acceptableTypes()
const;
52 void setLabelVisible(
bool)
override;
64 bool setSelectionIconPaths(
65 const std::string& selectedIconPath,
66 const std::string& unselectedIconPath);
69 std::pair<std::string, std::string> selectionIconPaths()
const;
72 void updateItemData()
override;
75 void removeObservers();
77 virtual void selectionLinkToggled(
bool linked);
78 virtual void setOutputOptional(
int state);
96 virtual void linkHover(
bool link);
97 virtual void linkHoverTrue();
98 virtual void linkHoverFalse();
113 virtual void synchronizeAndHide(
bool escaping =
false);
115 virtual void copyFromSelection();
116 virtual void copyToSelection();
117 virtual void clearItem();
118 virtual void sneakilyHideButtons();
119 virtual void cleverlyShowButtons();
122 void membershipChanged(
int val);
132 void createWidget()
override;
134 virtual void clearWidgets();
135 virtual void updateUI();
137 virtual std::string synopsis(
bool& membershipValid)
const;
139 virtual void updateSynopsisLabels()
const;
141 bool eventFilter(QObject* src, QEvent* event)
override;
144 virtual void toggleCurrentItem();
154 virtual bool synchronize(UpdateSource src);
157 smtk::extension::qt::MembershipBadge::MemberMap& members()
const;
159 void checkRemovedComponents(
162 const std::vector<int>&,
163 const std::vector<int>&,
164 const std::vector<int>&);
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
an abstract UI class for attribute item
Definition: qtItem.h:61
UpdateSource
Indicate whether the GUI should be updated from the item it presents or vice versa.
Definition: qtReferenceItem.h:147
PhraseModelEvent
Events that can be observed on an smtk::view::PhraseModel.
Definition: PhraseModelObserver.h:26
smtk::shared_ptr< smtk::view::PhraseModel > PhraseModelPtr
Definition: PublicPointerDefs.h:637
Class used to generate widgets for Attribute Items.
Definition: qtAttributeItemInfo.h:39
A base class for protected data shared between component and resource items.
Definition: qtReferenceItemData.h:50
A base class for component and resource items.
Definition: qtReferenceItem.h:31
smtk::shared_ptr< smtk::view::DescriptivePhrase > DescriptivePhrasePtr
Definition: PublicPointerDefs.h:627