Commit d78dbadd authored by Fabien Buissart's avatar Fabien Buissart
Browse files

Dernière version

parent 782ffbb4
......@@ -546,27 +546,27 @@ void MainWindow::changeCharacteristics()
tab0->setItem(countLine, 0, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.size() > 6) cell->setText(statusFollowed[it.value().at(6).toInt()]);
if (it.value().size() > 6) cell->setText(statusFollowed[it.value().at(6).toInt()]);
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab0->setItem(countLine, 1, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.size() > 7) cell->setText(it.value().at(7).toString());
if (it.value().size() > 7) cell->setText(it.value().at(7).toString());
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab0->setItem(countLine, 2, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.size() > 8) cell->setText(it.value().at(8).toString());
if (it.value().size() > 8) cell->setText(it.value().at(8).toString());
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab0->setItem(countLine, 3, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.size() > 9) cell->setText(it.value().at(9).toDate().toString("dd/MM/yyyy"));
if (it.value().size() > 9) cell->setText(it.value().at(9).toDate().toString("dd/MM/yyyy"));
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab0->setItem(countLine, 4, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.size() > 10) cell->setText(it.value().at(10).toDate().toString("dd/MM/yyyy"));
if (it.value().size() > 10) cell->setText(it.value().at(10).toDate().toString("dd/MM/yyyy"));
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab0->setItem(countLine, 5, cell);
if (charactMap.keys().contains(it.value().at(0).toInt()))
......
......@@ -230,13 +230,14 @@ changeParameterClass::changeParameterClass(QVariant param, QString previousName,
axisMap.insert(Id, dataRow);
}
}
if (dataRow.size() > axisPosition["Id1"] && dataRow.size() > axisPosition["IdPos"] && dataRow.size() > axisPosition["IdExp"] && dataRow.size() > axisPostion["IdDom"] && dataRow.size() > axisPosition["NRam"])
if (dataRow.size() > axisPosition["Id1"] && dataRow.size() > axisPosition["IdPos"] && dataRow.size() > axisPosition["IdExp"] && dataRow.size() > axisPosition["IdDom"] && dataRow.size() > axisPosition["NRam"])
{
if (posMap[dataRow.at(axisPosition["IdPos"]).toInt()].size() > posPosition["ShortNamePosition"] && expMap[dataRow.at(axisPosition["IdExp"]).toInt()].size() > expPosition["ShortNameExposition"] && domMap[dataRow.at(axisPosition["IdDom"]).toInt()].size() > domPosition["ShortNameDominance"])
{
axisNames.append(QString("%1 %2%3 %4%5").arg(treeNames[dataRow.at(axisPosition["Id1"]).toInt()]).arg(posMap[dataRow.at(axisPosition["IdPos"]).toInt()].at(posPosition["ShortNamePosition"])).arg(expMap[dataRow.at(axisPosition["IdExp"]).toInt()].at(expPosition["ShortNameExposition"])).arg(domMap[dataRow.at(axisPosition["IdDom"]).toInt()].at(domPosition["ShortNameDominance"])).arg(dataRow.at(axisPosition["NRam"])));
}
}
}
}
// -> now we load axis names from axischaracteristics
QFile paramFile("bin/axisCharacteristics");
......
......@@ -606,27 +606,27 @@ void MainWindow::consultData()
tab2->setItem(countLine, 0, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.value() > 6) cell->setText(statusAbandonned[it.value().at(6).toInt()]);
if (it.value().size() > 6) cell->setText(statusAbandonned[it.value().at(6).toInt()]);
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab2->setItem(countLine, 1, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.value() > 7) cell->setText(it.value().at(7).toString());
if (it.value().size() > 7) cell->setText(it.value().at(7).toString());
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab2->setItem(countLine, 2, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.value() > 8) cell->setText(it.value().at(8).toString());
if (it.value().size() > 8) cell->setText(it.value().at(8).toString());
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab2->setItem(countLine, 3, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.value() > 9) cell->setText(it.value().at(9).toDate().toString("dd/MM/yyyy"));
if (it.value().size() > 9) cell->setText(it.value().at(9).toDate().toString("dd/MM/yyyy"));
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab2->setItem(countLine, 4, cell);
cell = new QTableWidgetItem;
cell->setData(Qt::UserRole, it.value());
if (it.value() > 10) cell->setText(it.value().at(10).toDate().toString("dd/MM/yyyy"));
if (it.value().size() > 10) cell->setText(it.value().at(10).toDate().toString("dd/MM/yyyy"));
cell->setFlags(cell->flags() & ~ Qt::ItemIsEditable);
tab2->setItem(countLine, 5, cell);
countLine++;
......
......@@ -274,7 +274,7 @@ void MainWindow::expandDataConsult(int a, int b)
}
}
tempFile->close();
if (varMarp[Id].size() > varPosition["Name"])
if (varMap[Id].size() > varPosition["Name"])
{
factorPosition.insert(varMap[Id].at(varPosition["Name"]), tempPosition);
factorMap.insert(varMap[Id].at(varPosition["Name"]), tempMap);
......@@ -545,7 +545,7 @@ void MainWindow::expandDataConsult(int a, int b)
{
if (var->size() > varPosition["Name"])
{
if (measureMap[measure.value()].size() > var->at(varPosition["Name"]))
if (measureMap[measure.value()].size() > measurePosition[var->at(varPosition["Name"])])
{
if (measureMap[measure.value()].at(measurePosition[var->at(varPosition["Name"])]) != "")
{
......
......@@ -367,7 +367,7 @@ void MainWindow::expandDataInput(int a, int b)
if (reproVarMap[Id].at(reproreproVar["TypeVar"]).startsWith("eKEY"))
{
// factor variable
if (dataRow.size() > reprorepro["TypeVar"]) if (dataRow.at(reproreproVar["TypeVar"]).split(":").size() > 1) tempFile = new QFile(QString("bin/%1").arg(dataRow.at(reproreproVar["TypeVar"]).split(":").at(1)));
if (dataRow.size() > reproreproVar["TypeVar"]) if (dataRow.at(reproreproVar["TypeVar"]).split(":").size() > 1) tempFile = new QFile(QString("bin/%1").arg(dataRow.at(reproreproVar["TypeVar"]).split(":").at(1)));
countLine = -1;
tempPosition.clear();
tempMap.clear();
......
......@@ -895,7 +895,7 @@ void MainWindow::exportAllSlot()
}else{
if (axisMap[axis.key()].size() > charactPosition["IdPos"])
{
if (posMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()] > posPosition["LongNamePosition"])
if (posMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()].size() > posPosition["LongNamePosition"])
{
outputStream << posMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()].at(posPosition["LongNamePosition"]) << "\t";
}else{
......@@ -1333,21 +1333,21 @@ void MainWindow::exportAllSlot()
if (treeMap[tree.key()].size() > treePosition["NumArb"]) outputStream << treeMap[tree.key()].at(treePosition["NumArb"]) << "\t";
if (axisMap[axis.key()].size() > axisPosition["IdPos"])
{
if (osMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()].size() > posPosition["LongNamePosition"])
if (posMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()].size() > posPosition["LongNamePosition"])
{
outputStream << posMap[axisMap[axis.key()].at(axisPosition["IdPos"]).toInt()].at(posPosition["LongNamePosition"]) << "\t";
}
}
if (axisMap[axis.key()].size() > axisPosition["IdExp"])
{
if (osMap[axisMap[axis.key()].at(axisPosition["IdExp"]).toInt()].size() > posPosition["LongNameExposition"])
if (posMap[axisMap[axis.key()].at(axisPosition["IdExp"]).toInt()].size() > posPosition["LongNameExposition"])
{
outputStream << expMap[axisMap[axis.key()].at(axisPosition["IdExp"]).toInt()].at(expPosition["LongNameExposition"]) << "\t";
}
}
if (axisMap[axis.key()].size() > axisPosition["IdDom"])
{
if (osMap[axisMap[axis.key()].at(axisPosition["IdDom"]).toInt()].size() > posPosition["LongNameDominance"])
if (posMap[axisMap[axis.key()].at(axisPosition["IdDom"]).toInt()].size() > posPosition["LongNameDominance"])
{
outputStream << domMap[axisMap[axis.key()].at(axisPosition["IdDom"]).toInt()].at(domPosition["LongNameDominance"]) << "\t";
}
......
......@@ -1281,7 +1281,7 @@ void MainWindow::modifiesInputTable(int b)
datas = *(new QMap<QString, QVariant>);
historic = "";
historic = "%1" + historic;
if (var->size() > reproreprovar["TypeVar"])
if (var->size() > reproreproVar["TypeVar"])
{
if (var->at(reproreproVar["TypeVar"]) == "INTEGER")
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment