Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
vadere
vadere
Commits
e9f91aff
Commit
e9f91aff
authored
Feb 07, 2020
by
Benedikt Kleinmeier
Browse files
In "GUI", renamed tab "Stimuli" to "Perception"
parent
5bb83db7
Pipeline
#211648
passed with stages
in 128 minutes and 16 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
VadereGui/resources/messages.properties
View file @
e9f91aff
...
...
@@ -367,7 +367,7 @@ Tab.Model.insertModelNameSubMenu.title=Main models
Tab.Pedestrians.title
=
Pedestrians
Tab.Psychology.title
=
Psychology
Tab.Topography.title
=
Topography
Tab.
Stimuli.title
=
Stimuli
Tab.
Perception.title
=
Perception
Tab.OutputProcessors.title
=
Data output
Tab.TopographyCreator.title
=
Topography creator
Tab.PostVisualization.title
=
Post-Visualization
...
...
VadereGui/resources/messages_de_DE.properties
View file @
e9f91aff
...
...
@@ -361,7 +361,7 @@ Tab.Model.insertModelNameSubMenu.title=Hauptmodelle
Tab.Pedestrians.title
=
Fu
\u
00dfg
\u
00e4nger
Tab.Psychology.title
=
Psychologie
Tab.Topography.title
=
Topographie
Tab.
Stimuli.title
=
Stimuli
Tab.
Perception.title
=
Perzeption
Tab.OutputProcessors.title
=
Datenausgabe
Tab.TopographyCreator.title
=
Topographie-Designer
Tab.PostVisualization.title
=
Post-Visualisierung
...
...
VadereGui/src/org/vadere/gui/projectview/view/AttributeType.java
View file @
e9f91aff
package
org.vadere.gui.projectview.view
;
public
enum
AttributeType
{
SIMULATION
,
MODEL
,
PSYCHOLOGY
,
PEDESTRIAN
,
CAR
,
TOPOGRAPHY
,
OUTPUTPROCESSOR
,
STIMULUS
;
SIMULATION
,
MODEL
,
PSYCHOLOGY
,
PEDESTRIAN
,
CAR
,
TOPOGRAPHY
,
OUTPUTPROCESSOR
,
PERCEPTION
;
public
final
static
String
simulationAttributes
=
"simulation attributes"
;
public
final
static
String
modelAttributes
=
"panelModel attributes"
;
...
...
@@ -26,7 +26,7 @@ public enum AttributeType {
case
carAttributes:
return
CAR
;
case
stimulusAttributes:
return
STIMULUS
;
return
PERCEPTION
;
default
:
throw
new
IllegalArgumentException
(
"name "
+
name
+
" does not match any attribute type."
);
}
...
...
VadereGui/src/org/vadere/gui/projectview/view/ScenarioPanel.java
View file @
e9f91aff
...
...
@@ -41,7 +41,7 @@ public class ScenarioPanel extends JPanel implements IProjectChangeListener, Pro
private
TextView
attributesModelView
;
// Model tab
private
TextView
attributesPsychologyView
;
// Psychology tab
private
TextView
topographyFileView
;
// Topography tab
private
TextView
event
FileView
;
// Stimulus tab
private
TextView
perception
FileView
;
// Stimulus tab
private
DataProcessingView
dataProcessingGUIview
;
// DataProcessing
private
TopographyWindow
topographyCreatorView
;
// Topography creator tab... OR:
private
final
PostvisualizationWindow
postVisualizationView
;
// Post-Visualization tab, replaces Topography tab if output is selected
...
...
@@ -201,9 +201,9 @@ public class ScenarioPanel extends JPanel implements IProjectChangeListener, Pro
topographyFileView
.
setScenarioChecker
(
model
);
tabbedPane
.
addTab
(
Messages
.
getString
(
"Tab.Topography.title"
),
topographyFileView
);
event
FileView
=
new
TextView
(
"ProjectView.defaultDirectoryAttributes"
,
AttributeType
.
STIMULUS
);
event
FileView
.
isEditable
(
true
);
tabbedPane
.
addTab
(
Messages
.
getString
(
"Tab.
Stimuli.title"
),
event
FileView
);
perception
FileView
=
new
TextView
(
"ProjectView.defaultDirectoryAttributes"
,
AttributeType
.
PERCEPTION
);
perception
FileView
.
isEditable
(
true
);
tabbedPane
.
addTab
(
Messages
.
getString
(
"Tab.
Perception.title"
),
perception
FileView
);
dataProcessingGUIview
=
new
DataProcessingView
(
model
);
tabbedPane
.
addTab
(
Messages
.
getString
(
"Tab.OutputProcessors.title"
),
dataProcessingGUIview
);
...
...
@@ -295,8 +295,8 @@ public class ScenarioPanel extends JPanel implements IProjectChangeListener, Pro
this
.
topographyFileView
.
setVadereScenario
(
scenario
);
this
.
topographyFileView
.
isEditable
(
isEditable
);
this
.
event
FileView
.
setVadereScenario
(
scenario
);
this
.
event
FileView
.
isEditable
(
isEditable
);
this
.
perception
FileView
.
setVadereScenario
(
scenario
);
this
.
perception
FileView
.
isEditable
(
isEditable
);
this
.
dataProcessingGUIview
.
setVadereScenario
(
scenario
);
this
.
dataProcessingGUIview
.
isEditable
(
isEditable
);
...
...
VadereGui/src/org/vadere/gui/projectview/view/TextView.java
View file @
e9f91aff
...
...
@@ -195,7 +195,7 @@ public class TextView extends JPanel implements IJsonView {
case
TOPOGRAPHY:
currentScenario
.
setTopography
(
StateJsonConverter
.
deserializeTopography
(
json
));
break
;
case
STIMULUS
:
case
PERCEPTION
:
StimulusInfoStore
stimulusInfoStore
=
StateJsonConverter
.
deserializeStimuli
(
json
);
currentScenario
.
getScenarioStore
().
setStimulusInfoStore
(
stimulusInfoStore
);
break
;
...
...
@@ -222,7 +222,7 @@ public class TextView extends JPanel implements IJsonView {
}
private
void
generatePresettingsMenu
(
final
AttributeType
attributeType
)
{
if
(
attributeType
==
AttributeType
.
STIMULUS
)
{
if
(
attributeType
==
AttributeType
.
PERCEPTION
)
{
JMenuBar
presetMenuBar
=
new
JMenuBar
();
JMenu
mnPresetMenu
=
new
JMenu
(
Messages
.
getString
(
"TextView.Button.LoadPresettings"
));
presetMenuBar
.
add
(
mnPresetMenu
);
...
...
@@ -283,7 +283,7 @@ public class TextView extends JPanel implements IJsonView {
topography
.
removeBoundary
();
textfileTextarea
.
setText
(
StateJsonConverter
.
serializeTopography
(
topography
));
break
;
case
STIMULUS
:
case
PERCEPTION
:
StimulusInfoStore
stimulusInfoStore
=
scenario
.
getScenarioStore
().
getStimulusInfoStore
();
textfileTextarea
.
setText
(
StateJsonConverter
.
serializeStimuli
(
stimulusInfoStore
));
break
;
...
...
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