Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe

Commits:

15 changed files:

Changes:

  • client/datasource/editor/api/src/main/i18n/getters/java.getter
    ... ... @@ -229,7 +229,9 @@ observe.ui.datasource.editor.content.map.legendTop.tip
    229 229
     observe.ui.datasource.editor.content.map.miles
    
    230 230
     observe.ui.datasource.editor.content.map.north
    
    231 231
     observe.ui.datasource.editor.content.map.showLogbook
    
    232
    +observe.ui.datasource.editor.content.map.showLogbookTripSegment
    
    232 233
     observe.ui.datasource.editor.content.map.showObservation
    
    234
    +observe.ui.datasource.editor.content.map.showObservationsTripSegment
    
    233 235
     observe.ui.datasource.editor.content.map.south
    
    234 236
     observe.ui.datasource.editor.content.map.west
    
    235 237
     observe.ui.datasource.search.add.criteria.tip
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/ObserveKeyStrokesEditorApi.java
    ... ... @@ -50,7 +50,9 @@ public class ObserveKeyStrokesEditorApi extends ObserveKeyStrokesSupport {
    50 50
         public static final KeyStroke KEY_STROKE_DATA_SYNCHRO_INFO_RIGHT = KeyStroke.getKeyStroke("pressed F8");
    
    51 51
     
    
    52 52
         public static final KeyStroke KEY_STROKE_SHOW_OBS = KeyStroke.getKeyStroke("ctrl pressed O");
    
    53
    +    public static final KeyStroke KEY_STROKE_SHOW_OBSERVATIONS_TRIP_SEGMENT = KeyStroke.getKeyStroke("shift ctrl pressed O");
    
    53 54
         public static final KeyStroke KEY_STROKE_SHOW_LOGBOOK = KeyStroke.getKeyStroke("ctrl pressed L");
    
    55
    +    public static final KeyStroke KEY_STROKE_SHOW_LOGBOOK_TRIP_SEGMENT = KeyStroke.getKeyStroke("shift ctrl pressed L");
    
    54 56
         public static final KeyStroke KEY_STROKE_LEGEND_TOGGLE = KeyStroke.getKeyStroke("pressed F11");
    
    55 57
         public static final KeyStroke KEY_STROKE_LEGEND_TOP = KeyStroke.getKeyStroke("ctrl pressed T");
    
    56 58
         public static final KeyStroke KEY_STROKE_LEGEND_BOTTOM = KeyStroke.getKeyStroke("ctrl pressed B");
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/TripUIHelper.java
    ... ... @@ -39,6 +39,7 @@ import org.apache.logging.log4j.Logger;
    39 39
     import javax.swing.JTabbedPane;
    
    40 40
     import javax.swing.SwingUtilities;
    
    41 41
     import javax.swing.event.ChangeEvent;
    
    42
    +import java.util.Set;
    
    42 43
     
    
    43 44
     public abstract class TripUIHelper<D extends RootOpenableDto, U extends ContentRootOpenableUI<D, U> & TripUI<D>> implements WithClientUIContextApi {
    
    44 45
     
    
    ... ... @@ -59,13 +60,22 @@ public abstract class TripUIHelper<D extends RootOpenableDto, U extends ContentR
    59 60
             return getService(ui.getHandler()).getTripMap(tripMapConfig);
    
    60 61
         }
    
    61 62
     
    
    63
    +    private static final Set<String> UPDATE_MAP_MODEL_PROPERTIES = Set.of(
    
    64
    +            TripMapConfigDto.PROPERTY_ADD_OBSERVATIONS,
    
    65
    +            TripMapConfigDto.PROPERTY_ADD_OBSERVATIONS_TRIP_SEGMENT,
    
    66
    +            TripMapConfigDto.PROPERTY_ADD_LOGBOOK,
    
    67
    +            TripMapConfigDto.PROPERTY_ADD_LOGBOOK_TRIP_SEGMENT
    
    68
    +    );
    
    69
    +
    
    62 70
         public void installMap(TripAware trip) {
    
    63 71
     
    
    64 72
             TripMapUI tripMap = ui.getTripMap();
    
    65 73
     
    
    66 74
             TripMapConfigDto tripMapConfig = tripMap.getTripMapConfig();
    
    67 75
             tripMapConfig.setAddObservations(true);
    
    76
    +        tripMapConfig.setAddObservationsTripSegment(true);
    
    68 77
             tripMapConfig.setAddLogbook(true);
    
    78
    +        tripMapConfig.setAddLogbookTripSegment(true);
    
    69 79
             SwingUtilities.invokeLater(tripMap::validate);
    
    70 80
             ClientConfig config = getClientConfig();
    
    71 81
     
    
    ... ... @@ -73,8 +83,11 @@ public abstract class TripUIHelper<D extends RootOpenableDto, U extends ContentR
    73 83
             trip.addPropertyChangeListener(TripAware.PROPERTY_LOGBOOK_AVAILABILITY, evt -> onLogbookAvailabilityChanged((Boolean) evt.getNewValue()));
    
    74 84
     
    
    75 85
             tripMap.getHandler().setConfig(config);
    
    76
    -        tripMapConfig.addPropertyChangeListener(TripMapConfigDto.PROPERTY_ADD_OBSERVATIONS, e -> updateMapModel());
    
    77
    -        tripMapConfig.addPropertyChangeListener(TripMapConfigDto.PROPERTY_ADD_LOGBOOK, e -> updateMapModel());
    
    86
    +        tripMapConfig.addPropertyChangeListener(e -> {
    
    87
    +            if (UPDATE_MAP_MODEL_PROPERTIES.contains(e.getPropertyName())) {
    
    88
    +                updateMapModel();
    
    89
    +            }
    
    90
    +        });
    
    78 91
     
    
    79 92
             ui.getMainTabbedPane().addChangeListener(this::onTabChanged);
    
    80 93
             // Disable map tab because can't manage it :(
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/map/TripMapUI.jaxx
    ... ... @@ -38,7 +38,9 @@
    38 38
         <JToolBar id='configToolBar' constraints="BorderLayout.EAST">
    
    39 39
           <JToggleButton id='toggleConfigure'/>
    
    40 40
           <JCheckBoxMenuItem id='addObservations'/>
    
    41
    +      <JCheckBoxMenuItem id='addObservationsTripSegment'/>
    
    41 42
           <JCheckBoxMenuItem id='addLogbook'/>
    
    43
    +      <JCheckBoxMenuItem id='addLogbookTripSegment'/>
    
    42 44
           <JCheckBoxMenuItem id='toggleLegend'/>
    
    43 45
           <JRadioButtonMenuItem id='legendPositionTop' styleClass='legendPosition'/>
    
    44 46
           <JRadioButtonMenuItem id='legendPositionBottom' styleClass='legendPosition'/>
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/map/TripMapUI.jcss
    ... ... @@ -39,6 +39,16 @@
    39 39
       selected:{tripMapConfig.isAddLogbook()};
    
    40 40
     }
    
    41 41
     
    
    42
    +#addObservationsTripSegment {
    
    43
    +  enabled:{tripMapConfig.isAddObservations()};
    
    44
    +  selected:{tripMapConfig.isAddObservationsTripSegment()};
    
    45
    +}
    
    46
    +
    
    47
    +#addLogbookTripSegment {
    
    48
    +  enabled:{tripMapConfig.isAddLogbook()};
    
    49
    +  selected:{tripMapConfig.isAddLogbookTripSegment()};
    
    50
    +}
    
    51
    +
    
    42 52
     .legendPosition {
    
    43 53
       buttonGroup:"legendPosition";
    
    44 54
       enabled:{toggleLegend.isSelected()};
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/map/TripMapUIHandler.java
    ... ... @@ -36,7 +36,6 @@ import org.geotools.swing.event.MapPaneListener;
    36 36
     import org.nuiton.jaxx.runtime.spi.UIHandler;
    
    37 37
     
    
    38 38
     import javax.swing.JSeparator;
    
    39
    -import javax.swing.SwingConstants;
    
    40 39
     import javax.swing.SwingUtilities;
    
    41 40
     import java.awt.Point;
    
    42 41
     import java.awt.event.MouseEvent;
    
    ... ... @@ -183,7 +182,8 @@ public class TripMapUIHandler implements UIHandler<TripMapUI> {
    183 182
             mapPane.addMouseMotionListener(mouseMapListener);
    
    184 183
             mapPane.addMouseListener(mouseMapListener);
    
    185 184
             mapPane.addMapPaneListener(new TripMapListener());
    
    186
    -        ui.getConfigurePopup().add(new JSeparator(SwingConstants.HORIZONTAL), 2);
    
    185
    +        ui.getConfigurePopup().add(new JSeparator(JSeparator.HORIZONTAL), 4);
    
    186
    +        ui.getConfigurePopup().add(new JSeparator(JSeparator.HORIZONTAL), 2);
    
    187 187
             rendererRunning = false;
    
    188 188
         }
    
    189 189
     
    

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/map/actions/AddLogbookTripSegment.java
    1
    +package fr.ird.observe.client.datasource.editor.api.content.data.map.actions;
    
    2
    +
    
    3
    +/*-
    
    4
    + * #%L
    
    5
    + * ObServe Client :: DataSource :: Editor :: API
    
    6
    + * %%
    
    7
    + * Copyright (C) 2008 - 2023 IRD, Ultreia.io
    
    8
    + * %%
    
    9
    + * This program is free software: you can redistribute it and/or modify
    
    10
    + * it under the terms of the GNU General Public License as
    
    11
    + * published by the Free Software Foundation, either version 3 of the
    
    12
    + * License, or (at your option) any later version.
    
    13
    + *
    
    14
    + * This program is distributed in the hope that it will be useful,
    
    15
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    16
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    17
    + * GNU General Public License for more details.
    
    18
    + *
    
    19
    + * You should have received a copy of the GNU General Public
    
    20
    + * License along with this program.  If not, see
    
    21
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    22
    + * #L%
    
    23
    + */
    
    24
    +
    
    25
    +import fr.ird.observe.client.datasource.editor.api.ObserveKeyStrokesEditorApi;
    
    26
    +import fr.ird.observe.client.datasource.editor.api.content.data.map.ObserveMapPane;
    
    27
    +import fr.ird.observe.client.datasource.editor.api.content.data.map.TripMapUI;
    
    28
    +import fr.ird.observe.dto.data.TripMapConfigDto;
    
    29
    +
    
    30
    +import java.awt.event.ActionEvent;
    
    31
    +
    
    32
    +import static io.ultreia.java4all.i18n.I18n.t;
    
    33
    +
    
    34
    +/**
    
    35
    + * Created at 21/11/2023.
    
    36
    + *
    
    37
    + * @author Tony Chemit - dev@tchemit.fr
    
    38
    + * @since 9.3.0
    
    39
    + */
    
    40
    +public class AddLogbookTripSegment extends TripMapUIActionSupport implements ConfigureMapAction {
    
    41
    +
    
    42
    +    public AddLogbookTripSegment() {
    
    43
    +        super(t("observe.ui.datasource.editor.content.map.showLogbookTripSegment"),
    
    44
    +              t("observe.ui.datasource.editor.content.map.showLogbookTripSegment"),
    
    45
    +              null, ObserveKeyStrokesEditorApi.KEY_STROKE_SHOW_LOGBOOK_TRIP_SEGMENT);
    
    46
    +    }
    
    47
    +
    
    48
    +    @Override
    
    49
    +    protected void doActionPerformed(ActionEvent e, TripMapUI ui) {
    
    50
    +        ObserveMapPane observeMapPane = ui.getObserveMapPane();
    
    51
    +        TripMapConfigDto mapConfig = ui.getTripMapConfig();
    
    52
    +        boolean newValue = !mapConfig.isAddLogbookTripSegment();
    
    53
    +        mapConfig.setAddLogbookTripSegment(newValue);
    
    54
    +        ui.getHandler().updateMap(observeMapPane.isShowLegend());
    
    55
    +    }
    
    56
    +}

  • client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/data/map/actions/AddObservationsTripSegment.java
    1
    +package fr.ird.observe.client.datasource.editor.api.content.data.map.actions;
    
    2
    +
    
    3
    +/*-
    
    4
    + * #%L
    
    5
    + * ObServe Client :: DataSource :: Editor :: API
    
    6
    + * %%
    
    7
    + * Copyright (C) 2008 - 2023 IRD, Ultreia.io
    
    8
    + * %%
    
    9
    + * This program is free software: you can redistribute it and/or modify
    
    10
    + * it under the terms of the GNU General Public License as
    
    11
    + * published by the Free Software Foundation, either version 3 of the
    
    12
    + * License, or (at your option) any later version.
    
    13
    + *
    
    14
    + * This program is distributed in the hope that it will be useful,
    
    15
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    16
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    17
    + * GNU General Public License for more details.
    
    18
    + *
    
    19
    + * You should have received a copy of the GNU General Public
    
    20
    + * License along with this program.  If not, see
    
    21
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    22
    + * #L%
    
    23
    + */
    
    24
    +
    
    25
    +import fr.ird.observe.client.datasource.editor.api.ObserveKeyStrokesEditorApi;
    
    26
    +import fr.ird.observe.client.datasource.editor.api.content.data.map.ObserveMapPane;
    
    27
    +import fr.ird.observe.client.datasource.editor.api.content.data.map.TripMapUI;
    
    28
    +import fr.ird.observe.dto.data.TripMapConfigDto;
    
    29
    +
    
    30
    +import java.awt.event.ActionEvent;
    
    31
    +
    
    32
    +import static io.ultreia.java4all.i18n.I18n.t;
    
    33
    +
    
    34
    +/**
    
    35
    + * Created at 21/11/2023.
    
    36
    + *
    
    37
    + * @author Tony Chemit - dev@tchemit.fr
    
    38
    + * @since 9.3.0
    
    39
    + */
    
    40
    +public class AddObservationsTripSegment extends TripMapUIActionSupport implements ConfigureMapAction {
    
    41
    +
    
    42
    +    public AddObservationsTripSegment() {
    
    43
    +        super(t("observe.ui.datasource.editor.content.map.showObservationsTripSegment"),
    
    44
    +              t("observe.ui.datasource.editor.content.map.showObservationsTripSegment"),
    
    45
    +              null, ObserveKeyStrokesEditorApi.KEY_STROKE_SHOW_OBSERVATIONS_TRIP_SEGMENT);
    
    46
    +    }
    
    47
    +
    
    48
    +    @Override
    
    49
    +    protected void doActionPerformed(ActionEvent e, TripMapUI ui) {
    
    50
    +        ObserveMapPane observeMapPane = ui.getObserveMapPane();
    
    51
    +        TripMapConfigDto mapConfig = ui.getTripMapConfig();
    
    52
    +        boolean newValue = !mapConfig.isAddObservationsTripSegment();
    
    53
    +        mapConfig.setAddObservationsTripSegment(newValue);
    
    54
    +        ui.getHandler().updateMap(observeMapPane.isShowLegend());
    
    55
    +    }
    
    56
    +}

  • client/datasource/editor/ll/src/main/java/fr/ird/observe/client/datasource/editor/ll/data/common/TripMapContentBuilder.java
    ... ... @@ -99,12 +99,12 @@ public class TripMapContentBuilder extends TripMapContentBuilderSupport {
    99 99
             if (tripMapConfig.isAddObservations()) {
    
    100 100
                 List<TripMapPoint> obsPoints = getObsPoints(tripMapPoints);
    
    101 101
                 addFishingZone(OBSERVATIONS_ZONES_BUILDER, obsPoints);
    
    102
    -            addLines(OBSERVATIONS_LINES_BUILDER, obsPoints);
    
    102
    +            addLines(OBSERVATIONS_LINES_BUILDER, obsPoints, tripMapConfig.isAddObservationsTripSegment());
    
    103 103
             }
    
    104 104
             if (tripMapConfig.isAddLogbook()) {
    
    105 105
                 List<TripMapPoint> logbookPoints = getLogbookPoints(tripMapPoints);
    
    106 106
                 addFishingZone(LOGBOOK_ZONES_BUILDER, logbookPoints);
    
    107
    -            addLines(LOGBOOK_LINES_BUILDER, logbookPoints);
    
    107
    +            addLines(LOGBOOK_LINES_BUILDER, logbookPoints, tripMapConfig.isAddLogbookTripSegment());
    
    108 108
             }
    
    109 109
         }
    
    110 110
     
    
    ... ... @@ -132,11 +132,13 @@ public class TripMapContentBuilder extends TripMapContentBuilderSupport {
    132 132
             }
    
    133 133
         }
    
    134 134
     
    
    135
    -    private void addLines(LinesBuilder builder, List<TripMapPoint> tripMapPoints) {
    
    135
    +    private void addLines(LinesBuilder builder, List<TripMapPoint> tripMapPoints, boolean addTripSegment) {
    
    136 136
             DefaultFeatureCollection linesFeatures = new DefaultFeatureCollection();
    
    137 137
             Set<String> lineTypes = new TreeSet<>();
    
    138 138
             builder.build(tripMapPoints);
    
    139
    -        addLines(TRIP_LINE_TYPE, linesFeatures, lineTypes, builder.getTripLines());
    
    139
    +        if (addTripSegment) {
    
    140
    +            addLines(TRIP_LINE_TYPE, linesFeatures, lineTypes, builder.getTripLines());
    
    141
    +        }
    
    140 142
             addLines(SETTING_LINE_TYPE, linesFeatures, lineTypes, builder.getSettingLines());
    
    141 143
             addLines(HAULING_LINE_TYPE, linesFeatures, lineTypes, builder.getHaulingLines());
    
    142 144
             if (!linesFeatures.isEmpty()) {
    

  • client/datasource/editor/ps/src/main/java/fr/ird/observe/client/datasource/editor/ps/data/common/TripMapContentBuilder.java
    ... ... @@ -107,7 +107,7 @@ public class TripMapContentBuilder extends fr.ird.observe.client.datasource.edit
    107 107
     
    
    108 108
         @Override
    
    109 109
         public void addLines(TripMapConfigDto tripMapConfig, List<TripMapPoint> tripMapPoints) {
    
    110
    -        if (tripMapConfig.isAddObservations()) {
    
    110
    +        if (tripMapConfig.isAddObservations() && tripMapConfig.isAddObservationsTripSegment()) {
    
    111 111
                 addLines0(tripMapPoints.stream().filter(f -> f.getType().isTrip() || f.getType().isObs()).collect(Collectors.toList()),
    
    112 112
                           "observationDay",
    
    113 113
                           "observationNight",
    
    ... ... @@ -115,7 +115,7 @@ public class TripMapContentBuilder extends fr.ird.observe.client.datasource.edit
    115 115
                           t("observe.ui.datasource.editor.content.map.legend.obs.tripDay"),
    
    116 116
                           t("observe.ui.datasource.editor.content.map.legend.obs.tripBetweenTwoDays"));
    
    117 117
             }
    
    118
    -        if (tripMapConfig.isAddLogbook()) {
    
    118
    +        if (tripMapConfig.isAddLogbook() && tripMapConfig.isAddLogbookTripSegment()) {
    
    119 119
                 addLines0(tripMapPoints.stream().filter(f -> f.getType().isTrip() || f.getType().isLogbook()).collect(Collectors.toList()),
    
    120 120
                           "logbookSegment",
    
    121 121
                           "logbookSegment",
    

  • client/datasource/editor/ps/src/main/resources/map/ps-style.xml
    ... ... @@ -91,7 +91,7 @@
    91 91
                 <Stroke>
    
    92 92
                   <CssParameter name="stroke">${mapPsStyleLogbookLineColor}</CssParameter>
    
    93 93
                   <CssParameter name="stroke-width">2</CssParameter>
    
    94
    -              <CssParameter name="stroke-dasharray">6 4</CssParameter>
    
    94
    +<!--              <CssParameter name="stroke-dasharray">6 4</CssParameter>-->
    
    95 95
                 </Stroke>
    
    96 96
               </LineSymbolizer>
    
    97 97
               <TextSymbolizer>
    

  • client/runner/src/main/i18n/translations/client-runner_en_GB.properties
    ... ... @@ -729,7 +729,9 @@ observe.ui.datasource.editor.content.map.miles=miles
    729 729
     observe.ui.datasource.editor.content.map.north=North
    
    730 730
     observe.ui.datasource.editor.content.map.observation.points.not.valid=Observation - Number of none displayed points\: %d
    
    731 731
     observe.ui.datasource.editor.content.map.showLogbook=Show Logbook data
    
    732
    +observe.ui.datasource.editor.content.map.showLogbookTripSegment=Logbook - Show trip segments
    
    732 733
     observe.ui.datasource.editor.content.map.showObservation=Show Observation data
    
    734
    +observe.ui.datasource.editor.content.map.showObservationsTripSegment=Observation - Show trip segments
    
    733 735
     observe.ui.datasource.editor.content.map.south=South
    
    734 736
     observe.ui.datasource.editor.content.map.waitLoading=Please wait while loading the map
    
    735 737
     observe.ui.datasource.editor.content.map.west=West
    

  • client/runner/src/main/i18n/translations/client-runner_es_ES.properties
    ... ... @@ -729,7 +729,9 @@ observe.ui.datasource.editor.content.map.miles=milles
    729 729
     observe.ui.datasource.editor.content.map.north=Norte
    
    730 730
     observe.ui.datasource.editor.content.map.observation.points.not.valid=Observation - Number of none displayed points\: %d \#TODO
    
    731 731
     observe.ui.datasource.editor.content.map.showLogbook=Show Logbook data \#TODO
    
    732
    +observe.ui.datasource.editor.content.map.showLogbookTripSegment=Logbook - Show trip segments \#TODO
    
    732 733
     observe.ui.datasource.editor.content.map.showObservation=Show Observation data \#TODO
    
    734
    +observe.ui.datasource.editor.content.map.showObservationsTripSegment=Observation - Show trip segments \#TODO
    
    733 735
     observe.ui.datasource.editor.content.map.south=Sur
    
    734 736
     observe.ui.datasource.editor.content.map.waitLoading=Espere mientras que el mapa se está cargando
    
    735 737
     observe.ui.datasource.editor.content.map.west=Oeste
    

  • client/runner/src/main/i18n/translations/client-runner_fr_FR.properties
    ... ... @@ -729,7 +729,9 @@ observe.ui.datasource.editor.content.map.miles=milles
    729 729
     observe.ui.datasource.editor.content.map.north=Nord
    
    730 730
     observe.ui.datasource.editor.content.map.observation.points.not.valid=Observation - Nombre de points non affichés \: %d
    
    731 731
     observe.ui.datasource.editor.content.map.showLogbook=Voir les données Livre de bord
    
    732
    +observe.ui.datasource.editor.content.map.showLogbookTripSegment=Livre de bord - Voir le trajet
    
    732 733
     observe.ui.datasource.editor.content.map.showObservation=Voir les données Observation
    
    734
    +observe.ui.datasource.editor.content.map.showObservationsTripSegment=Observation - Voir le trajet
    
    733 735
     observe.ui.datasource.editor.content.map.south=Sud
    
    734 736
     observe.ui.datasource.editor.content.map.waitLoading=Veuillez patienter pendant le chargement de la carte
    
    735 737
     observe.ui.datasource.editor.content.map.west=Ouest
    

  • core/api/dto/src/main/java/fr/ird/observe/dto/data/TripMapConfigDto.java
    ... ... @@ -39,10 +39,14 @@ public class TripMapConfigDto extends AbstractJavaBean implements JsonAware {
    39 39
     
    
    40 40
         public static final String PROPERTY_TRIP_ID = "tripId";
    
    41 41
         public static final String PROPERTY_ADD_OBSERVATIONS = "addObservations";
    
    42
    +    public static final String PROPERTY_ADD_OBSERVATIONS_TRIP_SEGMENT = "addObservationsTripSegment";
    
    42 43
         public static final String PROPERTY_ADD_LOGBOOK = "addLogbook";
    
    44
    +    public static final String PROPERTY_ADD_LOGBOOK_TRIP_SEGMENT = "addLogbookTripSegment";
    
    43 45
         private String tripId;
    
    44 46
         private boolean addObservations;
    
    45 47
         private boolean addLogbook;
    
    48
    +    private boolean addLogbookTripSegment;
    
    49
    +    private boolean addObservationsTripSegment;
    
    46 50
     
    
    47 51
         public String getTripId() {
    
    48 52
             return tripId;
    
    ... ... @@ -74,6 +78,26 @@ public class TripMapConfigDto extends AbstractJavaBean implements JsonAware {
    74 78
             firePropertyChange(PROPERTY_ADD_LOGBOOK, oldValue, addLogbook);
    
    75 79
         }
    
    76 80
     
    
    81
    +    public boolean isAddLogbookTripSegment() {
    
    82
    +        return addLogbookTripSegment;
    
    83
    +    }
    
    84
    +
    
    85
    +    public void setAddLogbookTripSegment(boolean addLogbookTripSegment) {
    
    86
    +        boolean oldValue = isAddLogbookTripSegment();
    
    87
    +        this.addLogbookTripSegment = addLogbookTripSegment;
    
    88
    +        firePropertyChange(PROPERTY_ADD_LOGBOOK_TRIP_SEGMENT, oldValue, addLogbookTripSegment);
    
    89
    +    }
    
    90
    +
    
    91
    +    public boolean isAddObservationsTripSegment() {
    
    92
    +        return addObservationsTripSegment;
    
    93
    +    }
    
    94
    +
    
    95
    +    public void setAddObservationsTripSegment(boolean addObservationsTripSegment) {
    
    96
    +        boolean oldValue = isAddObservationsTripSegment();
    
    97
    +        this.addObservationsTripSegment = addObservationsTripSegment;
    
    98
    +        firePropertyChange(PROPERTY_ADD_OBSERVATIONS_TRIP_SEGMENT, oldValue, addObservationsTripSegment);
    
    99
    +    }
    
    100
    +
    
    77 101
         @Override
    
    78 102
         public String toString() {
    
    79 103
             return new StringJoiner(", ", TripMapConfigDto.class.getSimpleName() + "[", "]")