OSDN Git Service

[img all] properties
[importpicture/importpicture.git] / importPicture / src / osm / jp / gpx / matchtime / gui / AdjustTime.java
index c6e22c3..b22ee16 100644 (file)
@@ -25,8 +25,8 @@ import org.apache.commons.imaging.formats.tiff.constants.ExifTagConstants;
 public class AdjustTime extends JFrame
 {
     public static final String PROGRAM_NAME = "AdjustTime for JOSM";
-    public static final String PROGRAM_VARSION = "3.0";
-    public static final String PROGRAM_UPDATE = "2016/10/04";
+    public static final String PROGRAM_VARSION = "3.1";
+    public static final String PROGRAM_UPDATE = "2017/05/15";
        
     // Used for addNotify check.
     boolean fComponentsAdjusted = false;
@@ -49,6 +49,7 @@ public class AdjustTime extends JFrame
     ParameterPanelImageFile arg2_baseTimeImg;
     ParameterPanel arg3_basetiome;
     JCheckBox outputIMG;       // IMGの変換 する/しない
+    JCheckBox outputIMG_all;   // 'out of GPX time'でもIMGの変換をする {ON | OFF}
     JCheckBox exifON;          // EXIF 書き出しモード / !(EXIFの書き換えはしない)
     JCheckBox gpxOutputWpt;    // GPXに<WPT>を書き出す
     JCheckBox gpxOverwriteMagvar;      // ソースGPXの<MAGVAR>を無視する
@@ -119,6 +120,9 @@ public class AdjustTime extends JFrame
             else if (object == outputIMG) {
                outputIMG_Action(event);
             }
+            else if (object == outputIMG_all) {
+               outputIMGall_Action(event);
+            }
             else if (object == exifON) {
                exifON_Action(event);
             }
@@ -281,6 +285,9 @@ public class AdjustTime extends JFrame
         outputIMG = new JCheckBox("IMGの変換をする", Boolean.parseBoolean(params.getProperty(AppParameters.IMG_OUTPUT)));
         tmpPanel5.add(outputIMG);
 
+        outputIMG_all = new JCheckBox("GPXファイル時間外のファイルもコピーする", Boolean.parseBoolean(params.getProperty(AppParameters.IMG_OUTPUT_ALL)));
+        tmpPanel5.add(outputIMG_all);
+
         arg5_outputFolder = new ParameterPanelFolder("出力フォルダ: ", params.getProperty(AppParameters.IMG_OUTPUT_FOLDER));
         tmpPanel5.add(arg5_outputFolder);
 
@@ -338,6 +345,7 @@ public class AdjustTime extends JFrame
         arg2_baseTimeImg.argField.addActionListener(lSymAction);
         arg2_baseTimeImg.openButton.addActionListener(lSymAction);
         doButton.addActionListener(lSymAction);
+        outputIMG_all.addActionListener(lSymAction);
         exifON.addActionListener(lSymAction);
         gpxOutputSpeed.addActionListener(lSymAction);
         noFirstNode.addActionListener(lSymAction);
@@ -552,6 +560,9 @@ public class AdjustTime extends JFrame
                arg5_outputFolder.setEnabled(outputIMG.isEnabled());
     }
 
+    void outputIMGall_Action (ActionEvent event) {
+    }
+
     /**
      * checkbox[EXIF書き出し]を変更した場合のアクション
      * @param event
@@ -604,6 +615,7 @@ public class AdjustTime extends JFrame
         this.params.setProperty(AppParameters.IMG_TIME, arg3_basetiome.getText());
         this.params.setProperty(AppParameters.IMG_OUTPUT, String.valueOf(outputIMG.isSelected()));
         this.params.setProperty(AppParameters.IMG_OUTPUT_FOLDER, arg5_outputFolder.getText());
+        this.params.setProperty(AppParameters.IMG_OUTPUT_ALL, String.valueOf(exifON.isSelected()));
         this.params.setProperty(AppParameters.IMG_OUTPUT_EXIF, String.valueOf(exifON.isSelected()));
         this.params.setProperty(AppParameters.GPX_OVERWRITE_MAGVAR, String.valueOf(gpxOverwriteMagvar.isSelected()));
         this.params.setProperty(AppParameters.GPX_OUTPUT_SPEED, String.valueOf(gpxOutputSpeed.isSelected()));