OSDN Git Service

説明文を追加.実行ボタンを最終パネルに移動した
authorhayashi yuu <hayashi.yuu@gmail.com>
Mon, 10 Aug 2015 08:00:23 +0000 (17:00 +0900)
committerhayashi yuu <hayashi.yuu@gmail.com>
Mon, 10 Aug 2015 08:00:23 +0000 (17:00 +0900)
importPicture/src/osm/jp/gpx/matchtime/gui/AdjustTime.java

index 06c8ef8..8a160c6 100644 (file)
@@ -30,7 +30,7 @@ public class AdjustTime extends JFrame
     //ImagePreview imagePane;  // 基準時刻画像表示
     ParameterPanelFolder arg1Panel_1;
     ParameterPanelImageFile arg1Panel_2;
-    ParameterPanelTime arg1Panel_3;
+    ParameterPanel arg1Panel_3;
     ParameterPanelSelecter arg1Panel_4;                // EXIF 書き出しモード
     ParameterPanelFolder arg1Panel_5;       // GPXファイル・フォルダ
     
@@ -40,6 +40,7 @@ public class AdjustTime extends JFrame
     JButton zoomOutButton;     // [Zoom out]ボタン
     JButton nextButton;     // [次へ]ボタン
     JButton backButton;     // [戻る]ボタン
+    JButton doButton;       // [処理実行]ボタン
     //}}
 
     //{{DECLARE_MENUS
@@ -93,7 +94,7 @@ public class AdjustTime extends JFrame
                selectImage_Action(event);
                imageView_Action(event);
             }
-            else if (object == arg1Panel_3.doButton) {
+            else if (object == doButton) {
                doButton_Action(event);
             }
             else if (object == arg1Panel_4.field) {
@@ -175,7 +176,7 @@ public class AdjustTime extends JFrame
         JLabel label3 = new JLabel();
         label3.setText("<html><p>正確な撮影時刻を入力してください。</p><ul><li>カメラの時計が正確ならば、設定を変更する必要はありません。</li></ul>");
         argsPanel.add(label3);
-        arg1Panel_3 = new ParameterPanelTime("  基準時刻: ", ImportPicture.TIME_FORMAT_STRING);
+        arg1Panel_3 = new ParameterPanel("  基準時刻: ", ImportPicture.TIME_FORMAT_STRING);
         argsPanel.add(arg1Panel_3);
         cards[cardNo].add(argsPanel, BorderLayout.NORTH);
 
@@ -199,6 +200,10 @@ public class AdjustTime extends JFrame
         // 4.GPXファイル設定画面
         cardNo++;
         cards[cardNo].setLayout(new BorderLayout());
+        JLabel label4 = new JLabel();
+        label4.setText("<html><p>ヒモ付を行うGPXファイルを選択してください。</p><ul><li>フォルダを指定すると、フォルダ内にあるすべてのGPXファイルを対象とします。</li><li>カメラの時計が正確ならば、どの画像を選んでも構いません。</li></ul>");
+        cards[cardNo].add(label4, BorderLayout.NORTH);
+        
         JPanel tmpPanel4 = new JPanel();
         tmpPanel4.setLayout(new BoxLayout(tmpPanel4, BoxLayout.Y_AXIS));
         File gpxDir = new File(".");
@@ -210,12 +215,20 @@ public class AdjustTime extends JFrame
         // 5.EXIF更新設定画面
         cardNo++;
         cards[cardNo].setLayout(new BorderLayout());
+        JLabel label5 = new JLabel();
+        label5.setText("<html><p>EXIF変換を行うかどうかを選択してください。</p><ul><li>EXIF変換を行う場合には、変換ファイルを出力するフォルダも指定する必要があります。</li><li>出力フォルダには、書き込み権限と、十分な空き容量が必要です。</li></ul>");
+        cards[cardNo].add(label5, BorderLayout.NORTH);
+        
         JPanel tmpPanel5 = new JPanel();
         tmpPanel5.setLayout(new BoxLayout(tmpPanel5, BoxLayout.Y_AXIS));
         String[] combodata = {"更新しない", "更新する"};
         arg1Panel_4 = new ParameterPanelSelecter("EXIF変更: ", combodata);
         tmpPanel5.add(arg1Panel_4);
         cards[cardNo].add(tmpPanel5, BorderLayout.CENTER);
+        
+        doButton = new JButton("処理実行", AdjustTime.createImageIcon("images/media_playback_start.png"));
+        cards[cardNo].add(doButton, BorderLayout.SOUTH);
+
 
         //---------------------------------------------------------------------
         // INIT_MENUS
@@ -249,7 +262,7 @@ public class AdjustTime extends JFrame
         zoomInButton.addActionListener(lSymAction);
         arg1Panel_2.argField.addActionListener(lSymAction);
         arg1Panel_2.openButton.addActionListener(lSymAction);
-        arg1Panel_3.doButton.addActionListener(lSymAction);
+        doButton.addActionListener(lSymAction);
         arg1Panel_4.field.addActionListener(lSymAction);
         nextButton.addActionListener(lSymAction);
         backButton.addActionListener(lSymAction);
@@ -421,7 +434,7 @@ public class AdjustTime extends JFrame
      * @param event
      */
     void doButton_Action(java.awt.event.ActionEvent event) {
-       arg1Panel_3.doButton.setEnabled(false);
+       doButton.setEnabled(false);
 
        String[] argv = new String[4];
         argv[0] = arg1Panel_1.getText();
@@ -432,7 +445,7 @@ public class AdjustTime extends JFrame
 
         (new DoDialog(this, argv)).setVisible(true);
                
-       arg1Panel_3.doButton.setEnabled(true);
+       doButton.setEnabled(true);
     }
     
     /**