197 virtual ~
Viewer() override;
200 QString getName()
const {
210 void setType(ViewerType);
213 ViewerType getType();
220 bool setDockWidget(QDockWidget*);
224 QDockWidget* getDockWidget();
230 bool setEmbedder(QLayout*);
234 QLayout* getEmbedder();
255 void setVisible(
bool);
260 void setToolBarVisibility(
bool);
263 bool getToolBarVisibility();
266 virtual QPixmap getIcon();
282 QStringList getComponentClassNames();
287 void selectionChanged();
294 virtual QWidget* getWidget() = 0;
306 void clearSelection();
309 void setIcon(QPixmap icon);
321 CAMITK_API_DEPRECATED("Please use setComponentClassNames() instead")
void setComponents(QStringList);
325 void setComponentClassNames(QStringList);
328 void setDescription(QString);
338 bool toolbarVisibility;
347 QStringList componentClassNames;
353 QDockWidget* dockWidget;
#define CAMITK_API_DEPRECATED(X)
Definition CamiTKAPI.h:94
#define CAMITK_API
Definition CamiTKAPI.h:49
const char * description
Definition applications/cepgenerator/main.cpp:38
A component is something that composed something and could also be a part of something.
Definition modeling/libraries/pml/Component.h:48
A Component represents something that could be included in the explorer view, the interactive 3D view...
Definition sdk/libraries/core/component/Component.h:302
a specific style made for QDockWidget that adds an icon to the dock widget title
Definition ViewerDockStyle.h:46
Viewer is an abstract class that is the base class for all viewers.
Definition Viewer.h:180
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition Viewer.h:250
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
virtual QObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition Viewer.h:240
QString getDescription() const
get the name of the viewer
Definition Viewer.h:205
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition Viewer.h:245
Q_ENUM(ViewerType) Viewer(QString name
default constructor
ViewerType
describes where this viewer should appear
Definition Viewer.h:186
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition Viewer.h:187
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition Viewer.h:188
QList< Component * > ComponentList
A list of Component.
Definition CamiTKAPI.h:127