mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-12 02:02:16 +10:00
Hidden "default" checkboxes from the editor
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
# Uncomment lines you want to edit and change the part after the "=" sign.
|
# Uncomment lines you want to edit and change the part after the "=" sign.
|
||||||
#org.diylc.presenter.InstantiationManager.MAX_RECENT_COMPONENTS=20
|
#org.diylc.presenter.InstantiationManager.MAX_RECENT_COMPONENTS=20
|
||||||
#org.diylc.swing.plugins.canvas.CanvasPanel.USE_HARDWARE_ACCELLERATION=true
|
#org.diylc.swing.plugins.canvas.CanvasPanel.USE_HARDWARE_ACCELLERATION=true
|
||||||
|
#org.diylc.swing.gui.editor.PropertyEditorDialog.SHOW_DEFAULT_BOXES=true
|
||||||
Binary file not shown.
+4
-1
@@ -33,6 +33,7 @@ public class PropertyEditorDialog extends ButtonDialog {
|
|||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
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 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;
|
private List<PropertyWrapper> properties;
|
||||||
@@ -128,7 +129,9 @@ public class PropertyEditorDialog extends ButtonDialog {
|
|||||||
gbc.fill = GridBagConstraints.NONE;
|
gbc.fill = GridBagConstraints.NONE;
|
||||||
gbc.weightx = 0;
|
gbc.weightx = 0;
|
||||||
|
|
||||||
editorPanel.add(createDefaultCheckBox(property), gbc);
|
if (SHOW_DEFAULT_BOXES) {
|
||||||
|
editorPanel.add(createDefaultCheckBox(property), gbc);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make value field focused
|
// Make value field focused
|
||||||
|
|||||||
@@ -857,6 +857,10 @@
|
|||||||
<org.diylc.appframework.update.Change>
|
<org.diylc.appframework.update.Change>
|
||||||
<changeType>NEW_FEATURE</changeType>
|
<changeType>NEW_FEATURE</changeType>
|
||||||
<description>Added support for component templates</description>
|
<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>
|
</org.diylc.appframework.update.Change>
|
||||||
</changes>
|
</changes>
|
||||||
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
|
<url>http://code.google.com/p/diy-layout-creator/downloads/list</url>
|
||||||
|
|||||||
Reference in New Issue
Block a user