35#include <NDEVR/ViewportManager.h>
36#include <NDEVR/ContainerWidget.h>
37#include <NDEVR/QCustomDockWidget.h>
38#include <NDEVR/SnapLocation.h>
39#include <NDEVR/ViewportLayout.h>
40#include <NDEVR/Pointer.h>
43 class VirtualCameraView;
45 class QTWindowManager;
49 class CustomDockButton;
50 class QTResourceListener;
52 class NDEVR_API CameraPane :
public QWidget,
public ViewportManager
56 CameraPane(QTWindowManager* window_manager, QTModelManager* manager, QWidget* parent =
nullptr);
57 void setTouchTheme(
bool touch_theme);
59 void setSelectedCamera(UUID camera);
60 bool removeView(QPointer<DockWidget<CameraView>> view)
override;
61 bool addView(QPointer<DockWidget<CameraView>> view)
override;
62 void addWidget(
const QPointer<QWidget>& widget);
63 void layoutViews(ViewportLayout camera_theme, DesignObjectLookup* manager, Buffer<QPointer<DockWidget<CameraView>>>& removed_views)
override;
64 void removeWidget(
const QPointer<QWidget>& widget);
65 bool removeCamera(
const UUID& camera);
66 void onViewsSwapped(DockWidget<CameraView>* camera_a, DockWidget<CameraView>* camera_b)
override;
67 bool removeCamera(
const DynamicPointer<Camera>& camera);
68 void createListeners(UUID
id);
69 void updateCamerasClosable()
const;
70 QSize sizeHint()
const override;
71 void makeCurrentConfigDefault();
72 bool sharedToolbar()
const;
73 CustomDockButton* addCameraButton();
74 void setRibbonArea(RibbonArea ribbon_area);
76 void cameraThemeChanged(ViewportLayoutTheme theme);
77 void activeCameraChangedSignal();
79 void onClearAllSlot();
80 void onCameraDelete(UUID camera);
82 CustomDockButton* m_add_camera_button =
nullptr;
83 QTModelManager* m_model_manager;
84 QTWindowManager* m_window_manager;
85 Buffer<QPointer<QWidget>> m_extra_widgets;
86 ContainerWidget* m_camera_area;
87 Dictionary<UUID, QTResourceListener*> m_hover_listeners;
88 Dictionary<UUID, QTResourceListener*> m_click_listeners;
91 bool m_cameras_moveable;
RibbonArea
Definition RibbonArea.h:68
ViewportLayoutTheme
The potential layouts of multiple viewports within the NDEVR engine.
Definition ViewLocation.h:77