Hidden "default" checkboxes from the editor

This commit is contained in:
bancika
2012-08-31 12:34:00 +00:00
parent 84f2da5313
commit 5e86621f37
4 changed files with 10 additions and 2 deletions
@@ -1,3 +1,4 @@
# Uncomment lines you want to edit and change the part after the "=" sign.
#org.diylc.presenter.InstantiationManager.MAX_RECENT_COMPONENTS=20
#org.diylc.swing.plugins.canvas.CanvasPanel.USE_HARDWARE_ACCELLERATION=true
#org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true
@@ -33,6 +33,7 @@ public class PropertyEditorDialog extends ButtonDialog {
private static final long serialVersionUID = 1L;
public static boolean SHOW_DEFAULT_BOXES = false;
private static final String DEFAULT_BOX_TOOLTIP = "<html>If this box is checked application will use the current value as a<br>default when creating new components of the same type</html>";
private List<PropertyWrapper> properties;
@@ -128,7 +129,9 @@ public class PropertyEditorDialog extends ButtonDialog {
gbc.fill = GridBagConstraints.NONE;
gbc.weightx = 0;
editorPanel.add(createDefaultCheckBox(property), gbc);
if (SHOW_DEFAULT_BOXES) {
editorPanel.add(createDefaultCheckBox(property), gbc);
}
}
// Make value field focused
@@ -858,6 +858,10 @@
<changeType>NEW_FEATURE</changeType>
<description>Added support for component templates</description>
</org.diylc.appframework.update.Change>
<org.diylc.appframework.update.Change>
<changeType>IMPROVEMENT</changeType>
<description>Hidden "default" checkboxes from the editor because templates cover that functionality. If you need them back however, uncomment org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true in the config.properties file</description>
</org.diylc.appframework.update.Change>
</changes>
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
</org.diylc.appframework.update.Version>