• R/O
  • HTTP
  • SSH
  • HTTPS

inqubus: Commit

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


Commit MetaInfo

Revision5d7c0836915feaf7c0e8fc0adf1aa942c86a67f4 (tree)
Zeit2011-09-03 19:12:45
Autoryukihane <yukihane.feather@gmai...>
Commiteryukihane

Log Message

再起動が必要な旨のメッセージを表示

Ändern Zusammenfassung

Diff

--- a/frontend/src/yukihane/inqubus/gui/ConfigDialog.java
+++ b/frontend/src/yukihane/inqubus/gui/ConfigDialog.java
@@ -45,6 +45,7 @@ import yukihane.inqubus.Config;
4545 public class ConfigDialog extends JDialog {
4646 private static final long serialVersionUID = 1L;
4747 private static final Logger logger = Logger.getLogger(ConfigDialog.class.getName());
48+ private static final String NEED_REBOOT = "設定を有効にするにはいんきゅばすの再起動が必要です";
4849
4950 /** Creates new form Properties */
5051 public ConfigDialog() {
@@ -537,8 +538,6 @@ public class ConfigDialog extends JDialog {
537538
538539 pnlFfmpegParam.setBorder(BorderFactory.createTitledBorder("ffmpegパラメータ"));
539540
540-
541-
542541 final GroupLayout glFfmpeg = new GroupLayout(pnlFfmpeg);
543542 glFfmpeg.setAutoCreateContainerGaps(true);
544543 pnlFfmpeg.setLayout(glFfmpeg);
@@ -583,6 +582,8 @@ public class ConfigDialog extends JDialog {
583582 pnlSearchVideo.setBorder(BorderFactory.createTitledBorder("動画検索対象フォルダ"));
584583 pnlSearchComment.setBorder(BorderFactory.createTitledBorder("コメント検索対象フォルダ"));
585584
585+ final JLabel lblSearchNeedReboot = new JLabel(NEED_REBOOT);
586+
586587 GroupLayout gl_pnlSearch = new GroupLayout(pnlSearch);
587588 pnlSearch.setLayout(gl_pnlSearch);
588589 gl_pnlSearch.setHorizontalGroup(
@@ -590,6 +591,7 @@ public class ConfigDialog extends JDialog {
590591 .addGroup(GroupLayout.Alignment.TRAILING, gl_pnlSearch.createSequentialGroup()
591592 .addContainerGap()
592593 .addGroup(gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.TRAILING)
594+ .addComponent(lblSearchNeedReboot, Alignment.CENTER)
593595 .addComponent(pnlSearchComment, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
594596 .addComponent(pnlSearchVideo, GroupLayout.Alignment.LEADING, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
595597 .addContainerGap())
@@ -598,6 +600,7 @@ public class ConfigDialog extends JDialog {
598600 gl_pnlSearch.createParallelGroup(GroupLayout.Alignment.LEADING)
599601 .addGroup(gl_pnlSearch.createSequentialGroup()
600602 .addContainerGap()
603+ .addComponent(lblSearchNeedReboot)
601604 .addComponent(pnlSearchVideo, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
602605 .addPreferredGap(ComponentPlacement.RELATED)
603606 .addComponent(pnlSearchComment, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
@@ -714,6 +717,8 @@ public class ConfigDialog extends JDialog {
714717 )
715718 );
716719
720+ final JLabel lblSystemNeedReboot = new JLabel("設定を有効にするにはいんきゅばすの再起動が必要です");
721+
717722 final JPanel pnlSystem = new JPanel();
718723 pnlSystem.setBorder(BorderFactory.createEmptyBorder(1, 1, 1, 1));
719724 final GroupLayout glSystem = new GroupLayout(pnlSystem);
@@ -722,9 +727,11 @@ public class ConfigDialog extends JDialog {
722727 pnlSystem.setLayout(glSystem);
723728
724729 glSystem.setHorizontalGroup(glSystem.createParallelGroup()
730+ .addComponent(lblSystemNeedReboot, Alignment.CENTER)
725731 .addComponent(pnlSystemGeneral));
726732
727733 glSystem.setVerticalGroup(glSystem.createSequentialGroup()
734+ .addComponent(lblSystemNeedReboot)
728735 .addComponent(pnlSystemGeneral));
729736
730737 tabbedPane.add("システム", pnlSystem);
Show on old repository browser