| 277 | } |
| 278 | |
| 279 | void QmitkRenderWindowMenu::CreateSettingsWidget() |
| 280 | { |
| 281 | m_LayoutActionsMenu = new QMenu(this); |
| 282 | |
| 283 | m_DefaultLayoutAction = new QAction("Standard layout", m_LayoutActionsMenu); |
| 284 | m_DefaultLayoutAction->setDisabled(true); |
| 285 | |
| 286 | m_All2DTop3DBottomLayoutAction = new QAction("All 2D top, 3D bottom", m_LayoutActionsMenu); |
| 287 | m_All2DTop3DBottomLayoutAction->setDisabled(false); |
| 288 | |
| 289 | m_All2DLeft3DRightLayoutAction = new QAction("All 2D left, 3D right", m_LayoutActionsMenu); |
| 290 | m_All2DLeft3DRightLayoutAction->setDisabled(false); |
| 291 | |
| 292 | m_OneBigLayoutAction = new QAction("This big", m_LayoutActionsMenu); |
| 293 | m_OneBigLayoutAction->setDisabled(false); |
| 294 | |
| 295 | m_Only2DHorizontalLayoutAction = new QAction("Only 2D horizontal", m_LayoutActionsMenu); |
| 296 | m_Only2DHorizontalLayoutAction->setDisabled(false); |
| 297 | |
| 298 | m_Only2DVerticalLayoutAction = new QAction("Only 2D vertical", m_LayoutActionsMenu); |
| 299 | m_Only2DVerticalLayoutAction->setDisabled(false); |
| 300 | |
| 301 | m_OneTop3DBottomLayoutAction = new QAction("This top, 3D bottom", m_LayoutActionsMenu); |
| 302 | m_OneTop3DBottomLayoutAction->setDisabled(false); |
| 303 | |
| 304 | m_OneLeft3DRightLayoutAction = new QAction("This left, 3D right", m_LayoutActionsMenu); |
| 305 | m_OneLeft3DRightLayoutAction->setDisabled(false); |
| 306 | |
| 307 | m_AllHorizontalLayoutAction = new QAction("All horizontal", m_LayoutActionsMenu); |
| 308 | m_AllHorizontalLayoutAction->setDisabled(false); |
| 309 | |
| 310 | m_AllVerticalLayoutAction = new QAction("All vertical", m_LayoutActionsMenu); |
| 311 | m_AllVerticalLayoutAction->setDisabled(false); |
| 312 | |
| 313 | m_RemoveOneLayoutAction = new QAction("Remove this", m_LayoutActionsMenu); |
| 314 | m_RemoveOneLayoutAction->setDisabled(false); |
| 315 | |
| 316 | m_LayoutActionsMenu->addAction(m_DefaultLayoutAction); |
| 317 | m_LayoutActionsMenu->addAction(m_All2DTop3DBottomLayoutAction); |
| 318 | m_LayoutActionsMenu->addAction(m_All2DLeft3DRightLayoutAction); |
| 319 | m_LayoutActionsMenu->addAction(m_OneBigLayoutAction); |
| 320 | m_LayoutActionsMenu->addAction(m_Only2DHorizontalLayoutAction); |
| 321 | m_LayoutActionsMenu->addAction(m_Only2DVerticalLayoutAction); |
| 322 | m_LayoutActionsMenu->addAction(m_OneTop3DBottomLayoutAction); |
| 323 | m_LayoutActionsMenu->addAction(m_OneLeft3DRightLayoutAction); |
| 324 | m_LayoutActionsMenu->addAction(m_AllHorizontalLayoutAction); |
| 325 | m_LayoutActionsMenu->addAction(m_AllVerticalLayoutAction); |
| 326 | m_LayoutActionsMenu->addAction(m_RemoveOneLayoutAction); |
| 327 | |
| 328 | m_LayoutActionsMenu->setVisible(false); |
| 329 | |
| 330 | connect(m_DefaultLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::DEFAULT); }); |
| 331 | connect(m_All2DTop3DBottomLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ALL_2D_TOP_3D_BOTTOM); }); |
| 332 | connect(m_All2DLeft3DRightLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ALL_2D_LEFT_3D_RIGHT); }); |
| 333 | connect(m_OneBigLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ONE_BIG); }); |
| 334 | connect(m_Only2DHorizontalLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ONLY_2D_HORIZONTAL); }); |
| 335 | connect(m_Only2DVerticalLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ONLY_2D_VERTICAL); }); |
| 336 | connect(m_OneTop3DBottomLayoutAction, &QAction::triggered, [this]() { this->OnSetLayout(LayoutDesign::ONE_TOP_3D_BOTTOM); }); |
nothing calls this directly
no test coverage detected