diff --git a/src/net/apocalypselabs/symat/Help.form b/src/net/apocalypselabs/symat/Help.form index 5bdb2c1..8bddba7 100644 --- a/src/net/apocalypselabs/symat/Help.form +++ b/src/net/apocalypselabs/symat/Help.form @@ -66,17 +66,21 @@ - + - - - + + + + + + + diff --git a/src/net/apocalypselabs/symat/Help.java b/src/net/apocalypselabs/symat/Help.java index 597e111..5d5e8af 100644 --- a/src/net/apocalypselabs/symat/Help.java +++ b/src/net/apocalypselabs/symat/Help.java @@ -66,6 +66,7 @@ public class Help extends javax.swing.JInternalFrame { private final StyleSheet styleSheet; private final StyleSheet dark = new StyleSheet(); private final StyleSheet light = new StyleSheet(); + private int styleloaded = -1; /** * Creates new form Help @@ -96,20 +97,28 @@ public class Help extends javax.swing.JInternalFrame { * (Re)load the theme for this window. */ private void loadTheme() { - if (PrefStorage.getSetting("theme").equals("dark")) { - topicList.setBackground(new Color(41, 49, 52)); - topicList.setForeground(Color.WHITE); - styleSheet.addStyleSheet(dark); - styleSheet.removeStyleSheet(light); - setBackground(Color.DARK_GRAY); - } else { - topicList.setBackground(Color.WHITE); - topicList.setForeground(Color.BLACK); - styleSheet.addStyleSheet(light); - styleSheet.removeStyleSheet(dark); - setBackground(Color.LIGHT_GRAY); + if ((PrefStorage.getSetting("theme").equals("dark") && styleloaded == 0) + || (!PrefStorage.getSetting("theme").equals("dark") && styleloaded == 1)) { + styleloaded = -1; + } + if (styleloaded == -1) { + if (PrefStorage.getSetting("theme").equals("dark")) { + topicList.setBackground(new Color(41, 49, 52)); + topicList.setForeground(Color.WHITE); + styleSheet.addStyleSheet(dark); + styleSheet.removeStyleSheet(light); + setBackground(Color.DARK_GRAY); + styleloaded = 1; + } else { + topicList.setBackground(Color.WHITE); + topicList.setForeground(Color.BLACK); + styleSheet.addStyleSheet(light); + styleSheet.removeStyleSheet(dark); + setBackground(Color.LIGHT_GRAY); + styleloaded = 0; + } + loadTopic(topicList.getSelectedValue().toString().toLowerCase()); } - loadTopic(topicList.getSelectedValue().toString().toLowerCase()); } /** @@ -153,12 +162,13 @@ public class Help extends javax.swing.JInternalFrame { jSplitPane1.setResizeWeight(0.1); topicList.setModel(new javax.swing.AbstractListModel() { - String[] strings = { "Welcome", "Basics", "Editor", "Graphing", "Commands", "Licenses" }; + String[] strings = { "Welcome", "Basics", "Editor", "Pads", "Graphing", "Plugins", "Tasks", "Commands", "Licenses" }; public int getSize() { return strings.length; } public Object getElementAt(int i) { return strings[i]; } }); topicList.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION); topicList.setSelectedIndex(0); + topicList.setVisibleRowCount(9); topicList.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { topicListMouseClicked(evt); diff --git a/src/net/apocalypselabs/symat/help/editor.html b/src/net/apocalypselabs/symat/help/editor.html index 0aef550..76b07fb 100644 --- a/src/net/apocalypselabs/symat/help/editor.html +++ b/src/net/apocalypselabs/symat/help/editor.html @@ -7,12 +7,15 @@

The code editor allows you to make scripts that can do many things.
Scripts can be written in JavaScript or in Python.
To switch languages, use the Language option on the Run menu. +
To run code, press F5 on your keyboard, or click Run > Run Code. +
If your script is unresponsive, use the Kill Script button on the Run menu.

Exporting Code

You can export syntax-highlighted (colored) code to HTML or PDF with the Export tool. This is useful for generating reports or for publishing to the Internet.
The code will be formatted according to the currently selected - language in the editor.

+ language in the editor. +
Optionally, the contents of the Output window can be included in the exported file.

diff --git a/src/net/apocalypselabs/symat/help/pads.html b/src/net/apocalypselabs/symat/help/pads.html new file mode 100644 index 0000000..ff352f5 --- /dev/null +++ b/src/net/apocalypselabs/symat/help/pads.html @@ -0,0 +1,23 @@ + + + Tasks + + +

Task Lists

+

+ Create a new Task List from the SyMAT Menu or the Tools tab. +
Items can be added from the Edit menu. + To change the values of a task item, + click the corresponding menu button. +
To delete an item, check the Delete this Task + box from its settings. +
The task list can be named from the Edit menu. + Choose List Title... and enter a name. +

+

+ Task lists can be exported as HTML (web page), + so they can be viewed in any web browser. + Select the Export option from the File menu. +

+ + diff --git a/src/net/apocalypselabs/symat/help/plugins.html b/src/net/apocalypselabs/symat/help/plugins.html new file mode 100644 index 0000000..960f79f --- /dev/null +++ b/src/net/apocalypselabs/symat/help/plugins.html @@ -0,0 +1,16 @@ + + + Pads + + +

Pads

+

+ You can work on code with other people around the world. + Select File > Share... to upload the current script to SyMAT's + servers. Share the address SyMAT gives you, and other people can + access the script online. +
To access a script, open Pads from the Tools tab. + You can add, share, edit, and download pads from this window. +

+ + diff --git a/src/net/apocalypselabs/symat/help/tasks.html b/src/net/apocalypselabs/symat/help/tasks.html new file mode 100644 index 0000000..ff352f5 --- /dev/null +++ b/src/net/apocalypselabs/symat/help/tasks.html @@ -0,0 +1,23 @@ + + + Tasks + + +

Task Lists

+

+ Create a new Task List from the SyMAT Menu or the Tools tab. +
Items can be added from the Edit menu. + To change the values of a task item, + click the corresponding menu button. +
To delete an item, check the Delete this Task + box from its settings. +
The task list can be named from the Edit menu. + Choose List Title... and enter a name. +

+

+ Task lists can be exported as HTML (web page), + so they can be viewed in any web browser. + Select the Export option from the File menu. +

+ + diff --git a/src/net/apocalypselabs/symat/images/splash2.0.png b/src/net/apocalypselabs/symat/images/splash2.0.png deleted file mode 100644 index 35fc6e9..0000000 Binary files a/src/net/apocalypselabs/symat/images/splash2.0.png and /dev/null differ