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
|
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
|
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 ),
|
vecStoredFaderIsSolo ( MAX_NUM_STORED_FADER_SETTINGS, false ),
|
||||||
vecStoredFaderIsMute ( MAX_NUM_STORED_FADER_SETTINGS, false ),
|
vecStoredFaderIsMute ( MAX_NUM_STORED_FADER_SETTINGS, false ),
|
||||||
iNewClientFaderLevel ( 100 ),
|
iNewClientFaderLevel ( 100 ),
|
||||||
|
bConnectDlgShowAllMusicians ( true ),
|
||||||
vecWindowPosMain (), // empty array
|
vecWindowPosMain (), // empty array
|
||||||
vecWindowPosSettings (), // empty array
|
vecWindowPosSettings (), // empty array
|
||||||
vecWindowPosChat (), // empty array
|
vecWindowPosChat (), // empty array
|
||||||
|
|
|
@ -281,6 +281,7 @@ public:
|
||||||
CVector<int> vecStoredFaderIsSolo;
|
CVector<int> vecStoredFaderIsSolo;
|
||||||
CVector<int> vecStoredFaderIsMute;
|
CVector<int> vecStoredFaderIsMute;
|
||||||
int iNewClientFaderLevel;
|
int iNewClientFaderLevel;
|
||||||
|
bool bConnectDlgShowAllMusicians;
|
||||||
|
|
||||||
// window position/state settings
|
// window position/state settings
|
||||||
QByteArray vecWindowPosMain;
|
QByteArray vecWindowPosMain;
|
||||||
|
|
|
@ -210,14 +210,12 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
ledBuffers->Reset();
|
ledBuffers->Reset();
|
||||||
ledDelay->Reset();
|
ledDelay->Reset();
|
||||||
|
|
||||||
|
// init audio in fader
|
||||||
// init slider controls ---
|
|
||||||
// audio in fader
|
|
||||||
sldAudioPan->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
sldAudioPan->setRange ( AUD_FADER_IN_MIN, AUD_FADER_IN_MAX );
|
||||||
sldAudioPan->setTickInterval ( AUD_FADER_IN_MAX / 5 );
|
sldAudioPan->setTickInterval ( AUD_FADER_IN_MAX / 5 );
|
||||||
UpdateAudioFaderSlider();
|
UpdateAudioFaderSlider();
|
||||||
|
|
||||||
// audio reverberation
|
// init audio reverberation
|
||||||
sldAudioReverb->setRange ( 0, AUD_REVERB_MAX );
|
sldAudioReverb->setRange ( 0, AUD_REVERB_MAX );
|
||||||
const int iCurAudReverb = pClient->GetReverbLevel();
|
const int iCurAudReverb = pClient->GetReverbLevel();
|
||||||
sldAudioReverb->setValue ( iCurAudReverb );
|
sldAudioReverb->setValue ( iCurAudReverb );
|
||||||
|
@ -226,6 +224,9 @@ CClientDlg::CClientDlg ( CClient* pNCliP,
|
||||||
// init reverb channel
|
// init reverb channel
|
||||||
UpdateRevSelection();
|
UpdateRevSelection();
|
||||||
|
|
||||||
|
// init connect dialog
|
||||||
|
ConnectDlg.SetShowAllMusicians ( pClient->bConnectDlgShowAllMusicians );
|
||||||
|
|
||||||
// set window title (with no clients connected -> "0")
|
// set window title (with no clients connected -> "0")
|
||||||
SetMyWindowTitle ( 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
|
// 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
|
// 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();
|
MainMixerBoard->HideAll();
|
||||||
pClient->vecStoredFaderTags = MainMixerBoard->vecStoredFaderTags;
|
pClient->vecStoredFaderTags = MainMixerBoard->vecStoredFaderTags;
|
||||||
pClient->vecStoredFaderLevels = MainMixerBoard->vecStoredFaderLevels;
|
pClient->vecStoredFaderLevels = MainMixerBoard->vecStoredFaderLevels;
|
||||||
pClient->vecStoredFaderIsSolo = MainMixerBoard->vecStoredFaderIsSolo;
|
pClient->vecStoredFaderIsSolo = MainMixerBoard->vecStoredFaderIsSolo;
|
||||||
pClient->vecStoredFaderIsMute = MainMixerBoard->vecStoredFaderIsMute;
|
pClient->vecStoredFaderIsMute = MainMixerBoard->vecStoredFaderIsMute;
|
||||||
pClient->iNewClientFaderLevel = MainMixerBoard->iNewClientFaderLevel;
|
pClient->iNewClientFaderLevel = MainMixerBoard->iNewClientFaderLevel;
|
||||||
|
pClient->bConnectDlgShowAllMusicians = ConnectDlg.GetShowAllMusicians();
|
||||||
|
|
||||||
// default implementation of this event handler routine
|
// default implementation of this event handler routine
|
||||||
Event->accept();
|
Event->accept();
|
||||||
|
|
|
@ -220,9 +220,6 @@ void CConnectDlg::RequestServerList()
|
||||||
// clear filter edit box
|
// clear filter edit box
|
||||||
edtFilter->setText ( "" );
|
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
|
// get the IP address of the central server (using the ParseNetworAddress
|
||||||
// function) when the connect dialog is opened, this seems to be the correct
|
// function) when the connect dialog is opened, this seems to be the correct
|
||||||
// time to do it
|
// time to do it
|
||||||
|
@ -516,6 +513,7 @@ void CConnectDlg::ShowAllMusicians ( const bool bState )
|
||||||
{
|
{
|
||||||
bShowAllMusicians = bState;
|
bShowAllMusicians = bState;
|
||||||
|
|
||||||
|
// update list
|
||||||
if ( bState )
|
if ( bState )
|
||||||
{
|
{
|
||||||
lvwServers->expandAll();
|
lvwServers->expandAll();
|
||||||
|
@ -524,6 +522,13 @@ void CConnectDlg::ShowAllMusicians ( const bool bState )
|
||||||
{
|
{
|
||||||
lvwServers->collapseAll();
|
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()
|
void CConnectDlg::UpdateListFilter()
|
||||||
|
|
|
@ -54,6 +54,9 @@ public:
|
||||||
void Init ( const CVector<QString>& vstrIPAddresses );
|
void Init ( const CVector<QString>& vstrIPAddresses );
|
||||||
void SetCentralServerAddress ( const QString strNewCentralServerAddr ) { strCentralServerAddress = strNewCentralServerAddr; }
|
void SetCentralServerAddress ( const QString strNewCentralServerAddr ) { strCentralServerAddress = strNewCentralServerAddr; }
|
||||||
|
|
||||||
|
void SetShowAllMusicians ( const bool bState ) { ShowAllMusicians ( bState ); }
|
||||||
|
bool GetShowAllMusicians() { return bShowAllMusicians; }
|
||||||
|
|
||||||
void SetServerList ( const CHostAddress& InetAddr,
|
void SetServerList ( const CHostAddress& InetAddr,
|
||||||
const CVector<CServerInfo>& vecServerInfo );
|
const CVector<CServerInfo>& vecServerInfo );
|
||||||
|
|
||||||
|
|
|
@ -106,6 +106,12 @@ void CSettings::Load()
|
||||||
pClient->iNewClientFaderLevel = iValue;
|
pClient->iNewClientFaderLevel = iValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// connect dialog show all musicians
|
||||||
|
if ( GetFlagIniSet ( IniXMLDocument, "client", "connectdlgshowallmusicians", bValue ) )
|
||||||
|
{
|
||||||
|
pClient->bConnectDlgShowAllMusicians = bValue;
|
||||||
|
}
|
||||||
|
|
||||||
// name
|
// name
|
||||||
pClient->ChannelInfo.strName = FromBase64ToString (
|
pClient->ChannelInfo.strName = FromBase64ToString (
|
||||||
GetIniSetting ( IniXMLDocument, "client", "name_base64" ) );
|
GetIniSetting ( IniXMLDocument, "client", "name_base64" ) );
|
||||||
|
@ -469,6 +475,10 @@ void CSettings::Save()
|
||||||
SetNumericIniSet ( IniXMLDocument, "client", "newclientlevel",
|
SetNumericIniSet ( IniXMLDocument, "client", "newclientlevel",
|
||||||
pClient->iNewClientFaderLevel );
|
pClient->iNewClientFaderLevel );
|
||||||
|
|
||||||
|
// connect dialog show all musicians
|
||||||
|
SetFlagIniSet ( IniXMLDocument, "client", "connectdlgshowallmusicians",
|
||||||
|
pClient->bConnectDlgShowAllMusicians );
|
||||||
|
|
||||||
// name
|
// name
|
||||||
PutIniSetting ( IniXMLDocument, "client", "name_base64",
|
PutIniSetting ( IniXMLDocument, "client", "name_base64",
|
||||||
ToBase64 ( pClient->ChannelInfo.strName ) );
|
ToBase64 ( pClient->ChannelInfo.strName ) );
|
||||||
|
|
Loading…
Reference in a new issue