46 class ViewerExtension;
49 class ViewerDockStyle;
198 virtual ~
Viewer() override;
201 QString getName()
const {
211 void setType(ViewerType);
214 ViewerType getType();
221 virtual bool setDockWidget(QDockWidget*);
225 virtual QDockWidget* getDockWidget();
231 virtual bool setEmbedder(QLayout*);
235 virtual QLayout* getEmbedder();
256 virtual void setVisible(
bool);
261 virtual void setToolBarVisibility(
bool);
264 virtual bool getToolBarVisibility();
267 virtual QPixmap getIcon();
283 QStringList getComponentClassNames();
288 void selectionChanged();
295 virtual QWidget* getWidget() = 0;
307 void clearSelection();
310 void setIcon(QPixmap icon);
322 CAMITK_API_DEPRECATED("Please use setComponentClassNames() instead")
void setComponents(QStringList);
326 void setComponentClassNames(QStringList);
329 void setDescription(QString);
339 bool toolbarVisibility;
348 QStringList componentClassNames;
354 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:303
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:181
virtual PropertyObject * getPropertyObject()
get the viewer property object (returns nullptr by default, i.e. there are no property to edit)
Definition: Viewer.h:241
virtual QMenu * getMenu()
get the viewer menu (returns nullptr by default, i.e. there are no default edit menu)
Definition: Viewer.h:246
virtual void refresh(Viewer *whoIsAsking=nullptr)=0
refresh the view (can be interesting to know which other viewer is calling this)
QString getDescription() const
get the name of the viewer
Definition: Viewer.h:206
Q_ENUM(ViewerType) Viewer(QString name
default constructor
virtual QToolBar * getToolBar()
get the viewer toolbar (returns nullptr by default, i.e. there are no default toolbar)
Definition: Viewer.h:251
ViewerType
describes where this viewer should appear
Definition: Viewer.h:187
@ EMBEDDED
this viewer is meant to be embedded inside a layout (of another viewer or widget),...
Definition: Viewer.h:188
@ DOCKED
this viewer is meant to be docked, use dockIn() to get the dock widget
Definition: Viewer.h:189
Definition: Action.cpp:36