add very big index card deck (known as mobile gui card deck before) to the list of distributed card decks and set this to default. For this style there is a new card deck file type needed because of the very big index symbols left top. Therefor #154 is implemented

This commit is contained in:
doitux
2012-11-10 02:02:25 +01:00
parent 59df9c0968
commit e8498d1338
15 changed files with 336 additions and 184 deletions
+9 -2
View File
@@ -50,7 +50,7 @@ ConfigFile::ConfigFile(char *argv0, bool readonly) : noWriteAccess(readonly)
myConfigState = OK;
// !!!! Revisionsnummer der Configdefaults !!!!!
configRev = 97;
configRev = 98;
//standard defaults
logOnOffDefault = "1";
@@ -555,12 +555,19 @@ void ConfigFile::updateConfig(ConfigState myConfigState)
///////// VERSION HACK SECTION ///////////////////////
//this is the right place for special version depending config hacks:
//0.9.1 - log interval needs to be set to 1 instead of 0
if (configRev == 95 || configRev == 96) { // this means 0.9.1 or 0.9.2
if (configRev > 94 || configRev < 99) { // this means 0.9.1 or 0.9.2 or 1.0
TiXmlElement * confElement2 = new TiXmlElement( "LogInterval" );
config->LinkEndChild( confElement2 );
confElement2->SetAttribute("value", 1);
noUpdateElemtsList.push_back("LogInterval");
}
if (configRev == 98) { // this means 1.0
TiXmlElement * confElement3 = new TiXmlElement( "CurrentCardDeckStyle" );
config->LinkEndChild( confElement3 );
confElement3->SetAttribute("value", "");
noUpdateElemtsList.push_back("CurrentCardDeckStyle");
}
///////// VERSION HACK SECTION ///////////////////////
TiXmlHandle oldDocHandle( &oldDoc );