move vecWindowPosMain in the settings base class
This commit is contained in:
parent
d0f4b9b6a0
commit
8cd4f5b3e8
1 changed files with 7 additions and 11 deletions
|
@ -40,14 +40,16 @@ class CSettings
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CSettings() :
|
CSettings() :
|
||||||
strLanguage ( "" ),
|
vecWindowPosMain ( ), // empty array
|
||||||
strFileName ( "" ) {}
|
strLanguage ( "" ),
|
||||||
|
strFileName ( "" ) {}
|
||||||
|
|
||||||
void Load();
|
void Load();
|
||||||
void Save();
|
void Save();
|
||||||
|
|
||||||
// common settings
|
// common settings
|
||||||
QString strLanguage;
|
QByteArray vecWindowPosMain;
|
||||||
|
QString strLanguage;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void ReadFromXML ( const QDomDocument& IniXMLDocument ) = 0;
|
virtual void ReadFromXML ( const QDomDocument& IniXMLDocument ) = 0;
|
||||||
|
@ -126,7 +128,6 @@ public:
|
||||||
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ),
|
vstrIPAddress ( MAX_NUM_SERVER_ADDR_ITEMS, "" ),
|
||||||
iNewClientFaderLevel ( 100 ),
|
iNewClientFaderLevel ( 100 ),
|
||||||
bConnectDlgShowAllMusicians ( true ),
|
bConnectDlgShowAllMusicians ( true ),
|
||||||
vecWindowPosMain ( ), // empty array
|
|
||||||
vecWindowPosSettings ( ), // empty array
|
vecWindowPosSettings ( ), // empty array
|
||||||
vecWindowPosChat ( ), // empty array
|
vecWindowPosChat ( ), // empty array
|
||||||
vecWindowPosProfile ( ), // empty array
|
vecWindowPosProfile ( ), // empty array
|
||||||
|
@ -150,7 +151,6 @@ public:
|
||||||
bool bConnectDlgShowAllMusicians;
|
bool bConnectDlgShowAllMusicians;
|
||||||
|
|
||||||
// window position/state settings
|
// window position/state settings
|
||||||
QByteArray vecWindowPosMain;
|
|
||||||
QByteArray vecWindowPosSettings;
|
QByteArray vecWindowPosSettings;
|
||||||
QByteArray vecWindowPosChat;
|
QByteArray vecWindowPosChat;
|
||||||
QByteArray vecWindowPosProfile;
|
QByteArray vecWindowPosProfile;
|
||||||
|
@ -172,14 +172,10 @@ class CServerSettings : public CSettings
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
CServerSettings ( CServer* pNSerP, const QString& sNFiName ) :
|
CServerSettings ( CServer* pNSerP, const QString& sNFiName ) :
|
||||||
CSettings ( ),
|
CSettings ( ),
|
||||||
vecWindowPosMain ( ), // empty array
|
pServer ( pNSerP )
|
||||||
pServer ( pNSerP )
|
|
||||||
{ SetFileName ( sNFiName, DEFAULT_INI_FILE_NAME_SERVER); }
|
{ SetFileName ( sNFiName, DEFAULT_INI_FILE_NAME_SERVER); }
|
||||||
|
|
||||||
// window position/state settings
|
|
||||||
QByteArray vecWindowPosMain;
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual void ReadFromXML ( const QDomDocument& IniXMLDocument ) override;
|
virtual void ReadFromXML ( const QDomDocument& IniXMLDocument ) override;
|
||||||
virtual void WriteToXML ( QDomDocument& IniXMLDocument ) override;
|
virtual void WriteToXML ( QDomDocument& IniXMLDocument ) override;
|
||||||
|
|
Loading…
Reference in a new issue