-
Notifications
You must be signed in to change notification settings - Fork 224
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
#1420 Fader Settings improvements #3151
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -298,9 +298,17 @@ CClientDlg::CClientDlg ( CClient* pNCliP, | |
// Edit menu -------------------------------------------------------------- | ||
QMenu* pEditMenu = new QMenu ( tr ( "&Edit" ), this ); | ||
|
||
pEditMenu->addAction ( tr ( "Clear &All Stored Solo and Mute Settings" ), this, SLOT ( OnClearAllStoredSoloMuteSettings() ) ); | ||
QMenu* pFaderMenu = new QMenu ( tr ( "Stored &Fader Settings" ), this ); | ||
|
||
pEditMenu->addAction ( tr ( "Set All Faders to New Client &Level" ), | ||
pEditMenu->addMenu ( pFaderMenu ); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This appears to be the first time Jamulus has used a cascading menu. Works fine on desktop devices, but do we know if it is friendly to Android and iOS? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The iconography isn't clear -- the higher level menu doesn't indicate that the first item is a sub-menu. But that's par for the course with Qt on Android. |
||
|
||
pFaderMenu->addAction ( tr ( "Clear &All Stored Fader Settings" ), this, SLOT ( OnClearFaderAllSettings() ) ); | ||
pFaderMenu->addAction ( tr ( "Clear Stored &Level Settings" ), this, SLOT ( OnClearFaderLevelSettings() ) ); | ||
pFaderMenu->addAction ( tr ( "Clear Stored &Solo Settings" ), this, SLOT ( OnClearFaderSoloSettings() ) ); | ||
pFaderMenu->addAction ( tr ( "Clear Stored &Mute Settings" ), this, SLOT ( OnClearFaderMuteSettings() ) ); | ||
pFaderMenu->addAction ( tr ( "Clear Stored &Group ID Settings" ), this, SLOT ( OnClearFaderGroupIdSettings() ) ); | ||
|
||
pEditMenu->addAction ( tr ( "Set Current Faders to New Client &Level" ), | ||
this, | ||
SLOT ( OnSetAllFadersToNewClientLevel() ), | ||
QKeySequence ( Qt::CTRL + Qt::Key_L ) ); | ||
|
@@ -769,16 +777,47 @@ void CClientDlg::OnConnectDisconBut() | |
} | ||
} | ||
|
||
void CClientDlg::OnClearAllStoredSoloMuteSettings() | ||
// if we are in an active connection, we first have to store all fader settings in | ||
// the settings struct, clear the solo and mute states and then apply the settings again | ||
void CClientDlg::OnClearFaderAllSettings() | ||
{ | ||
MainMixerBoard->StoreAllFaderSettings(); | ||
pSettings->vecStoredFaderLevels.Reset ( false ); | ||
pSettings->vecStoredFaderLevels.Reset ( false ); | ||
pSettings->vecStoredFaderIsSolo.Reset ( false ); | ||
pSettings->vecStoredFaderIsMute.Reset ( false ); | ||
pSettings->vecStoredFaderTags.Reset ( QString() ); | ||
MainMixerBoard->LoadAllFaderSettings(); | ||
} | ||
|
||
void CClientDlg::OnClearFaderLevelSettings() | ||
{ | ||
MainMixerBoard->StoreAllFaderSettings(); | ||
pSettings->vecStoredFaderLevels.Reset ( false ); | ||
MainMixerBoard->LoadAllFaderSettings(); | ||
} | ||
|
||
void CClientDlg::OnClearFaderSoloSettings() | ||
{ | ||
// if we are in an active connection, we first have to store all fader settings in | ||
// the settings struct, clear the solo and mute states and then apply the settings again | ||
MainMixerBoard->StoreAllFaderSettings(); | ||
pSettings->vecStoredFaderIsSolo.Reset ( false ); | ||
MainMixerBoard->LoadAllFaderSettings(); | ||
} | ||
|
||
void CClientDlg::OnClearFaderMuteSettings() | ||
{ | ||
MainMixerBoard->StoreAllFaderSettings(); | ||
pSettings->vecStoredFaderIsMute.Reset ( false ); | ||
MainMixerBoard->LoadAllFaderSettings(); | ||
} | ||
|
||
void CClientDlg::OnClearFaderGroupIdSettings() | ||
{ | ||
MainMixerBoard->StoreAllFaderSettings(); | ||
pSettings->vecStoredFaderGroupID.Reset ( false ); | ||
MainMixerBoard->LoadAllFaderSettings(); | ||
} | ||
|
||
void CClientDlg::OnLoadChannelSetup() | ||
{ | ||
QString strFileName = QFileDialog::getOpenFileName ( this, tr ( "Select Channel Setup File" ), "", QString ( "*." ) + MIX_SETTINGS_FILE_SUFFIX ); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
&F
is already used in the same menu forAuto-Adjust all &Faders