improve menus
Some checks are pending
Generate Translation Template / Generate Translation Template (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux-aarch64.sh, gcc, rpcs3/rpcs3-ci-jammy-aarch64:1.7, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (/rpcs3/.ci/build-linux.sh, gcc, rpcs3/rpcs3-ci-jammy:1.7, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (a1d35836e8d45bfc6f63c26f0a3e5d46ef622fe1, rpcs3/rpcs3-binaries-linux-arm64, /rpcs3/.ci/build-linux-aarch64.sh, clang, rpcs3/rpcs3-ci-jammy-aarch64:1.7, ubuntu-24.04-arm) (push) Waiting to run
Build RPCS3 / RPCS3 Linux ${{ matrix.os }} ${{ matrix.compiler }} (d812f1254a1157c80fd402f94446310560f54e5f, rpcs3/rpcs3-binaries-linux, /rpcs3/.ci/build-linux.sh, clang, rpcs3/rpcs3-ci-jammy:1.7, ubuntu-24.04) (push) Waiting to run
Build RPCS3 / RPCS3 Mac ${{ matrix.name }} (51ae32f468089a8169aaf1567de355ff4a3e0842, rpcs3/rpcs3-binaries-mac, .ci/build-mac.sh, Intel) (push) Waiting to run
Build RPCS3 / RPCS3 Mac ${{ matrix.name }} (8e21bdbc40711a3fccd18fbf17b742348b0f4281, rpcs3/rpcs3-binaries-mac-arm64, .ci/build-mac-arm64.sh, Apple Silicon) (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Build RPCS3 / RPCS3 Windows Clang (win64, clang, clang64) (push) Waiting to run
Build RPCS3 / RPCS3 FreeBSD (push) Waiting to run

This commit is contained in:
digant73 2025-12-30 13:42:29 +01:00 committed by Megamouse
parent 4feb876b7f
commit d929596b0f
3 changed files with 55 additions and 46 deletions

View file

@ -2460,8 +2460,8 @@ void main_window::CreateActions()
m_icon_size_act_group->addAction(ui->setIconSizeLargeAct);
m_list_mode_act_group = new QActionGroup(this);
m_list_mode_act_group->addAction(ui->setlistModeListAct);
m_list_mode_act_group->addAction(ui->setlistModeGridAct);
m_list_mode_act_group->addAction(ui->setListModeAct);
m_list_mode_act_group->addAction(ui->setGridModeAct);
}
void main_window::CreateConnects()
@ -2924,7 +2924,7 @@ void main_window::CreateConnects()
QMessageBox::critical(this, tr("Error: Emulation Running"), tr("You need to stop the emulator before editing Clans connection information!"), QMessageBox::Ok);
return;
}
clans_settings_dialog dlg(this);
dlg.exec();
});
@ -3335,7 +3335,7 @@ void main_window::CreateConnects()
connect(m_list_mode_act_group, &QActionGroup::triggered, this, [this](QAction* act)
{
const bool is_list_act = act == ui->setlistModeListAct;
const bool is_list_act = act == ui->setListModeAct;
if (is_list_act == m_is_list_mode)
return;
@ -3373,11 +3373,11 @@ void main_window::CreateConnects()
}
});
connect(ui->toolbar_controls, &QAction::triggered, this, open_pad_settings);
connect(ui->toolbar_config, &QAction::triggered, this, [=]() { open_settings(0); });
connect(ui->toolbar_list, &QAction::triggered, this, [this]() { ui->setlistModeListAct->trigger(); });
connect(ui->toolbar_grid, &QAction::triggered, this, [this]() { ui->setlistModeGridAct->trigger(); });
connect(ui->toolbar_controls, &QAction::triggered, this, open_pad_settings);
connect(ui->toolbar_rpcn, &QAction::triggered, this, open_rpcn_settings);
connect(ui->toolbar_list, &QAction::triggered, this, [this]() { ui->setListModeAct->trigger(); });
connect(ui->toolbar_grid, &QAction::triggered, this, [this]() { ui->setGridModeAct->trigger(); });
connect(ui->sizeSlider, &QSlider::valueChanged, this, &main_window::ResizeIcons);
connect(ui->sizeSlider, &QSlider::sliderReleased, this, [this]
@ -3627,9 +3627,9 @@ void main_window::ConfigureGuiFromSettings()
// handle icon size options
if (m_is_list_mode)
ui->setlistModeListAct->setChecked(true);
ui->setListModeAct->setChecked(true);
else
ui->setlistModeGridAct->setChecked(true);
ui->setGridModeAct->setChecked(true);
const int icon_size_index = m_gui_settings->GetValue(m_is_list_mode ? gui::gl_iconSize : gui::gl_iconSizeGrid).toInt();
m_other_slider_pos = m_gui_settings->GetValue(!m_is_list_mode ? gui::gl_iconSize : gui::gl_iconSizeGrid).toInt();

View file

@ -218,7 +218,6 @@
<addaction name="bootRecentMenu"/>
<addaction name="separator"/>
<addaction name="addGamesAct"/>
<addaction name="separator"/>
<addaction name="bootInstallPkgAct"/>
<addaction name="bootInstallPupAct"/>
<addaction name="separator"/>
@ -243,9 +242,25 @@
<property name="title">
<string>Configuration</string>
</property>
<widget class="QMenu" name="menuEmulatedPads">
<widget class="QMenu" name="menuMice">
<property name="title">
<string>USB Devices</string>
<string>Mice</string>
</property>
<addaction name="actionBasic_Mouse"/>
<addaction name="actionRaw_Mouse"/>
</widget>
<widget class="QMenu" name="menuDevices">
<property name="title">
<string>Devices</string>
</property>
<addaction name="confPadsAct"/>
<addaction name="menuMice"/>
<addaction name="confCamerasAct"/>
<addaction name="actionPS_Move_Tracker"/>
</widget>
<widget class="QMenu" name="menuEmulatedDevices">
<property name="title">
<string>Emulated Devices</string>
</property>
<addaction name="confBuzzAct"/>
<addaction name="confGHLtarAct"/>
@ -259,21 +274,8 @@
<addaction name="confTopShotFearmasterAct"/>
<addaction name="confLogitechG27Act"/>
</widget>
<widget class="QMenu" name="menuMice">
<property name="title">
<string>Mice</string>
</property>
<addaction name="actionBasic_Mouse"/>
<addaction name="actionRaw_Mouse"/>
</widget>
<addaction name="confCPUAct"/>
<addaction name="confGPUAct"/>
<addaction name="separator"/>
<addaction name="confPadsAct"/>
<addaction name="menuMice"/>
<addaction name="menuEmulatedPads"/>
<addaction name="confCamerasAct"/>
<addaction name="actionPS_Move_Tracker"/>
<addaction name="confAudioAct"/>
<addaction name="confIOAct"/>
<addaction name="confSystemAct"/>
@ -282,6 +284,9 @@
<addaction name="confEmuAct"/>
<addaction name="confGuiAct"/>
<addaction name="separator"/>
<addaction name="menuDevices"/>
<addaction name="menuEmulatedDevices"/>
<addaction name="separator"/>
<addaction name="confShortcutsAct"/>
<addaction name="actionManage_SoundEffects"/>
<addaction name="separator"/>
@ -368,12 +373,18 @@
<addaction name="showCustomIconsAct"/>
<addaction name="playHoverGifsAct"/>
</widget>
<widget class="QMenu" name="menuGame_List_Mode">
<widget class="QMenu" name="menuGame_List_View">
<property name="title">
<string>Game List Mode</string>
<string>Game List View</string>
</property>
<addaction name="setlistModeListAct"/>
<addaction name="setlistModeGridAct"/>
<addaction name="setListModeAct"/>
<addaction name="setGridModeAct"/>
</widget>
<widget class="QMenu" name="menuGame_List_Grid_Mode">
<property name="title">
<string>Game List in Grid Mode</string>
</property>
<addaction name="showCompatibilityInGridAct"/>
</widget>
<widget class="QMenu" name="menuGame_Categories">
<property name="title">
@ -398,15 +409,14 @@
<addaction name="showToolBarAct"/>
<addaction name="separator"/>
<addaction name="showGameListAct"/>
<addaction name="separator"/>
<addaction name="showHiddenEntriesAct"/>
<addaction name="separator"/>
<addaction name="showCompatibilityInGridAct"/>
<addaction name="separator"/>
<addaction name="refreshGameListAct"/>
<addaction name="menuGame_List_Mode"/>
<addaction name="menuGame_List_View"/>
<addaction name="menuGame_List_Grid_Mode"/>
<addaction name="menuGame_List_Icons"/>
<addaction name="menuGame_Categories"/>
<addaction name="separator"/>
<addaction name="refreshGameListAct"/>
</widget>
<widget class="QMenu" name="menuHelp">
<property name="title">
@ -418,11 +428,10 @@
</property>
<addaction name="languageAct0"/>
</widget>
<addaction name="updateAct"/>
<addaction name="welcomeAct"/>
<addaction name="separator"/>
<addaction name="languageMenu"/>
<addaction name="separator"/>
<addaction name="updateAct"/>
<addaction name="welcomeAct"/>
<addaction name="supportAct"/>
<addaction name="separator"/>
<addaction name="aboutAct"/>
@ -661,7 +670,7 @@
</action>
<action name="exitAndSaveLogAct">
<property name="text">
<string>Exit And Save Log</string>
<string>Exit and Save Log</string>
</property>
<property name="toolTip">
<string>Exit RPCS3, move the log file to a custom location</string>
@ -818,12 +827,12 @@
<bool>true</bool>
</property>
<property name="text">
<string>Show Game Compatibility in Grid Mode</string>
<string>Show Game Compatibility</string>
</property>
</action>
<action name="refreshGameListAct">
<property name="text">
<string>Game List Refresh</string>
<string>Refresh Game List</string>
</property>
</action>
<action name="actionManage_RAP_Licenses">
@ -841,7 +850,7 @@
</action>
<action name="welcomeAct">
<property name="text">
<string>View The Welcome Dialog</string>
<string>View Welcome Dialog</string>
</property>
</action>
<action name="confVFSDialogAct">
@ -897,7 +906,7 @@
<string>Large</string>
</property>
</action>
<action name="setlistModeListAct">
<action name="setListModeAct">
<property name="checkable">
<bool>true</bool>
</property>
@ -905,15 +914,15 @@
<bool>true</bool>
</property>
<property name="text">
<string>List View</string>
<string>List Mode</string>
</property>
</action>
<action name="setlistModeGridAct">
<action name="setGridModeAct">
<property name="checkable">
<bool>true</bool>
</property>
<property name="text">
<string>Grid View</string>
<string>Grid Mode</string>
</property>
</action>
<action name="sysRebootAct">

View file

@ -17,7 +17,7 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Dialog</string>
<string>PS Move Tracker Settings</string>
</property>
<layout class="QVBoxLayout" name="main_layout" stretch="0,0">
<item>