QTfrontend/ammoSchemeModel.cpp
changeset 4396 3cfd2e15464a
parent 4303 9057d4d85830
child 4449 796bbec1101c
equal deleted inserted replaced
4395:54dedd218dde 4396:3cfd2e15464a
    58         << QVariant(2)             // explosives     32
    58         << QVariant(2)             // explosives     32
    59         << QVariant(35)            // health case pct 33
    59         << QVariant(35)            // health case pct 33
    60         << QVariant(25)            // health case amt 34
    60         << QVariant(25)            // health case amt 34
    61         << QVariant(47)            // water rise amt 35
    61         << QVariant(47)            // water rise amt 35
    62         << QVariant(5)             // health dec amt 36
    62         << QVariant(5)             // health dec amt 36
       
    63         << QVariant(100)           // rope modfier   37
    63         ;
    64         ;
    64 
    65 
    65 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) :
    66 AmmoSchemeModel::AmmoSchemeModel(QObject* parent, const QString & fileName) :
    66     QAbstractTableModel(parent),
    67     QAbstractTableModel(parent),
    67     fileConfig(fileName, QSettings::IniFormat)
    68     fileConfig(fileName, QSettings::IniFormat)
   118         << "explosives"       // 32
   119         << "explosives"       // 32
   119         << "healthprobability" // 33
   120         << "healthprobability" // 33
   120         << "healthcaseamount" // 34
   121         << "healthcaseamount" // 34
   121         << "waterrise"        // 35
   122         << "waterrise"        // 35
   122         << "healthdecrease"   // 36
   123         << "healthdecrease"   // 36
       
   124         << "ropepct"          // 37
   123         ;
   125         ;
   124 
   126 
   125     QList<QVariant> proMode;
   127     QList<QVariant> proMode;
   126     proMode
   128     proMode
   127         << predefSchemesNames[1]   // name           0
   129         << predefSchemesNames[1]   // name           0
   159         << QVariant(2)             // explosives     32
   161         << QVariant(2)             // explosives     32
   160         << QVariant(35)            // health case pct 33
   162         << QVariant(35)            // health case pct 33
   161         << QVariant(25)            // health case amt 34
   163         << QVariant(25)            // health case amt 34
   162         << QVariant(47)            // water rise amt 35
   164         << QVariant(47)            // water rise amt 35
   163         << QVariant(5)             // health dec amt 36
   165         << QVariant(5)             // health dec amt 36
       
   166         << QVariant(100)           // rope modfier   37
   164         ;
   167         ;
   165 
   168 
   166     QList<QVariant> shoppa;
   169     QList<QVariant> shoppa;
   167     shoppa
   170     shoppa
   168         << predefSchemesNames[2]   // name           0
   171         << predefSchemesNames[2]   // name           0
   200         << QVariant(0)             // explosives     32
   203         << QVariant(0)             // explosives     32
   201         << QVariant(0)             // health case pct 33
   204         << QVariant(0)             // health case pct 33
   202         << QVariant(25)            // health case amt 34
   205         << QVariant(25)            // health case amt 34
   203         << QVariant(47)            // water rise amt 35
   206         << QVariant(47)            // water rise amt 35
   204         << QVariant(5)             // health dec amt 36
   207         << QVariant(5)             // health dec amt 36
       
   208         << QVariant(100)           // rope modfier   37
   205         ;
   209         ;
   206 
   210 
   207     QList<QVariant> cleanslate;
   211     QList<QVariant> cleanslate;
   208     cleanslate
   212     cleanslate
   209         << predefSchemesNames[3]   // name           0
   213         << predefSchemesNames[3]   // name           0
   241         << QVariant(2)             // explosives     32
   245         << QVariant(2)             // explosives     32
   242         << QVariant(35)            // health case pct 33
   246         << QVariant(35)            // health case pct 33
   243         << QVariant(25)            // health case amt 34
   247         << QVariant(25)            // health case amt 34
   244         << QVariant(47)            // water rise amt 35
   248         << QVariant(47)            // water rise amt 35
   245         << QVariant(5)             // health dec amt 36
   249         << QVariant(5)             // health dec amt 36
       
   250         << QVariant(100)           // rope modfier   37
   246         ;
   251         ;
   247 
   252 
   248     QList<QVariant> minefield;
   253     QList<QVariant> minefield;
   249     minefield
   254     minefield
   250         << predefSchemesNames[4]   // name           0
   255         << predefSchemesNames[4]   // name           0
   282         << QVariant(0)             // explosives     32
   287         << QVariant(0)             // explosives     32
   283         << QVariant(35)            // health case pct 33
   288         << QVariant(35)            // health case pct 33
   284         << QVariant(25)            // health case amt 34
   289         << QVariant(25)            // health case amt 34
   285         << QVariant(47)            // water rise amt 35
   290         << QVariant(47)            // water rise amt 35
   286         << QVariant(5)             // health dec amt 36
   291         << QVariant(5)             // health dec amt 36
       
   292         << QVariant(100)           // rope modfier   37
   287         ;
   293         ;
   288 
   294 
   289     QList<QVariant> barrelmayhem;
   295     QList<QVariant> barrelmayhem;
   290     barrelmayhem
   296     barrelmayhem
   291         << predefSchemesNames[5]   // name           0
   297         << predefSchemesNames[5]   // name           0
   323         << QVariant(80)            // explosives     32
   329         << QVariant(80)            // explosives     32
   324         << QVariant(35)            // health case pct 33
   330         << QVariant(35)            // health case pct 33
   325         << QVariant(25)            // health case amt 34
   331         << QVariant(25)            // health case amt 34
   326         << QVariant(47)            // water rise amt 35
   332         << QVariant(47)            // water rise amt 35
   327         << QVariant(5)             // health dec amt 36
   333         << QVariant(5)             // health dec amt 36
       
   334         << QVariant(100)           // rope modfier   37
   328         ;
   335         ;
   329 
   336 
   330     QList<QVariant> tunnelhogs;
   337     QList<QVariant> tunnelhogs;
   331     tunnelhogs
   338     tunnelhogs
   332         << predefSchemesNames[6]   // name           0
   339         << predefSchemesNames[6]   // name           0
   364         << QVariant(10)            // explosives     32
   371         << QVariant(10)            // explosives     32
   365         << QVariant(35)            // health case pct 33
   372         << QVariant(35)            // health case pct 33
   366         << QVariant(25)            // health case amt 34
   373         << QVariant(25)            // health case amt 34
   367         << QVariant(47)            // water rise amt 35
   374         << QVariant(47)            // water rise amt 35
   368         << QVariant(5)             // health dec amt 36
   375         << QVariant(5)             // health dec amt 36
       
   376         << QVariant(100)           // rope modfier   37
   369         ;
   377         ;
   370 
   378 
   371     QList<QVariant> forts;
   379     QList<QVariant> forts;
   372     forts
   380     forts
   373         << predefSchemesNames[7]   // name           0
   381         << predefSchemesNames[7]   // name           0
   405         << QVariant(0)             // explosives     32
   413         << QVariant(0)             // explosives     32
   406         << QVariant(35)            // health case pct 33
   414         << QVariant(35)            // health case pct 33
   407         << QVariant(25)            // health case amt 34
   415         << QVariant(25)            // health case amt 34
   408         << QVariant(47)            // water rise amt 35
   416         << QVariant(47)            // water rise amt 35
   409         << QVariant(5)             // health dec amt 36
   417         << QVariant(5)             // health dec amt 36
       
   418         << QVariant(100)           // rope modfier   37
   410         ;
   419         ;
   411 
   420 
   412     QList<QVariant> timeless;
   421     QList<QVariant> timeless;
   413     timeless
   422     timeless
   414         << predefSchemesNames[8]   // name           0
   423         << predefSchemesNames[8]   // name           0
   446         << QVariant(2)             // explosives     32
   455         << QVariant(2)             // explosives     32
   447         << QVariant(35)            // health case pct 33
   456         << QVariant(35)            // health case pct 33
   448         << QVariant(30)            // health case amt 34
   457         << QVariant(30)            // health case amt 34
   449         << QVariant(0)             // water rise amt 35
   458         << QVariant(0)             // water rise amt 35
   450         << QVariant(0)             // health dec amt 36
   459         << QVariant(0)             // health dec amt 36
       
   460         << QVariant(100)           // rope modfier   37
   451         ;
   461         ;
   452 
   462 
   453     QList<QVariant> thinkingportals;
   463     QList<QVariant> thinkingportals;
   454     thinkingportals
   464     thinkingportals
   455         << predefSchemesNames[9]   // name           0
   465         << predefSchemesNames[9]   // name           0
   487         << QVariant(5)             // explosives     32
   497         << QVariant(5)             // explosives     32
   488         << QVariant(25)            // health case pct 33
   498         << QVariant(25)            // health case pct 33
   489         << QVariant(25)            // health case amt 34
   499         << QVariant(25)            // health case amt 34
   490         << QVariant(47)            // water rise amt 35
   500         << QVariant(47)            // water rise amt 35
   491         << QVariant(5)             // health dec amt 36
   501         << QVariant(5)             // health dec amt 36
       
   502         << QVariant(100)           // rope modfier   37
   492         ;
   503         ;
   493 
   504 
   494     QList<QVariant> kingmode;
   505     QList<QVariant> kingmode;
   495     kingmode
   506     kingmode
   496         << predefSchemesNames[10]  // name           0
   507         << predefSchemesNames[10]  // name           0
   528         << QVariant(3)             // explosives     32
   539         << QVariant(3)             // explosives     32
   529         << QVariant(35)            // health case pct 33
   540         << QVariant(35)            // health case pct 33
   530         << QVariant(30)            // health case amt 34
   541         << QVariant(30)            // health case amt 34
   531         << QVariant(30)            // water rise amt 35
   542         << QVariant(30)            // water rise amt 35
   532         << QVariant(5)             // health dec amt 36
   543         << QVariant(5)             // health dec amt 36
       
   544         << QVariant(100)           // rope modfier   37
   533         ;
   545         ;
   534 
   546 
   535 
   547 
   536     schemes.append(defaultScheme);
   548     schemes.append(defaultScheme);
   537     schemes.append(proMode);
   549     schemes.append(proMode);