| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -201,7 +201,7 @@ examples.core_libraries = Core Libraries | |||
| 201 | 201 | export = Export Options | |
| 202 | 202 | export.platforms = Platforms | |
| 203 | 203 | export.options = Options | |
| 204 | - export.options.fullscreen = Full Screen (Present mode) | ||
| 204 | + export.options.present = Presentation Mode | ||
| 205 | 205 | export.options.show_stop_button = Show a Stop button | |
| 206 | 206 | export.description.line1 = Export to Application creates double-clickable, | |
| 207 | 207 | export.description.line2 = standalone applications for the selected platforms. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1155,7 +1155,7 @@ protected boolean exportApplication(File destFolder, | |||
| 1155 | 1155 | } | |
| 1156 | 1156 | while ((index = sb.indexOf("@@lsuipresentationmode@@")) != -1) { | |
| 1157 | 1157 | sb.replace(index, index + "@@lsuipresentationmode@@".length(), | |
| 1158 | - Preferences.getBoolean("export.application.fullscreen") ? "4" : "0"); | ||
| 1158 | + Preferences.getBoolean("export.application.present") ? "4" : "0"); | ||
| 1159 | 1159 | } | |
| 1160 | 1160 | ||
| 1161 | 1161 | lines[i] = sb.toString(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -740,25 +740,24 @@ public void itemStateChanged(ItemEvent e) { | |||
| 740 | 740 | Preferences.setBoolean("export.application.stop", showStopButton.isSelected()); | |
| 741 | 741 | } | |
| 742 | 742 | }); | |
| 743 | - showStopButton.setEnabled(Preferences.getBoolean("export.application.fullscreen")); | ||
| 743 | + showStopButton.setEnabled(Preferences.getBoolean("export.application.present")); | ||
| 744 | 744 | showStopButton.setBorder(new EmptyBorder(3, 13 + indent, 6, 13)); | |
| 745 | 745 | ||
| 746 | - final JCheckBox fullScreenButton = new JCheckBox(Language.text("export.options.fullscreen")); | ||
| 747 | - //fullscreenButton.setMnemonic(KeyEvent.VK_F); | ||
| 748 | - fullScreenButton.setSelected(Preferences.getBoolean("export.application.fullscreen")); | ||
| 749 | - fullScreenButton.addItemListener(new ItemListener() { | ||
| 746 | + final JCheckBox presentButton = new JCheckBox(Language.text("export.options.fullscreen")); | ||
| 747 | + presentButton.setSelected(Preferences.getBoolean("export.application.present")); | ||
| 748 | + presentButton.addItemListener(new ItemListener() { | ||
| 750 | 749 | public void itemStateChanged(ItemEvent e) { | |
| 751 | - boolean sal = fullScreenButton.isSelected(); | ||
| 752 | - Preferences.setBoolean("export.application.fullscreen", sal); | ||
| 750 | + boolean sal = presentButton.isSelected(); | ||
| 751 | + Preferences.setBoolean("export.application.present", sal); | ||
| 753 | 752 | showStopButton.setEnabled(sal); | |
| 754 | 753 | } | |
| 755 | 754 | }); | |
| 756 | - fullScreenButton.setBorder(new EmptyBorder(3, 13, 3, 13)); | ||
| 755 | + presentButton.setBorder(new EmptyBorder(3, 13, 3, 13)); | ||
| 757 | 756 | ||
| 758 | 757 | JPanel presentPanel = new JPanel(); | |
| 759 | 758 | presentPanel.setLayout(new BoxLayout(presentPanel, BoxLayout.Y_AXIS)); | |
| 760 | 759 | Box fullScreenBox = Box.createHorizontalBox(); | |
| 761 | - fullScreenBox.add(fullScreenButton); | ||
| 760 | + fullScreenBox.add(presentButton); | ||
| 762 | 761 | ||
| 763 | 762 | /* | |
| 764 | 763 | //run.present.stop.color | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -997,8 +997,8 @@ protected void writeFooter(PrintWriter out, String className) { | |||
| 997 | 997 | //out.print(indent + indent + "PApplet.main(new String[] { "); | |
| 998 | 998 | out.print(indent + indent + "String[] appletArgs = new String[] { "); | |
| 999 | 999 | ||
| 1000 | - if (Preferences.getBoolean("export.application.fullscreen")) { | ||
| 1001 | - out.print("\"" + PApplet.ARGS_FULL_SCREEN + "\", "); | ||
| 1000 | + if (Preferences.getBoolean("export.application.present")) { | ||
| 1001 | + out.print("\"" + PApplet.ARGS_PRESENT + "\", "); | ||
| 1002 | 1002 | ||
| 1003 | 1003 | String farbe = Preferences.get("run.present.bgcolor"); | |
| 1004 | 1004 | out.print("\"" + PApplet.ARGS_WINDOW_COLOR + "=" + farbe + "\", "); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -379,7 +379,7 @@ protected String[] getSketchParams(boolean presenting) { | |||
| 379 | 379 | ||
| 380 | 380 | ||
| 381 | 381 | if (presenting) { | |
| 382 | - params.add(PApplet.ARGS_FULL_SCREEN); | ||
| 382 | + params.add(PApplet.ARGS_PRESENT); | ||
| 383 | 383 | // if (Preferences.getBoolean("run.present.exclusive")) { | |
| 384 | 384 | // params.add(PApplet.ARGS_EXCLUSIVE); | |
| 385 | 385 | // } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments