OSDN Git Service

config画面に投稿者コメントのみ設定コンポーネント配置
authoryukihane <yukihane.feather@gmail.com>
Sun, 13 May 2012 07:00:44 +0000 (16:00 +0900)
committeryukihane <yukihane.feather@gmail.com>
Sun, 13 May 2012 07:19:40 +0000 (16:19 +0900)
frontend/src/yukihane/inqubus/gui/ConfigDialog.java

index abf79e1..71bcbbe 100644 (file)
@@ -83,6 +83,7 @@ public class ConfigDialog extends JDialog {
         final JLabel lblCommentMinSizeManual = new JLabel();
         final JLabel lblCommentDisplayMax = new JLabel();
         final JLabel lblCommentDisplayMaxManual = new JLabel();
+        final JLabel lblCommentOwnerOnly = new JLabel();
         final JPanel pnlCommentAdvanced = new JPanel();
         final JLabel lblFontPath = new JLabel();
         cbFontSizeArrangeDisable = new JCheckBox();
@@ -376,6 +377,8 @@ public class ConfigDialog extends JDialog {
 
         lblCommentDisplayMaxManual.setText("手動設定");
 
+        lblCommentOwnerOnly.setText("取得するコメントの種類");
+
         GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
         pnlCommentStandard.setLayout(gl_pnlCommentStandard);
         gl_pnlCommentStandard.setAutoCreateContainerGaps(true);
@@ -385,20 +388,30 @@ public class ConfigDialog extends JDialog {
                 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
                     .addComponent(lblCommentSize)
                     .addComponent(lblCommentMinSize)
-                    .addComponent(lblCommentDisplayMax))
-                .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
-                    .addComponent(cbCommentSizeAuto)
-                    .addComponent(cbCommentMinDisable)
-                    .addComponent(cbCommentMinSizeAuto)
-                    .addComponent(cbCommentDisplaySizeDefault))
-                .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
-                    .addComponent(lblCommentSizeManual)
-                    .addComponent(lblCommentMinSizeManual)
-                    .addComponent(lblCommentDisplayMaxManual))
+                    .addComponent(lblCommentDisplayMax)
+                    .addComponent(lblCommentOwnerOnly)
+                )
                 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
-                    .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
-                    .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
-                    .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+                    .addGroup(gl_pnlCommentStandard.createSequentialGroup()
+                        .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+                            .addComponent(cbCommentSizeAuto)
+                            .addComponent(cbCommentMinDisable)
+                            .addComponent(cbCommentMinSizeAuto)
+                            .addComponent(cbCommentDisplaySizeDefault)
+                        )
+                        .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+                            .addComponent(lblCommentSizeManual)
+                            .addComponent(lblCommentMinSizeManual)
+                            .addComponent(lblCommentDisplayMaxManual))
+                        .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
+                            .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+                            .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
+                            .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
+                    )
+                    .addGroup(gl_pnlCommentStandard.createSequentialGroup()
+                        .addComponent(cbCommentOwnerOnly)
+                    )
+                )
         );
         gl_pnlCommentStandard.setVerticalGroup(
             gl_pnlCommentStandard.createSequentialGroup()
@@ -420,6 +433,10 @@ public class ConfigDialog extends JDialog {
                     .addComponent(cbCommentDisplaySizeDefault)
                     .addComponent(lblCommentDisplayMaxManual)
                     .addComponent(fldCommentDisplaySizeManual))
+                .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
+                    .addComponent(lblCommentOwnerOnly)
+                    .addComponent(cbCommentOwnerOnly)
+                )
         );
 
         pnlCommentAdvanced.setBorder(BorderFactory.createTitledBorder("高度な設定"));
@@ -830,6 +847,7 @@ public class ConfigDialog extends JDialog {
     private final NumberFormattedTextField fldCommentMinSizeManual = new NumberFormattedTextField();
     private final JCheckBox cbCommentDisplaySizeDefault = new JCheckBox("標準(30)");
     private final NumberFormattedTextField fldCommentDisplaySizeManual = new NumberFormattedTextField();
+    private final JCheckBox cbCommentOwnerOnly = new JCheckBox("投稿者コメントのみ");
     // コメント - 高度な設定
     private final JTextField fldFontPath;
     private final JTextField fldFontIndex;