store Show All Musicians setting in the ini-file
This commit is contained in:
parent
6b1dac7ac8
commit
a4350f4f17
7 changed files with 37 additions and 14 deletions
|
@ -3,7 +3,8 @@
|
|||
|
||||
3.5.2git
|
||||
|
||||
TODO store Show All Musicians setting in the ini-file
|
||||
* store Show All Musicians setting in the ini-file
|
||||
|
||||
|
||||
TODO if you select server list filter all text and delete, the filter is not updated
|
||||
|
||||
|
|
|
@ -37,6 +37,7 @@ CClient::CClient ( const quint16 iPortNumber,
|
|||
vecStoredFaderIsSolo ( MAX_NUM_STORED_FADER_SETTINGS, false ),
|
||||
vecStoredFaderIsMute ( MAX_NUM_STORED_FADER_SETTINGS, false ),
|
||||
iNewClientFaderLevel ( 100 ),
|
||||
bConnectDlgShowAllMusicians ( true ),
|
||||
vecWindowPosMain (), // empty array
|
||||
vecWindowPosSettings (), // empty array
|
||||
vecWindowPosChat (), // empty array
|
||||
|
|
|
@ -281,6 +281,7 @@ public:
|
|||
CVector<int> vecStoredFaderIsSolo;
|
||||
CVector<int> vecStoredFaderIsMute;
|
||||
int iNewClientFaderLevel;
|
||||
bool bConnectDlgShowAllMusicians;
|
||||
|
||||
// window position/state settings
|
||||
QByteArray vecWindowPosMain;
|
||||
|
|
|
@ -210,14 +210,12 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
|||
ledBuffers->Reset();
|
||||
ledDelay->Reset();
|
||||
|
||||
|
||||
// init slider controls ---
|
||||
// audio in fader
|
||||
// init audio in fader
|
||||
sldAudioPan->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
||||
sldAudioPan->setTickInterval ( AUD_FADER_IN_MAX / 5 );
|
||||
UpdateAudioFaderSlider();
|
||||
|
||||
// audio reverberation
|
||||
// init audio reverberation
|
||||
sldAudioReverb->setRange ( 0, AUD_REVERB_MAX );
|
||||
const int iCurAudReverb = pClient->GetReverbLevel();
|
||||
sldAudioReverb->setValue ( iCurAudReverb );
|
||||
|
@ -226,6 +224,9 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
|||
// init reverb channel
|
||||
UpdateRevSelection();
|
||||
|
||||
// init connect dialog
|
||||
ConnectDlg.SetShowAllMusicians ( pClient->bConnectDlgShowAllMusicians );
|
||||
|
||||
// set window title (with no clients connected -> "0")
|
||||
SetMyWindowTitle ( 0 );
|
||||
|
||||
|
@ -579,13 +580,14 @@ void CClientDlg::closeEvent ( QCloseEvent* Event )
|
|||
|
||||
// store mixer fader settings (we have to hide all mixer faders first to
|
||||
// initiate a storage of the current mixer fader levels in case we are
|
||||
// just in a connected state)
|
||||
// just in a connected state) and other settings
|
||||
MainMixerBoard->HideAll();
|
||||
pClient->vecStoredFaderTags = MainMixerBoard->vecStoredFaderTags;
|
||||
pClient->vecStoredFaderLevels = MainMixerBoard->vecStoredFaderLevels;
|
||||
pClient->vecStoredFaderIsSolo = MainMixerBoard->vecStoredFaderIsSolo;
|
||||
pClient->vecStoredFaderIsMute = MainMixerBoard->vecStoredFaderIsMute;
|
||||
pClient->iNewClientFaderLevel = MainMixerBoard->iNewClientFaderLevel;
|
||||
pClient->vecStoredFaderTags = MainMixerBoard->vecStoredFaderTags;
|
||||
pClient->vecStoredFaderLevels = MainMixerBoard->vecStoredFaderLevels;
|
||||
pClient->vecStoredFaderIsSolo = MainMixerBoard->vecStoredFaderIsSolo;
|
||||
pClient->vecStoredFaderIsMute = MainMixerBoard->vecStoredFaderIsMute;
|
||||
pClient->iNewClientFaderLevel = MainMixerBoard->iNewClientFaderLevel;
|
||||
pClient->bConnectDlgShowAllMusicians = ConnectDlg.GetShowAllMusicians();
|
||||
|
||||
// default implementation of this event handler routine
|
||||
Event->accept();
|
||||
|
|
|
@ -220,9 +220,6 @@ void CConnectDlg::RequestServerList()
|
|||
// clear filter edit box
|
||||
edtFilter->setText ( "" );
|
||||
|
||||
// update Show All Musicians check box (this will call ShowAllMusicians())
|
||||
chbExpandAll->setCheckState ( bShowAllMusicians ? Qt::Checked : Qt::Unchecked );
|
||||
|
||||
// get the IP address of the central server (using the ParseNetworAddress
|
||||
// function) when the connect dialog is opened, this seems to be the correct
|
||||
// time to do it
|
||||
|
@ -516,6 +513,7 @@ void CConnectDlg::ShowAllMusicians ( const bool bState )
|
|||
{
|
||||
bShowAllMusicians = bState;
|
||||
|
||||
// update list
|
||||
if ( bState )
|
||||
{
|
||||
lvwServers->expandAll();
|
||||
|
@ -524,6 +522,13 @@ void CConnectDlg::ShowAllMusicians ( const bool bState )
|
|||
{
|
||||
lvwServers->collapseAll();
|
||||
}
|
||||
|
||||
// update check box if necessary
|
||||
if ( ( chbExpandAll->checkState() == Qt::Checked && !bShowAllMusicians ) ||
|
||||
( chbExpandAll->checkState() == Qt::Unchecked && bShowAllMusicians ) )
|
||||
{
|
||||
chbExpandAll->setCheckState ( bState ? Qt::Checked : Qt::Unchecked );
|
||||
}
|
||||
}
|
||||
|
||||
void CConnectDlg::UpdateListFilter()
|
||||
|
|
|
@ -54,6 +54,9 @@ public:
|
|||
void Init ( const CVector<QString>& vstrIPAddresses );
|
||||
void SetCentralServerAddress ( const QString strNewCentralServerAddr ) { strCentralServerAddress = strNewCentralServerAddr; }
|
||||
|
||||
void SetShowAllMusicians ( const bool bState ) { ShowAllMusicians ( bState ); }
|
||||
bool GetShowAllMusicians() { return bShowAllMusicians; }
|
||||
|
||||
void SetServerList ( const CHostAddress& InetAddr,
|
||||
const CVector<CServerInfo>& vecServerInfo );
|
||||
|
||||
|
|
|
@ -106,6 +106,12 @@ void CSettings::Load()
|
|||
pClient->iNewClientFaderLevel = iValue;
|
||||
}
|
||||
|
||||
// connect dialog show all musicians
|
||||
if ( GetFlagIniSet ( IniXMLDocument, "client", "connectdlgshowallmusicians", bValue ) )
|
||||
{
|
||||
pClient->bConnectDlgShowAllMusicians = bValue;
|
||||
}
|
||||
|
||||
// name
|
||||
pClient->ChannelInfo.strName = FromBase64ToString (
|
||||
GetIniSetting ( IniXMLDocument, "client", "name_base64" ) );
|
||||
|
@ -469,6 +475,10 @@ void CSettings::Save()
|
|||
SetNumericIniSet ( IniXMLDocument, "client", "newclientlevel",
|
||||
pClient->iNewClientFaderLevel );
|
||||
|
||||
// connect dialog show all musicians
|
||||
SetFlagIniSet ( IniXMLDocument, "client", "connectdlgshowallmusicians",
|
||||
pClient->bConnectDlgShowAllMusicians );
|
||||
|
||||
// name
|
||||
PutIniSetting ( IniXMLDocument, "client", "name_base64",
|
||||
ToBase64 ( pClient->ChannelInfo.strName ) );
|
||||
|
|
Loading…
Reference in a new issue