store some profile settings and also the window position of the profile window
This commit is contained in:
parent
88eed0d627
commit
1ed74b44e2
1 changed files with 37 additions and 0 deletions
|
@ -119,6 +119,17 @@ void CSettings::Load()
|
||||||
pClient->ChannelInfo.eCountry = QLocale::system().country();
|
pClient->ChannelInfo.eCountry = QLocale::system().country();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// city
|
||||||
|
pClient->ChannelInfo.strCity = FromBase64ToString (
|
||||||
|
GetIniSetting ( IniXMLDocument, "client", "city_base64" ) );
|
||||||
|
|
||||||
|
// skill level
|
||||||
|
if ( GetNumericIniSet ( IniXMLDocument, "client", "skill",
|
||||||
|
0, 3 /* SL_PROFESSIONAL */, iValue ) )
|
||||||
|
{
|
||||||
|
pClient->ChannelInfo.eSkillLevel = static_cast<ESkillLevel> ( iValue );
|
||||||
|
}
|
||||||
|
|
||||||
// audio fader
|
// audio fader
|
||||||
if ( GetNumericIniSet ( IniXMLDocument, "client", "audfad",
|
if ( GetNumericIniSet ( IniXMLDocument, "client", "audfad",
|
||||||
AUD_FADER_IN_MIN, AUD_FADER_IN_MAX, iValue ) )
|
AUD_FADER_IN_MIN, AUD_FADER_IN_MAX, iValue ) )
|
||||||
|
@ -265,6 +276,10 @@ void CSettings::Load()
|
||||||
pClient->vecWindowPosChat = FromBase64ToByteArray (
|
pClient->vecWindowPosChat = FromBase64ToByteArray (
|
||||||
GetIniSetting ( IniXMLDocument, "client", "winposchat_base64" ) );
|
GetIniSetting ( IniXMLDocument, "client", "winposchat_base64" ) );
|
||||||
|
|
||||||
|
// window position of the musician profile window
|
||||||
|
pClient->vecWindowPosProfile = FromBase64ToByteArray (
|
||||||
|
GetIniSetting ( IniXMLDocument, "client", "winposprofile_base64" ) );
|
||||||
|
|
||||||
// window position of the connect window
|
// window position of the connect window
|
||||||
pClient->vecWindowPosConnect = FromBase64ToByteArray (
|
pClient->vecWindowPosConnect = FromBase64ToByteArray (
|
||||||
GetIniSetting ( IniXMLDocument, "client", "winposcon_base64" ) );
|
GetIniSetting ( IniXMLDocument, "client", "winposcon_base64" ) );
|
||||||
|
@ -281,6 +296,12 @@ void CSettings::Load()
|
||||||
pClient->bWindowWasShownChat = bValue;
|
pClient->bWindowWasShownChat = bValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// visibility state of the musician profile window
|
||||||
|
if ( GetFlagIniSet ( IniXMLDocument, "client", "winvisprofile", bValue ) )
|
||||||
|
{
|
||||||
|
pClient->bWindowWasShownProfile = bValue;
|
||||||
|
}
|
||||||
|
|
||||||
// visibility state of the connect window
|
// visibility state of the connect window
|
||||||
if ( GetFlagIniSet ( IniXMLDocument, "client", "winviscon", bValue ) )
|
if ( GetFlagIniSet ( IniXMLDocument, "client", "winviscon", bValue ) )
|
||||||
{
|
{
|
||||||
|
@ -387,6 +408,14 @@ void CSettings::Save()
|
||||||
SetNumericIniSet ( IniXMLDocument, "client", "country",
|
SetNumericIniSet ( IniXMLDocument, "client", "country",
|
||||||
static_cast<int> ( pClient->ChannelInfo.eCountry ) );
|
static_cast<int> ( pClient->ChannelInfo.eCountry ) );
|
||||||
|
|
||||||
|
// city
|
||||||
|
PutIniSetting ( IniXMLDocument, "client", "city_base64",
|
||||||
|
ToBase64 ( pClient->ChannelInfo.strCity ) );
|
||||||
|
|
||||||
|
// skill level
|
||||||
|
SetNumericIniSet ( IniXMLDocument, "client", "skill",
|
||||||
|
static_cast<int> ( pClient->ChannelInfo.eSkillLevel ) );
|
||||||
|
|
||||||
// audio fader
|
// audio fader
|
||||||
SetNumericIniSet ( IniXMLDocument, "client", "audfad",
|
SetNumericIniSet ( IniXMLDocument, "client", "audfad",
|
||||||
pClient->GetAudioInFader() );
|
pClient->GetAudioInFader() );
|
||||||
|
@ -467,6 +496,10 @@ void CSettings::Save()
|
||||||
PutIniSetting ( IniXMLDocument, "client", "winposchat_base64",
|
PutIniSetting ( IniXMLDocument, "client", "winposchat_base64",
|
||||||
ToBase64 ( pClient->vecWindowPosChat ) );
|
ToBase64 ( pClient->vecWindowPosChat ) );
|
||||||
|
|
||||||
|
// window position of the musician profile window
|
||||||
|
PutIniSetting ( IniXMLDocument, "client", "winposprofile_base64",
|
||||||
|
ToBase64 ( pClient->vecWindowPosProfile ) );
|
||||||
|
|
||||||
// window position of the connect window
|
// window position of the connect window
|
||||||
PutIniSetting ( IniXMLDocument, "client", "winposcon_base64",
|
PutIniSetting ( IniXMLDocument, "client", "winposcon_base64",
|
||||||
ToBase64 ( pClient->vecWindowPosConnect ) );
|
ToBase64 ( pClient->vecWindowPosConnect ) );
|
||||||
|
@ -479,6 +512,10 @@ void CSettings::Save()
|
||||||
SetFlagIniSet ( IniXMLDocument, "client", "winvischat",
|
SetFlagIniSet ( IniXMLDocument, "client", "winvischat",
|
||||||
pClient->bWindowWasShownChat );
|
pClient->bWindowWasShownChat );
|
||||||
|
|
||||||
|
// visibility state of the musician profile window
|
||||||
|
SetFlagIniSet ( IniXMLDocument, "client", "winvisprofile",
|
||||||
|
pClient->bWindowWasShownProfile );
|
||||||
|
|
||||||
// visibility state of the connect window
|
// visibility state of the connect window
|
||||||
SetFlagIniSet ( IniXMLDocument, "client", "winviscon",
|
SetFlagIniSet ( IniXMLDocument, "client", "winviscon",
|
||||||
pClient->bWindowWasShownConnect );
|
pClient->bWindowWasShownConnect );
|
||||||
|
|
Loading…
Reference in a new issue