|
|
@ -387,6 +387,7 @@ void GMainWindow::InitializeWidgets() {
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Default);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Default);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Single_Screen);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Single_Screen);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Large_Screen);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Large_Screen);
|
|
|
|
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Hybrid_Screen);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Side_by_Side);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Side_by_Side);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Separate_Windows);
|
|
|
|
actionGroup_ScreenLayouts->addAction(ui->action_Screen_Layout_Separate_Windows);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -800,6 +801,7 @@ void GMainWindow::ConnectMenuEvents() {
|
|
|
|
connect_menu(ui->action_Screen_Layout_Default, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Default, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Single_Screen, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Single_Screen, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Large_Screen, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Large_Screen, &GMainWindow::ChangeScreenLayout);
|
|
|
|
|
|
|
|
connect_menu(ui->action_Screen_Layout_Hybrid_Screen, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Side_by_Side, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Side_by_Side, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Separate_Windows, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Separate_Windows, &GMainWindow::ChangeScreenLayout);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Swap_Screens, &GMainWindow::OnSwapScreens);
|
|
|
|
connect_menu(ui->action_Screen_Layout_Swap_Screens, &GMainWindow::OnSwapScreens);
|
|
|
@ -1883,6 +1885,8 @@ void GMainWindow::ChangeScreenLayout() {
|
|
|
|
new_layout = Settings::LayoutOption::SingleScreen;
|
|
|
|
new_layout = Settings::LayoutOption::SingleScreen;
|
|
|
|
} else if (ui->action_Screen_Layout_Large_Screen->isChecked()) {
|
|
|
|
} else if (ui->action_Screen_Layout_Large_Screen->isChecked()) {
|
|
|
|
new_layout = Settings::LayoutOption::LargeScreen;
|
|
|
|
new_layout = Settings::LayoutOption::LargeScreen;
|
|
|
|
|
|
|
|
} else if (ui->action_Screen_Layout_Hybrid_Screen->isChecked()) {
|
|
|
|
|
|
|
|
new_layout = Settings::LayoutOption::HybridScreen;
|
|
|
|
} else if (ui->action_Screen_Layout_Side_by_Side->isChecked()) {
|
|
|
|
} else if (ui->action_Screen_Layout_Side_by_Side->isChecked()) {
|
|
|
|
new_layout = Settings::LayoutOption::SideScreen;
|
|
|
|
new_layout = Settings::LayoutOption::SideScreen;
|
|
|
|
} else if (ui->action_Screen_Layout_Separate_Windows->isChecked()) {
|
|
|
|
} else if (ui->action_Screen_Layout_Separate_Windows->isChecked()) {
|
|
|
@ -1902,6 +1906,8 @@ void GMainWindow::ToggleScreenLayout() {
|
|
|
|
case Settings::LayoutOption::SingleScreen:
|
|
|
|
case Settings::LayoutOption::SingleScreen:
|
|
|
|
return Settings::LayoutOption::LargeScreen;
|
|
|
|
return Settings::LayoutOption::LargeScreen;
|
|
|
|
case Settings::LayoutOption::LargeScreen:
|
|
|
|
case Settings::LayoutOption::LargeScreen:
|
|
|
|
|
|
|
|
return Settings::LayoutOption::HybridScreen;
|
|
|
|
|
|
|
|
case Settings::LayoutOption::HybridScreen:
|
|
|
|
return Settings::LayoutOption::SideScreen;
|
|
|
|
return Settings::LayoutOption::SideScreen;
|
|
|
|
case Settings::LayoutOption::SideScreen:
|
|
|
|
case Settings::LayoutOption::SideScreen:
|
|
|
|
return Settings::LayoutOption::SeparateWindows;
|
|
|
|
return Settings::LayoutOption::SeparateWindows;
|
|
|
@ -2774,6 +2780,8 @@ void GMainWindow::SyncMenuUISettings() {
|
|
|
|
Settings::LayoutOption::SingleScreen);
|
|
|
|
Settings::LayoutOption::SingleScreen);
|
|
|
|
ui->action_Screen_Layout_Large_Screen->setChecked(Settings::values.layout_option.GetValue() ==
|
|
|
|
ui->action_Screen_Layout_Large_Screen->setChecked(Settings::values.layout_option.GetValue() ==
|
|
|
|
Settings::LayoutOption::LargeScreen);
|
|
|
|
Settings::LayoutOption::LargeScreen);
|
|
|
|
|
|
|
|
ui->action_Screen_Layout_Hybrid_Screen->setChecked(Settings::values.layout_option.GetValue() ==
|
|
|
|
|
|
|
|
Settings::LayoutOption::HybridScreen);
|
|
|
|
ui->action_Screen_Layout_Side_by_Side->setChecked(Settings::values.layout_option.GetValue() ==
|
|
|
|
ui->action_Screen_Layout_Side_by_Side->setChecked(Settings::values.layout_option.GetValue() ==
|
|
|
|
Settings::LayoutOption::SideScreen);
|
|
|
|
Settings::LayoutOption::SideScreen);
|
|
|
|
ui->action_Screen_Layout_Separate_Windows->setChecked(
|
|
|
|
ui->action_Screen_Layout_Separate_Windows->setChecked(
|
|
|
|