SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
13 #ifndef smtk_extension_qtBaseAttributeView_h
14 #define smtk_extension_qtBaseAttributeView_h
16 #include "smtk/extension/qt/qtBaseView.h"
27 class qtViewInfoDialog;
39 void setInitialCategory()
override;
51 virtual void getDefinitions(
53 QList<smtk::attribute::DefinitionPtr>& defs);
54 int fixedLabelWidth() {
return m_fixedLabelWidth; }
56 bool setFixedLabelWidth(
int w);
57 bool advanceLevelVisible() {
return m_advOverlayVisible; }
58 bool useSelectionManager()
const {
return m_useSelectionManager; }
60 int advanceLevel()
const override;
61 bool categoryEnabled()
const override;
62 std::string currentCategory()
const override;
66 bool isEmpty()
const override;
69 void setIgnoreCategories(
bool mode);
70 bool ignoreCategories()
const {
return m_ignoreCategories; }
83 virtual void updateModelAssociation() { ; }
88 virtual void attributeChanged(
90 std::vector<std::string> items = std::vector<std::string>());
93 void showAdvanceLevel(
int i)
override;
94 void enableShowBy(
int )
override;
95 void onInfo()
override;
98 virtual void onAdvanceLevelChanged(
int levelIdx);
99 void onConfigurationChanged(
int levelIdx);
103 void buildUI()
override;
105 void makeTopLevel()
override;
118 void topLevelPrepCategories(
121 void topLevelPrepConfigurations(
125 void prepConfigurationComboBox(
const std::string& newConfigurationName);
127 QScrollArea* m_ScrollArea;
128 bool m_topLevelInitialized;
129 bool m_topLevelCanCreateConfigurations{
false };
131 bool m_ignoreCategories;
132 std::string m_addressString;
135 int m_fixedLabelWidth;
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
smtk::shared_ptr< smtk::attribute::Definition > DefinitionPtr
Definition: PublicPointerDefs.h:457
Definition: qtBaseAttributeView.h:29
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
Definition: qtBaseAttributeView.cxx:47
smtk::shared_ptr< smtk::attribute::Attribute > AttributePtr
Definition: PublicPointerDefs.h:463
smtk::shared_ptr< smtk::view::Configuration > ConfigurationPtr
Definition: PublicPointerDefs.h:649
Represent a (possibly composite) value according to a definition.
Definition: Attribute.h:50
smtk::shared_ptr< smtk::attribute::Item > ItemPtr
Definition: PublicPointerDefs.h:474
smtk::shared_ptr< smtk::attribute::ItemDefinition > ItemDefinitionPtr
Definition: PublicPointerDefs.h:480
smtk::shared_ptr< smtk::attribute::Resource > ResourcePtr
Definition: PublicPointerDefs.h:611
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:98
smtk::weak_ptr< smtk::attribute::Definition > WeakDefinitionPtr
Definition: PublicPointerDefs.h:461