@@ -298,9 +298,17 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
298
298
// Edit menu --------------------------------------------------------------
299
299
QMenu* pEditMenu = new QMenu ( tr ( " &Edit" ), this );
300
300
301
- pEditMenu-> addAction ( tr ( " Clear &All Stored Solo and Mute Settings" ), this , SLOT ( OnClearAllStoredSoloMuteSettings () ) );
301
+ QMenu* pFaderMenu = new QMenu ( tr ( " Stored &Fader Settings" ), this );
302
302
303
- pEditMenu->addAction ( tr ( " Set All Faders to New Client &Level" ),
303
+ pEditMenu->addMenu ( pFaderMenu );
304
+
305
+ pFaderMenu->addAction ( tr ( " Clear &All Stored Fader Settings" ), this , SLOT ( OnClearFaderAllSettings () ) );
306
+ pFaderMenu->addAction ( tr ( " Clear Stored &Level Settings" ), this , SLOT ( OnClearFaderLevelSettings () ) );
307
+ pFaderMenu->addAction ( tr ( " Clear Stored &Solo Settings" ), this , SLOT ( OnClearFaderSoloSettings () ) );
308
+ pFaderMenu->addAction ( tr ( " Clear Stored &Mute Settings" ), this , SLOT ( OnClearFaderMuteSettings () ) );
309
+ pFaderMenu->addAction ( tr ( " Clear Stored &Group ID Settings" ), this , SLOT ( OnClearFaderGroupIdSettings () ) );
310
+
311
+ pEditMenu->addAction ( tr ( " Set Current Faders to New Client &Level" ),
304
312
this ,
305
313
SLOT ( OnSetAllFadersToNewClientLevel () ),
306
314
QKeySequence ( Qt::CTRL + Qt::Key_L ) );
@@ -769,16 +777,47 @@ void CClientDlg::OnConnectDisconBut()
769
777
}
770
778
}
771
779
772
- void CClientDlg::OnClearAllStoredSoloMuteSettings ()
780
+ // if we are in an active connection, we first have to store all fader settings in
781
+ // the settings struct, clear the solo and mute states and then apply the settings again
782
+ void CClientDlg::OnClearFaderAllSettings ()
783
+ {
784
+ MainMixerBoard->StoreAllFaderSettings ();
785
+ pSettings->vecStoredFaderLevels .Reset ( false );
786
+ pSettings->vecStoredFaderLevels .Reset ( false );
787
+ pSettings->vecStoredFaderIsSolo .Reset ( false );
788
+ pSettings->vecStoredFaderIsMute .Reset ( false );
789
+ pSettings->vecStoredFaderTags .Reset ( QString () );
790
+ MainMixerBoard->LoadAllFaderSettings ();
791
+ }
792
+
793
+ void CClientDlg::OnClearFaderLevelSettings ()
794
+ {
795
+ MainMixerBoard->StoreAllFaderSettings ();
796
+ pSettings->vecStoredFaderLevels .Reset ( false );
797
+ MainMixerBoard->LoadAllFaderSettings ();
798
+ }
799
+
800
+ void CClientDlg::OnClearFaderSoloSettings ()
773
801
{
774
- // if we are in an active connection, we first have to store all fader settings in
775
- // the settings struct, clear the solo and mute states and then apply the settings again
776
802
MainMixerBoard->StoreAllFaderSettings ();
777
803
pSettings->vecStoredFaderIsSolo .Reset ( false );
804
+ MainMixerBoard->LoadAllFaderSettings ();
805
+ }
806
+
807
+ void CClientDlg::OnClearFaderMuteSettings ()
808
+ {
809
+ MainMixerBoard->StoreAllFaderSettings ();
778
810
pSettings->vecStoredFaderIsMute .Reset ( false );
779
811
MainMixerBoard->LoadAllFaderSettings ();
780
812
}
781
813
814
+ void CClientDlg::OnClearFaderGroupIdSettings ()
815
+ {
816
+ MainMixerBoard->StoreAllFaderSettings ();
817
+ pSettings->vecStoredFaderGroupID .Reset ( false );
818
+ MainMixerBoard->LoadAllFaderSettings ();
819
+ }
820
+
782
821
void CClientDlg::OnLoadChannelSetup ()
783
822
{
784
823
QString strFileName = QFileDialog::getOpenFileName ( this , tr ( " Select Channel Setup File" ), " " , QString ( " *." ) + MIX_SETTINGS_FILE_SUFFIX );
0 commit comments