OSDN Git Service

コメント数減少は過去ログ取得でなくとも可
authoryukihane <yukihane.feather@gmail.com>
Thu, 25 Aug 2011 11:03:34 +0000 (20:03 +0900)
committeryukihane <yukihane.feather@gmail.com>
Thu, 25 Aug 2011 11:03:34 +0000 (20:03 +0900)
frontend/src/yukihane/inqubus/gui/MainFrame.java

index d9e2762..71f9a25 100644 (file)
@@ -112,6 +112,7 @@ public class MainFrame extends JFrame {
             @Override
             public void itemStateChanged(ItemEvent e) {
                 final boolean selected = (e.getStateChange() == ItemEvent.SELECTED);
+                cbBackLogReduce.setEnabled(!selected);
                 cbBackLog.setEnabled(!selected);
                 if(selected) {
                     cbBackLog.setSelected(false);
@@ -237,9 +238,10 @@ public class MainFrame extends JFrame {
                                 .addComponent(btnVideo))
                             .addGroup(gl_pnlInputMain.createSequentialGroup()
                                 .addComponent(fldId, GroupLayout.PREFERRED_SIZE, 100, GroupLayout.PREFERRED_SIZE)
+                                .addPreferredGap(ComponentPlacement.UNRELATED)
+                                .addComponent(cbBackLogReduce)
                                 .addComponent(cbBackLog)
                                 .addComponent(fldBackLog, GroupLayout.PREFERRED_SIZE, 150, GroupLayout.PREFERRED_SIZE)
-                                .addComponent(cbBackLogReduce)
                             )
                             .addGroup(Alignment.TRAILING, gl_pnlInputMain.createSequentialGroup()
                                 .addGroup(gl_pnlInputMain.createParallelGroup(Alignment.TRAILING)
@@ -263,9 +265,9 @@ public class MainFrame extends JFrame {
                 .addGroup(gl_pnlInputMain.createParallelGroup(Alignment.BASELINE)
                     .addComponent(fldId, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                     .addComponent(lblId)
+                    .addComponent(cbBackLogReduce)
                     .addComponent(cbBackLog)
                     .addComponent(fldBackLog)
-                    .addComponent(cbBackLogReduce)
                 )
                 .addPreferredGap(ComponentPlacement.RELATED)
                 .addGroup(gl_pnlInputMain.createParallelGroup(Alignment.BASELINE)
@@ -412,6 +414,9 @@ public class MainFrame extends JFrame {
             text = p.getVideoFileNamePattern();
         }
         field.setText(text);
+
+        fldId.setEnabled(!(cbVideoLocal.isSelected() && cbCommentLocal.isSelected()));
+
     }//GEN-LAST:event_useMovieLocalCheckBoxItemStateChanged
 
     private void outputConvertCheckBoxItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_outputConvertCheckBoxItemStateChanged
@@ -451,9 +456,9 @@ public class MainFrame extends JFrame {
     private final JButton btnDeselect;
     //入力領域 - 標準
     private final JTextField fldId;
+    private final JCheckBox cbBackLogReduce = new JCheckBox("コメ数減少");
     private final JCheckBox cbBackLog = new JCheckBox("過去ログ");
     private final JTextField fldBackLog = new JTextField();
-    private final JCheckBox cbBackLogReduce = new JCheckBox("コメ数減少");
     private final JCheckBox cbVideoLocal;
     private final JTextField fldVideo;
     private final JButton btnVideo;
@@ -479,10 +484,8 @@ public class MainFrame extends JFrame {
             public void itemStateChanged(ItemEvent e) {
                 final boolean selected = (e.getStateChange() == ItemEvent.SELECTED);
                 fldBackLog.setEnabled(selected);
-                cbBackLogReduce.setEnabled(selected);
             }
         });
-        cbBackLogReduce.setEnabled(false);
         cbBackLogReduce.setToolTipText("「コメントの量を減らす」場合はチェックを付けます。");
 
         final boolean movieLocal = p.getVideoUseLocal();