• R/O
  • HTTP
  • SSH
  • HTTPS

inqubus: Commit

いんきゅばす(仮称; 旧名: さきゅばすのNicoBrowser拡張版)


Commit MetaInfo

Revisioncc9016e22d7282a142ce92294de3b0ba536b2808 (tree)
Zeit2012-05-13 16:19:40
Autoryukihane <yukihane.feather@gmai...>
Commiteryukihane

Log Message

config画面に投稿者コメントのみ設定コンポーネント配置

Ändern Zusammenfassung

Diff

--- a/frontend/src/yukihane/inqubus/gui/ConfigDialog.java
+++ b/frontend/src/yukihane/inqubus/gui/ConfigDialog.java
@@ -83,6 +83,7 @@ public class ConfigDialog extends JDialog {
8383 final JLabel lblCommentMinSizeManual = new JLabel();
8484 final JLabel lblCommentDisplayMax = new JLabel();
8585 final JLabel lblCommentDisplayMaxManual = new JLabel();
86+ final JLabel lblCommentOwnerOnly = new JLabel();
8687 final JPanel pnlCommentAdvanced = new JPanel();
8788 final JLabel lblFontPath = new JLabel();
8889 cbFontSizeArrangeDisable = new JCheckBox();
@@ -376,6 +377,8 @@ public class ConfigDialog extends JDialog {
376377
377378 lblCommentDisplayMaxManual.setText("手動設定");
378379
380+ lblCommentOwnerOnly.setText("取得するコメントの種類");
381+
379382 GroupLayout gl_pnlCommentStandard = new GroupLayout(pnlCommentStandard);
380383 pnlCommentStandard.setLayout(gl_pnlCommentStandard);
381384 gl_pnlCommentStandard.setAutoCreateContainerGaps(true);
@@ -385,20 +388,30 @@ public class ConfigDialog extends JDialog {
385388 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
386389 .addComponent(lblCommentSize)
387390 .addComponent(lblCommentMinSize)
388- .addComponent(lblCommentDisplayMax))
389- .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
390- .addComponent(cbCommentSizeAuto)
391- .addComponent(cbCommentMinDisable)
392- .addComponent(cbCommentMinSizeAuto)
393- .addComponent(cbCommentDisplaySizeDefault))
394- .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
395- .addComponent(lblCommentSizeManual)
396- .addComponent(lblCommentMinSizeManual)
397- .addComponent(lblCommentDisplayMaxManual))
391+ .addComponent(lblCommentDisplayMax)
392+ .addComponent(lblCommentOwnerOnly)
393+ )
398394 .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
399- .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
400- .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
401- .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
395+ .addGroup(gl_pnlCommentStandard.createSequentialGroup()
396+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
397+ .addComponent(cbCommentSizeAuto)
398+ .addComponent(cbCommentMinDisable)
399+ .addComponent(cbCommentMinSizeAuto)
400+ .addComponent(cbCommentDisplaySizeDefault)
401+ )
402+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
403+ .addComponent(lblCommentSizeManual)
404+ .addComponent(lblCommentMinSizeManual)
405+ .addComponent(lblCommentDisplayMaxManual))
406+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.LEADING)
407+ .addComponent(fldCommentSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
408+ .addComponent(fldCommentMinSizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
409+ .addComponent(fldCommentDisplaySizeManual, 48, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))
410+ )
411+ .addGroup(gl_pnlCommentStandard.createSequentialGroup()
412+ .addComponent(cbCommentOwnerOnly)
413+ )
414+ )
402415 );
403416 gl_pnlCommentStandard.setVerticalGroup(
404417 gl_pnlCommentStandard.createSequentialGroup()
@@ -420,6 +433,10 @@ public class ConfigDialog extends JDialog {
420433 .addComponent(cbCommentDisplaySizeDefault)
421434 .addComponent(lblCommentDisplayMaxManual)
422435 .addComponent(fldCommentDisplaySizeManual))
436+ .addGroup(gl_pnlCommentStandard.createParallelGroup(GroupLayout.Alignment.BASELINE)
437+ .addComponent(lblCommentOwnerOnly)
438+ .addComponent(cbCommentOwnerOnly)
439+ )
423440 );
424441
425442 pnlCommentAdvanced.setBorder(BorderFactory.createTitledBorder("高度な設定"));
@@ -830,6 +847,7 @@ public class ConfigDialog extends JDialog {
830847 private final NumberFormattedTextField fldCommentMinSizeManual = new NumberFormattedTextField();
831848 private final JCheckBox cbCommentDisplaySizeDefault = new JCheckBox("標準(30)");
832849 private final NumberFormattedTextField fldCommentDisplaySizeManual = new NumberFormattedTextField();
850+ private final JCheckBox cbCommentOwnerOnly = new JCheckBox("投稿者コメントのみ");
833851 // コメント - 高度な設定
834852 private final JTextField fldFontPath;
835853 private final JTextField fldFontIndex;
Show on old repository browser