Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
JPSeditor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
24
Issues
24
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
JuPedSim
JPSeditor
Commits
1f07358f
Commit
1f07358f
authored
May 03, 2019
by
Tao Zhong
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#134
Update ini file reader
parent
bab68ba6
Pipeline
#19867
passed with stages
in 25 seconds
Changes
3
Pipelines
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
377 additions
and
2457 deletions
+377
-2457
forms/inifilewidget.ui
forms/inifilewidget.ui
+1
-116
src/widgets/inifilewidget.cpp
src/widgets/inifilewidget.cpp
+371
-2318
src/widgets/inifilewidget.h
src/widgets/inifilewidget.h
+5
-23
No files found.
forms/inifilewidget.ui
View file @
1f07358f
...
...
@@ -35,7 +35,7 @@
<string
notr=
"true"
/>
</property>
<property
name=
"currentIndex"
>
<number>
6
</number>
<number>
12
</number>
</property>
<widget
class=
"QWidget"
name=
"tab_general"
>
<attribute
name=
"title"
>
...
...
@@ -2307,121 +2307,6 @@
<string>
Δ T
</string>
</property>
</column>
<item
row=
"0"
column=
"0"
>
<property
name=
"text"
>
<string>
1
</string>
</property>
</item>
<item
row=
"0"
column=
"1"
>
<property
name=
"text"
>
<string>
1.33
</string>
</property>
</item>
<item
row=
"0"
column=
"2"
>
<property
name=
"text"
>
<string>
0.0
</string>
</property>
</item>
<item
row=
"0"
column=
"3"
>
<property
name=
"text"
>
<string>
0.6
</string>
</property>
</item>
<item
row=
"0"
column=
"4"
>
<property
name=
"text"
>
<string>
0.2
</string>
</property>
</item>
<item
row=
"0"
column=
"5"
>
<property
name=
"text"
>
<string>
0.6
</string>
</property>
</item>
<item
row=
"0"
column=
"6"
>
<property
name=
"text"
>
<string>
0.2
</string>
</property>
</item>
<item
row=
"0"
column=
"7"
>
<property
name=
"text"
>
<string>
0.6
</string>
</property>
</item>
<item
row=
"0"
column=
"8"
>
<property
name=
"text"
>
<string>
0.2
</string>
</property>
</item>
<item
row=
"0"
column=
"9"
>
<property
name=
"text"
>
<string>
0.6
</string>
</property>
</item>
<item
row=
"0"
column=
"10"
>
<property
name=
"text"
>
<string>
0.2
</string>
</property>
</item>
<item
row=
"0"
column=
"11"
>
<property
name=
"text"
>
<string>
0.15
</string>
</property>
</item>
<item
row=
"0"
column=
"12"
>
<property
name=
"text"
>
<string>
0.001
</string>
</property>
</item>
<item
row=
"0"
column=
"13"
>
<property
name=
"text"
>
<string>
0.15
</string>
</property>
</item>
<item
row=
"0"
column=
"14"
>
<property
name=
"text"
>
<string>
0.001
</string>
</property>
</item>
<item
row=
"0"
column=
"15"
>
<property
name=
"text"
>
<string>
0.15
</string>
</property>
</item>
<item
row=
"0"
column=
"16"
>
<property
name=
"text"
>
<string>
0.001
</string>
</property>
</item>
<item
row=
"0"
column=
"17"
>
<property
name=
"text"
>
<string>
0.5
</string>
</property>
</item>
<item
row=
"0"
column=
"18"
>
<property
name=
"text"
>
<string>
0.001
</string>
</property>
</item>
<item
row=
"0"
column=
"19"
>
<property
name=
"text"
>
<string>
0.0
</string>
</property>
</item>
<item
row=
"0"
column=
"20"
>
<property
name=
"text"
>
<string>
0.0
</string>
</property>
</item>
<item
row=
"0"
column=
"21"
>
<property
name=
"text"
>
<string>
1.0
</string>
</property>
</item>
<item
row=
"0"
column=
"22"
>
<property
name=
"text"
>
<string>
0.001
</string>
</property>
</item>
</widget>
</widget>
<widget
class=
"QWidget"
name=
"tab_model_gradnav"
>
...
...
src/widgets/inifilewidget.cpp
View file @
1f07358f
This diff is collapsed.
Click to expand it.
src/widgets/inifilewidget.h
View file @
1f07358f
...
...
@@ -78,29 +78,17 @@ public slots:
void
readTau
(
QXmlStreamReader
*
reader
,
int
modelindex
);
void
readAtou
(
QXmlStreamReader
*
reader
,
int
modelindex
);
void
readT
(
QXmlStreamReader
*
reader
,
int
modelindex
);
void
readRouteChoiceModels
(
QXmlStreamReader
*
reader
);
void
readRouter
(
QXmlStreamReader
*
reader
);
void
readRouterParameters
(
QXmlStreamReader
*
reader
);
void
readNavigationLines
(
QXmlStreamReader
*
reader
);
void
readVTK
(
QXmlStreamReader
*
reader
);
private:
Ui
::
InifileWidget
*
ui
;
jpsDatamanager
*
dataManager
;
bool
CheckHeaderData
();
bool
CheckTrafficData
();
bool
CheckRoutingData
();
bool
CheckSourceData
();
bool
CheckAgentData
();
bool
CheckModelGcfmData
();
bool
CheckAgentGcfmData
();
bool
CheckModelGompData
();
bool
CheckAgentGompData
();
bool
CheckModelTordData
();
bool
CheckAgentTordData
();
bool
CheckModelGradData
();
bool
CheckAgentGradData
();
bool
CheckModelKrauData
();
bool
CheckAgentKrauData
();
bool
CheckRouteChoiceData
();
void
writeHeaderData
(
QXmlStreamWriter
*
stream
,
QFile
&
file
);
void
writeRoutingData
(
QXmlStreamWriter
*
stream
,
QFile
&
file
);
void
writeFFGlobalShortestModel
(
QXmlStreamWriter
*
stream
,
QFile
&
file
);
...
...
@@ -115,12 +103,6 @@ private:
void
writeModelKrauData
(
QXmlStreamWriter
*
stream
,
QFile
&
file
);
void
writeRouteChoiceData
(
QXmlStreamWriter
*
stream
,
QFile
&
file
);
void
ReadJuPedSimData
(
TiXmlElement
*
JuPedSim
);
void
ReadHeaderData
(
TiXmlElement
*
JuPedSim
);
void
ReadAgentData
(
TiXmlElement
*
JuPedSim
);
void
ReadModelData
(
TiXmlElement
*
JuPedSim
);
void
ReadRouteChoiceData
(
TiXmlElement
*
JuPedSim
);
signals:
void
inifileLoaded
(
QString
,
int
);
};
...
...
Tao Zhong
@zhong1
mentioned in issue
#134 (closed)
·
May 03, 2019
mentioned in issue
#134 (closed)
mentioned in issue #134
Toggle commit list
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