mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-15 12:29:26 +01:00
Adding preferences for verbose compilation and upload.
This commit is contained in:
parent
f1146d80a5
commit
3625a1001e
@ -113,6 +113,8 @@ public class Preferences {
|
|||||||
|
|
||||||
JTextField sketchbookLocationField;
|
JTextField sketchbookLocationField;
|
||||||
JCheckBox exportSeparateBox;
|
JCheckBox exportSeparateBox;
|
||||||
|
JCheckBox verboseCompilationBox;
|
||||||
|
JCheckBox verboseUploadBox;
|
||||||
JCheckBox deletePreviousBox;
|
JCheckBox deletePreviousBox;
|
||||||
JCheckBox externalEditorBox;
|
JCheckBox externalEditorBox;
|
||||||
JCheckBox memoryOverrideBox;
|
JCheckBox memoryOverrideBox;
|
||||||
@ -279,6 +281,21 @@ public class Preferences {
|
|||||||
top += d.height + GUI_BETWEEN;
|
top += d.height + GUI_BETWEEN;
|
||||||
|
|
||||||
|
|
||||||
|
// Show verbose output during: [ ] compilation [ ] upload
|
||||||
|
|
||||||
|
box = Box.createHorizontalBox();
|
||||||
|
label = new JLabel("Show verbose output during: ");
|
||||||
|
box.add(label);
|
||||||
|
verboseCompilationBox = new JCheckBox("compilation ");
|
||||||
|
box.add(verboseCompilationBox);
|
||||||
|
verboseUploadBox = new JCheckBox("upload");
|
||||||
|
box.add(verboseUploadBox);
|
||||||
|
pain.add(box);
|
||||||
|
d = box.getPreferredSize();
|
||||||
|
box.setBounds(left, top, d.width, d.height);
|
||||||
|
top += d.height + GUI_BETWEEN;
|
||||||
|
|
||||||
|
|
||||||
// [ ] Delete previous applet or application folder on export
|
// [ ] Delete previous applet or application folder on export
|
||||||
|
|
||||||
deletePreviousBox =
|
deletePreviousBox =
|
||||||
@ -461,6 +478,8 @@ public class Preferences {
|
|||||||
*/
|
*/
|
||||||
protected void applyFrame() {
|
protected void applyFrame() {
|
||||||
// put each of the settings into the table
|
// put each of the settings into the table
|
||||||
|
setBoolean("build.verbose", verboseCompilationBox.isSelected());
|
||||||
|
setBoolean("upload.verbose", verboseUploadBox.isSelected());
|
||||||
setBoolean("export.delete_target_folder",
|
setBoolean("export.delete_target_folder",
|
||||||
deletePreviousBox.isSelected());
|
deletePreviousBox.isSelected());
|
||||||
|
|
||||||
@ -516,6 +535,8 @@ public class Preferences {
|
|||||||
this.editor = editor;
|
this.editor = editor;
|
||||||
|
|
||||||
// set all settings entry boxes to their actual status
|
// set all settings entry boxes to their actual status
|
||||||
|
verboseCompilationBox.setSelected(getBoolean("build.verbose"));
|
||||||
|
verboseUploadBox.setSelected(getBoolean("upload.verbose"));
|
||||||
deletePreviousBox.
|
deletePreviousBox.
|
||||||
setSelected(getBoolean("export.delete_target_folder"));
|
setSelected(getBoolean("export.delete_target_folder"));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user