moved one more settings in the settings class

This commit is contained in:
Volker Fischer 2020-07-04 20:23:00 +02:00
parent 9fe9c4c261
commit d479c09307
5 changed files with 7 additions and 7 deletions

View file

@ -31,8 +31,7 @@ CClient::CClient ( const quint16 iPortNumber,
const int iCtrlMIDIChannel, const int iCtrlMIDIChannel,
const bool bNoAutoJackConnect, const bool bNoAutoJackConnect,
const QString& strNClientName ) : const QString& strNClientName ) :
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ), ChannelInfo ( ),
ChannelInfo (),
strClientName ( strNClientName ), strClientName ( strNClientName ),
Channel ( false ), /* we need a client channel -> "false" */ Channel ( false ), /* we need a client channel -> "false" */
CurOpusEncoder ( nullptr ), CurOpusEncoder ( nullptr ),

View file

@ -278,7 +278,6 @@ public:
{ Channel.GetBufErrorRates ( vecErrRates, dLimit, dMaxUpLimit ); } { Channel.GetBufErrorRates ( vecErrRates, dLimit, dMaxUpLimit ); }
// settings // settings
CVector<QString> vstrIPAddress;
CChannelCoreInfo ChannelInfo; CChannelCoreInfo ChannelInfo;
QString strClientName; QString strClientName;

View file

@ -697,7 +697,7 @@ void CClientDlg::OnConnectDlgAccepted()
{ {
// store new address at the top of the list, if the list was already // store new address at the top of the list, if the list was already
// full, the last element is thrown out // full, the last element is thrown out
pClient->vstrIPAddress.StringFiFoWithCompare ( strSelectedAddress ); pSettings->vstrIPAddress.StringFiFoWithCompare ( strSelectedAddress );
} }
// get name to be set in audio mixer group box title // get name to be set in audio mixer group box title
@ -881,7 +881,7 @@ void CClientDlg::SetMyWindowTitle ( const int iNumClients )
void CClientDlg::ShowConnectionSetupDialog() void CClientDlg::ShowConnectionSetupDialog()
{ {
// init the connect dialog // init the connect dialog
ConnectDlg.Init ( pClient->vstrIPAddress ); ConnectDlg.Init ( pSettings->vstrIPAddress );
ConnectDlg.SetCentralServerAddress ( NetworkUtil::GetCentralServerAddress ( pClient->GetCentralServerAddressType(), ConnectDlg.SetCentralServerAddress ( NetworkUtil::GetCentralServerAddress ( pClient->GetCentralServerAddressType(),
pClient->GetServerListCentralServerAddress() ) ); pClient->GetServerListCentralServerAddress() ) );

View file

@ -221,7 +221,7 @@ void CClientSettings::ReadFromXML ( const QDomDocument& IniXMLDocument )
// IP addresses // IP addresses
for ( iIdx = 0; iIdx < MAX_NUM_SERVER_ADDR_ITEMS; iIdx++ ) for ( iIdx = 0; iIdx < MAX_NUM_SERVER_ADDR_ITEMS; iIdx++ )
{ {
pClient->vstrIPAddress[iIdx] = vstrIPAddress[iIdx] =
GetIniSetting ( IniXMLDocument, "client", GetIniSetting ( IniXMLDocument, "client",
QString ( "ipaddress%1" ).arg ( iIdx ), "" ); QString ( "ipaddress%1" ).arg ( iIdx ), "" );
} }
@ -554,7 +554,7 @@ void CClientSettings::WriteToXML ( QDomDocument& IniXMLDocument )
{ {
PutIniSetting ( IniXMLDocument, "client", PutIniSetting ( IniXMLDocument, "client",
QString ( "ipaddress%1" ).arg ( iIdx ), QString ( "ipaddress%1" ).arg ( iIdx ),
pClient->vstrIPAddress[iIdx] ); vstrIPAddress[iIdx] );
} }
// stored fader tags // stored fader tags

View file

@ -117,6 +117,7 @@ public:
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 ),
vecStoredFaderGroupID ( MAX_NUM_STORED_FADER_SETTINGS, INVALID_INDEX ), vecStoredFaderGroupID ( MAX_NUM_STORED_FADER_SETTINGS, INVALID_INDEX ),
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ),
iNewClientFaderLevel ( 100 ), iNewClientFaderLevel ( 100 ),
bConnectDlgShowAllMusicians ( true ), bConnectDlgShowAllMusicians ( true ),
vecWindowPosMain ( ), // empty array vecWindowPosMain ( ), // empty array
@ -137,6 +138,7 @@ public:
CVector<int> vecStoredFaderIsSolo; CVector<int> vecStoredFaderIsSolo;
CVector<int> vecStoredFaderIsMute; CVector<int> vecStoredFaderIsMute;
CVector<int> vecStoredFaderGroupID; CVector<int> vecStoredFaderGroupID;
CVector<QString> vstrIPAddress;
int iNewClientFaderLevel; int iNewClientFaderLevel;
bool bConnectDlgShowAllMusicians; bool bConnectDlgShowAllMusicians;