17 #ifndef QmitkRenderWindowMenu_h
18 #define QmitkRenderWindowMenu_h
20 #if defined(_WIN32) || defined(__APPLE__)
21 #define QMITK_USE_EXTERNAL_RENDERWINDOW_MENU
31 #include <QPushButton>
33 #include <QToolButton>
61 Qt::WindowFlags f = 0,
71 if (m_Settings == NULL)
74 return m_Settings->isVisible();
78 void SetLayoutIndex(
unsigned int layoutIndex);
84 void UpdateLayoutDesignList(
int layoutDesignIndex);
88 #ifdef QMITK_USE_EXTERNAL_RENDERWINDOW_MENU
89 void MoveWidgetToCorrectPos(
float opacity);
91 void MoveWidgetToCorrectPos(
float );
94 void ChangeFullScreenMode(
bool state);
96 void NotifyNewWidgetPlanesMode(
int mode);
102 void CreateMenuWidget();
105 void CreateSettingsWidget();
108 void paintEvent(QPaintEvent *event);
113 void UpdateLayoutList();
116 void ChangeFullScreenIcon();
122 void SetCrossHairVisibility(
bool state);
129 void ChangeCrosshairRotationMode(
int);
132 void SignalChangeLayoutDesign(
int layoutDesign);
136 void DeferredHideMenu();
137 void DeferredShowMenu();
146 void AutoRotateNextStep();
151 void OnAutoRotationActionTriggered();
153 void enterEvent(QEvent * )
override;
154 void leaveEvent(QEvent * )
override;
155 void OnTSNumChanged(
int);
157 void OnCrosshairRotationModeSelected(QAction *);
164 void OnFullScreenButton(
bool checked);
169 void OnSettingsButton(
bool checked);
173 void OnChangeLayoutToDefault(
bool);
177 void OnChangeLayoutTo2DImagesUp(
bool);
181 void OnChangeLayoutTo2DImagesLeft(
bool);
185 void OnChangeLayoutToBig3D(
bool);
189 void OnChangeLayoutToWidget1(
bool);
193 void OnChangeLayoutToWidget2(
bool);
197 void OnChangeLayoutToWidget3(
bool);
201 void OnChangeLayoutToRowWidget3And4(
bool);
205 void OnChangeLayoutToColumnWidget3And4(
bool);
209 void OnChangeLayoutToSmallUpperWidget2Big3and4(
bool);
213 void OnChangeLayoutTo2x2Dand3DWidget(
bool);
217 void OnChangeLayoutToLeft2Dand3DRight2D(
bool);
219 void OnCrossHairMenuAboutToShow();
247 LAYOUT_LEFT2DAND3DRIGHT2D
333 QTimer m_AutoRotationTimer;
339 #endif // QmitkRenderWindowMenu_H
Organizes the rendering process.