Changeset 608 for AE/installer2/src/net/oni2/aeinstaller/gui/settings
- Timestamp:
- Jan 14, 2013, 6:49:25 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/gui/settings
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.java
r593 r608 7 7 8 8 import javax.swing.AbstractAction; 9 import javax.swing.JCheckBox; 9 10 import javax.swing.JComboBox; 10 11 import javax.swing.JComponent; … … 33 34 private LaFComboModel laFModel; 34 35 36 private JCheckBox chkNotifyOnStart; 37 35 38 /** 36 39 * Open the settings 37 40 */ 38 41 public SettingsDialog() { 39 setMinimumSize(new Dimension( 500, (int) getSize().getHeight() + 0));42 setMinimumSize(new Dimension(320, (int) getSize().getHeight() + 0)); 40 43 41 44 AbstractAction closeAction = new AbstractAction() { … … 62 65 laFModel = new LaFComboModel(); 63 66 cmbLaF.setModel(laFModel); 67 68 chkNotifyOnStart.setSelected(set.get("notifyupdates", true)); 64 69 } 65 70 … … 68 73 Settings set = Settings.getInstance(); 69 74 70 String oldLaf = set.get("lookandfeel", 71 UIManager.getLookAndFeel().getClass().getName()); 75 set.get("notifyupdates", chkNotifyOnStart.isSelected()); 76 77 String oldLaf = set.get("lookandfeel", UIManager.getLookAndFeel() 78 .getClass().getName()); 72 79 String newLaf = laFModel.getSelectedClassName(); 73 80 -
AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.properties
r591 r608 6 6 lblLaF=GUI theme: 7 7 8 panSetupDefaults=Default values for the installations 9 lblCreateDesktop=Link auf Desktop erstellen: 10 lblDesktopFolder=Desktop-Ordner: 11 txtDesktopFolder=Relativ zum Desktop-Ordner. Z.B. "." um die Verknüpfungen direkt auf dem Desktop abzulegen, "Spiele" um die Verknüpfungen in einen Unterordner Spiele auf dem Desktop zu legen. 12 lblUnattended=<html>Schnelles Setup (obige<br>Einstellungen nicht im Setup änderbar):</html> 13 8 panCommon=Common settings 9 lblNotifyOnStart=Notify about updates on startup: 14 10 15 11 newLaF.text=A new GUI theme was selected.\nPlease restart the application in order to apply the changes. -
AE/installer2/src/net/oni2/aeinstaller/gui/settings/SettingsDialog.yml
r593 r608 10 10 - JButton(name=btnOk, text=btnOk, onAction=[save,dispose]) 11 11 - JButton(name=btnCancel, text=btnCancel, onAction=[dispose]) 12 - JPanel(name=panSetupDefaults, groupTitle=panSetupDefaults): 13 - JLabel(name=lblCreateDesktop, text=lblCreateDesktop) 14 - JCheckBox(name=chkCreateDesktop) 15 - JLabel(name=lblDesktopFolder, text=lblDesktopFolder) 16 - JTextField(name=txtDesktopFolder, toolTipText=txtDesktopFolder) 12 - JPanel(name=panCommon, groupTitle=panCommon): 13 - JLabel(name=lblNotifyOnStart, text=lblNotifyOnStart) 14 - JCheckBox(name=chkNotifyOnStart) 17 15 - MigLayout: | 18 16 [min] [grow] 19 >lblCreateDesktop chkCreateDesktop [pref] 20 >lblDesktopFolder txtDesktopFolder [pref] 17 >lblNotifyOnStart chkNotifyOnStart [pref] 21 18 - JPanel(name=panUI, groupTitle=panUI): 22 19 - JLabel(name=lblLaF, text=lblLaF) … … 27 24 - MigLayout: | 28 25 [grow] 29 pan SetupDefaults[pref]26 panCommon [pref] 30 27 panUI [pref] 31 28 >btnOk+*=1,btnCancel=1 [min]
Note:
See TracChangeset
for help on using the changeset viewer.