Subversion Repositories public iLand

Rev

Rev 340 | Rev 567 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 340 Rev 550
Line 141... Line 141...
141
    QString key=QString("%1_%2").arg(ix).arg(iy);
141
    QString key=QString("%1_%2").arg(ix).arg(iy);
142
    if (mRowCoordinates.contains(key)) {
142
    if (mRowCoordinates.contains(key)) {
143
        XmlHelper xml(GlobalSettings::instance()->settings());
143
        XmlHelper xml(GlobalSettings::instance()->settings());
144
        int row = mRowCoordinates[key];
144
        int row = mRowCoordinates[key];
145
        QString value;
145
        QString value;
146
        qDebug() << "settting up point" << position << "with row" << row;
-
 
-
 
146
        if (logLevelInfo()) qDebug() << "settting up point" << position << "with row" << row;
147
        for (int col=0;col<mInfile->colCount(); col++) {
147
        for (int col=0;col<mInfile->colCount(); col++) {
148
            if (mKeys[col]=="x" || mKeys[col]=="y") // ignore "x" and "y" keys
148
            if (mKeys[col]=="x" || mKeys[col]=="y") // ignore "x" and "y" keys
149
                continue;
149
                continue;
150
            value = mInfile->value(row,col).toString();
150
            value = mInfile->value(row,col).toString();
151
            qDebug() << "set" << mKeys[col] << "to" << value;
-
 
-
 
151
            if (logLevelInfo()) qDebug() << "set" << mKeys[col] << "to" << value;
152
            xml.setNodeValue(mKeys[col], value);
152
            xml.setNodeValue(mKeys[col], value);
153
            // special handling for constructed objects:
153
            // special handling for constructed objects:
154
            if (mKeys[col]==speciesKey)
154
            if (mKeys[col]==speciesKey)
155
                mCurrentSpeciesSet = (SpeciesSet*)mCreatedObjects[value];
155
                mCurrentSpeciesSet = (SpeciesSet*)mCreatedObjects[value];
156
            if (mKeys[col]==climateKey)
156
            if (mKeys[col]==climateKey)