SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
11 #ifndef smtk_extension_qtBaseView_h
12 #define smtk_extension_qtBaseView_h
14 #include <QtCore/QList>
15 #include <QtCore/QObject>
16 #include <QtCore/QPointer>
17 #include <QtWidgets/QLayout>
21 #include "smtk/common/Deprecation.h"
22 #include "smtk/extension/qt/Exports.h"
23 #include "smtk/extension/qt/qtViewInfoDialog.h"
24 #include "smtk/view/BaseView.h"
25 #include "smtk/view/Information.h"
30 #if defined(__VTK_WRAP__) && !defined(Q_SLOTS)
31 #define Q_DISABLE_COPY(x)
33 #define Q_SIGNALS protected
43 class qtViewInfoDialog;
71 QWidget* widget()
const {
return this->Widget; }
73 QWidget* parentWidget()
const {
return m_viewInfo.get<QWidget*>(); }
80 virtual int advanceLevel()
const {
return 0; }
81 virtual bool categoryEnabled()
const {
return false; }
82 virtual std::string currentCategory()
const {
return ""; }
89 bool isTopLevel()
const {
return m_isTopLevel; }
94 virtual bool isEmpty()
const {
return true; }
97 virtual bool isValid()
const {
return true; }
103 void aboutToDestroy();
112 virtual void childrenResized() { ; }
113 virtual void showAdvanceLevelOverlay(
bool val) { m_advOverlayVisible = val; }
116 virtual void enableShowBy(
int ) { ; }
118 virtual void onInfo();
120 virtual void onShowCategory() {}
131 virtual void makeTopLevel();
134 virtual void setInfoToBeDisplayed();
138 bool m_useSelectionManager;
140 QPointer<qtViewInfoDialog> m_infoDialog;
141 bool m_advOverlayVisible;
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
Container for managers whose content is presented via Qt widgets.
Definition: qtUIManager.h:57
virtual void showAdvanceLevel(int)
Have the view update its contents based on a new advance level.
Definition: qtBaseView.h:115
A base class for all view types implemented using Qt.
Definition: qtBaseView.h:46
virtual void createWidget()
Creates the main QT Widget that is associated with a View.
Definition: qtBaseView.h:128
virtual void updateUI()
Have the view update its contents.
Definition: qtBaseView.h:111
virtual void buildUI()
Creates the UI related to the view and properly assigns it to the parent widget.
Definition: qtBaseView.h:125
Definition: BaseView.h:24
virtual void setInitialCategory()
When category filtering is requested to be either on by default or is requested to be on permanently,...
Definition: qtBaseView.h:87
smtk::shared_ptr< smtk::view::Configuration > ConfigurationPtr
Definition: PublicPointerDefs.h:642
virtual bool isValid() const
Return true if the view's contents are valid.
Definition: qtBaseView.h:97
const smtk::view::Information & information() const
Return the view's specification (its configuration plus environment information).
Definition: qtBaseView.h:78
virtual bool isEmpty() const
Return true if the view does not contain any information to display.
Definition: qtBaseView.h:94
Macros for dealing with shared-pointer classes.
#define smtkTypenameMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:98