Commit e9f91aff authored by Benedikt Kleinmeier's avatar Benedikt Kleinmeier
Browse files

In "GUI", renamed tab "Stimuli" to "Perception"

parent 5bb83db7
Pipeline #211648 passed with stages
in 128 minutes and 16 seconds
......@@ -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
......
......@@ -361,7 +361,7 @@ Tab.Model.insertModelNameSubMenu.title=Hauptmodelle
Tab.Pedestrians.title=Fu\u00dfg\u00e4nger
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
......
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.");
}
......
......@@ -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 eventFileView; // Stimulus tab
private TextView perceptionFileView; // 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);
eventFileView = new TextView( "ProjectView.defaultDirectoryAttributes", AttributeType.STIMULUS);
eventFileView.isEditable(true);
tabbedPane.addTab(Messages.getString("Tab.Stimuli.title"), eventFileView);
perceptionFileView = new TextView( "ProjectView.defaultDirectoryAttributes", AttributeType.PERCEPTION);
perceptionFileView.isEditable(true);
tabbedPane.addTab(Messages.getString("Tab.Perception.title"), perceptionFileView);
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.eventFileView.setVadereScenario(scenario);
this.eventFileView.isEditable(isEditable);
this.perceptionFileView.setVadereScenario(scenario);
this.perceptionFileView.isEditable(isEditable);
this.dataProcessingGUIview.setVadereScenario(scenario);
this.dataProcessingGUIview.isEditable(isEditable);
......
......@@ -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;
......
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