@@ -517,27 +517,27 @@ void CClientSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
517517
518518 // custom directories
519519
520- // ### TODO: BEGIN ###//
521- // compatibility to old version (< 3.6.1)
520+ // ### TODO: BEGIN ###//
521+ // compatibility to old version (< 3.6.1)
522522 QString strDirectoryAddress = GetIniSetting ( IniXMLDocument, " client" , " centralservaddr" , " " );
523- // ### TODO: END ###//
523+ // ### TODO: END ###//
524524
525525 for ( iIdx = 0 ; iIdx < MAX_NUM_SERVER_ADDR_ITEMS; iIdx++ )
526526 {
527- // ### TODO: BEGIN ###//
528- // compatibility to old version (< 3.8.2)
527+ // ### TODO: BEGIN ###//
528+ // compatibility to old version (< 3.8.2)
529529 strDirectoryAddress = GetIniSetting ( IniXMLDocument, " client" , QString ( " centralservaddr%1" ).arg ( iIdx ), strDirectoryAddress );
530- // ### TODO: END ###//
530+ // ### TODO: END ###//
531531
532532 vstrDirectoryAddress[iIdx] = GetIniSetting ( IniXMLDocument, " client" , QString ( " directoryaddress%1" ).arg ( iIdx ), strDirectoryAddress );
533533 strDirectoryAddress = " " ;
534534 }
535535
536536 // directory type
537537
538- // ### TODO: BEGIN ###//
539- // compatibility to old version (<3.4.7)
540- // only the case that "centralservaddr" was set in old ini must be considered
538+ // ### TODO: BEGIN ###//
539+ // compatibility to old version (<3.4.7)
540+ // only the case that "centralservaddr" was set in old ini must be considered
541541 if ( !vstrDirectoryAddress[0 ].isEmpty () && GetFlagIniSet ( IniXMLDocument, " client" , " defcentservaddr" , bValue ) && !bValue )
542542 {
543543 eDirectoryType = AT_CUSTOM;
@@ -547,7 +547,7 @@ void CClientSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
547547 {
548548 eDirectoryType = static_cast <EDirectoryType> ( iValue );
549549 }
550- // ### TODO: END ###//
550+ // ### TODO: END ###//
551551
552552 else if ( GetNumericIniSet ( IniXMLDocument, " client" , " directorytype" , 0 , static_cast <int > ( AT_CUSTOM ), iValue ) )
553553 {
@@ -824,6 +824,21 @@ void CClientSettings::WriteSettingsToXML ( QDomDocument& IniXMLDocument, bool is
824824 WriteFaderSettingsToXML ( IniXMLDocument );
825825}
826826
827+ QString CClientSettings::GetMIDIMapString () const
828+ {
829+ return QString ( " %1;f%2*%3;p%4*%5;s%6*%7;m%8*%9;o%10" )
830+ .arg ( midiChannel )
831+ .arg ( midiFaderOffset )
832+ .arg ( midiFaderCount )
833+ .arg ( midiPanOffset )
834+ .arg ( midiPanCount )
835+ .arg ( midiSoloOffset )
836+ .arg ( midiSoloCount )
837+ .arg ( midiMuteOffset )
838+ .arg ( midiMuteCount )
839+ .arg ( midiMuteMyself );
840+ }
841+
827842void CClientSettings::WriteFaderSettingsToXML ( QDomDocument& IniXMLDocument )
828843{
829844 int iIdx;
@@ -912,10 +927,10 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
912927 // Server GUI defaults to ""
913928 QString directoryAddress = " " ;
914929
915- // ### TODO: BEGIN ###//
916- // compatibility to old version < 3.8.2
930+ // ### TODO: BEGIN ###//
931+ // compatibility to old version < 3.8.2
917932 directoryAddress = GetIniSetting ( IniXMLDocument, " server" , " centralservaddr" , directoryAddress );
918- // ### TODO: END ###//
933+ // ### TODO: END ###//
919934
920935 directoryAddress = GetIniSetting ( IniXMLDocument, " server" , " directoryaddress" , directoryAddress );
921936
@@ -935,20 +950,20 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
935950 }
936951 else
937952 {
938- // ### TODO: BEGIN ###//
939- // compatibility to old version < 3.4.7
953+ // ### TODO: BEGIN ###//
954+ // compatibility to old version < 3.4.7
940955 if ( GetFlagIniSet ( IniXMLDocument, " server" , " defcentservaddr" , bValue ) )
941956 {
942957 directoryType = bValue ? AT_DEFAULT : AT_CUSTOM;
943958 }
944959 else
945960 {
946- // ### TODO: END ###//
961+ // ### TODO: END ###//
947962
948963 // if "directorytype" itself is set, use it (note "AT_NONE", "AT_DEFAULT" and "AT_CUSTOM" are min/max directory type here)
949964
950- // ### TODO: BEGIN ###//
951- // compatibility to old version < 3.8.2
965+ // ### TODO: BEGIN ###//
966+ // compatibility to old version < 3.8.2
952967 if ( GetNumericIniSet ( IniXMLDocument,
953968 " server" ,
954969 " centservaddrtype" ,
@@ -958,7 +973,7 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
958973 {
959974 directoryType = static_cast <EDirectoryType> ( iValue );
960975 }
961- // ### TODO: END ###//
976+ // ### TODO: END ###//
962977
963978 else
964979 {
@@ -974,14 +989,14 @@ void CServerSettings::ReadSettingsFromXML ( const QDomDocument& IniXMLDocument,
974989 }
975990 }
976991
977- // ### TODO: BEGIN ###//
978- // compatibility to old version < 3.9.0
979- // override type to AT_NONE if servlistenabled exists and is false
992+ // ### TODO: BEGIN ###//
993+ // compatibility to old version < 3.9.0
994+ // override type to AT_NONE if servlistenabled exists and is false
980995 if ( GetFlagIniSet ( IniXMLDocument, " server" , " servlistenabled" , bValue ) && !bValue )
981996 {
982997 directoryType = AT_NONE;
983998 }
984- // ### TODO: END ###//
999+ // ### TODO: END ###//
9851000 }
9861001
9871002 pServer->SetDirectoryType ( directoryType );
0 commit comments