199 virtual ~
Viewer() override;
202 QString getName()
const {
207 void setDescription(QString);
231 void setType(ViewerType);
234 ViewerType getType()
const;
241 virtual bool setDockWidget(QDockWidget*);
245 virtual QDockWidget* getDockWidget()
const;
251 virtual bool setEmbedder(QLayout*);
255 virtual QLayout* getEmbedder()
const;
276 virtual void setVisible(
bool);
281 virtual void setToolBarVisibility(
bool);
284 virtual bool getToolBarVisibility()
const;
287 virtual QPixmap getIcon()
const;
291 QStringList getComponentClassNames()
const;
315 void clearSelection();
318 void setIcon(QPixmap icon);
322 void setComponentClassNames(QStringList);
332 bool toolbarVisibility;
341 QStringList componentClassNames;
347 QDockWidget* dockWidget;
#define CAMITK_API
Definition CamiTKAPI.h:66
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:304
This class describes a property object.
Definition PropertyObject.h:72
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:182
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition Viewer.h:271
QUuid getUuid() const
get the Uuid of this viewer
Definition Viewer.h:226
virtual PropertyObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition Viewer.h:261
virtual QWidget * getWidget()=0
get the viewer widget.
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
bool setUuid(QUuid id)
set the Uuid of this viewer
Definition Viewer.h:215
QString getDescription() const
get the name of the viewer
Definition Viewer.h:210
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition Viewer.h:266
Q_ENUM(ViewerType) Viewer(QString name
default constructor
void selectionChanged()
this signal is emitted when the current selection was changed by the viewer
ViewerType
describes where this viewer should appear
Definition Viewer.h:188
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition Viewer.h:189
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition Viewer.h:190