Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Lopez Jean-Michel
bddfontblanche
Commits
d78dbadd
Commit
d78dbadd
authored
Dec 22, 2017
by
Fabien Buissart
Browse files
Dernière version
parent
782ffbb4
Changes
7
Hide whitespace changes
Inline
Side-by-side
Compilation/system files/changecharacteristics.cpp
View file @
d78dbadd
...
...
@@ -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
()))
...
...
Compilation/system files/changeparameterclass.cpp
View file @
d78dbadd
...
...
@@ -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
()
>
axisPos
i
tion
[
"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"
);
...
...
Compilation/system files/consultdata.cpp
View file @
d78dbadd
...
...
@@ -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
++
;
...
...
Compilation/system files/expanddataconsult.cpp
View file @
d78dbadd
...
...
@@ -274,7 +274,7 @@ void MainWindow::expandDataConsult(int a, int b)
}
}
tempFile
->
close
();
if
(
varMa
r
p
[
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"
])])
!=
""
)
{
...
...
Compilation/system files/expanddatainput.cpp
View file @
d78dbadd
...
...
@@ -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
()
>
reprorepro
Var
[
"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
();
...
...
Compilation/system files/exportallslot.cpp
View file @
d78dbadd
...
...
@@ -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
(
p
osMap
[
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
(
p
osMap
[
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
(
p
osMap
[
axisMap
[
axis
.
key
()].
at
(
axisPosition
[
"IdDom"
]).
toInt
()].
size
()
>
posPosition
[
"LongNameDominance"
])
{
outputStream
<<
domMap
[
axisMap
[
axis
.
key
()].
at
(
axisPosition
[
"IdDom"
]).
toInt
()].
at
(
domPosition
[
"LongNameDominance"
])
<<
"
\t
"
;
}
...
...
Compilation/system files/modifiesinputtable.cpp
View file @
d78dbadd
...
...
@@ -1281,7 +1281,7 @@ void MainWindow::modifiesInputTable(int b)
datas
=
*
(
new
QMap
<
QString
,
QVariant
>
);
historic
=
""
;
historic
=
"%1"
+
historic
;
if
(
var
->
size
()
>
reprorepro
v
ar
[
"TypeVar"
])
if
(
var
->
size
()
>
reprorepro
V
ar
[
"TypeVar"
])
{
if
(
var
->
at
(
reproreproVar
[
"TypeVar"
])
==
"INTEGER"
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment