28 #include <QPushButton>
29 #include <QVBoxLayout>
30 #include <QResizeEvent>
31 #include <QButtonGroup>
35 #include "../controller/Controller.h"
40 class SceneEditorWidget;
85 void sizeChanged(QSize newSize);
86 void undoButtonReleased();
87 void redoButtonReleased();
88 void removeSelectedObjectsButtonReleased();
89 void collisionMeshToggleButtonToggled(
bool checked);
90 void rotateManipulatorToggleButtonToggled(
bool checked);
91 void translateManipulatorToggleButtonToggled(
bool checked);
92 void editorViewerButtonGroupButtonClicked(
int id);
93 void toggleEditorViewerMode();
96 void resizeEvent(QResizeEvent* event)
override;
99 QPointer<ScenegraphWidget> sceneGraph;
100 QPointer<QPushButton> collisionMeshToggleButton;
101 QPointer<QPushButton> rotateManipulatorToggleButton;
102 QPointer<QPushButton> translateManipulatorToggleButton;
103 QPointer<QPushButton> undoButton;
104 QPointer<QPushButton> redoButton;
105 QPointer<QPushButton> removeSelectedObjectsButton;
106 QPointer<QPushButton> editorToggleButton;
107 QPointer<QPushButton> viewerToggleButton;
108 QPointer<QButtonGroup> editorViewerButtonGroup;
109 QPointer<QVBoxLayout> mainLayout;
110 QSize leftButtonsSize;
114 static const int VIEWER_BUTTON_ID = 0;
115 static const int EDITOR_BUTTON_ID = 1;
116 bool showCollisionMesh;
117 bool showTranslateManipulator;
118 bool showRotateManipulator;