diff --git a/.gitignore b/.gitignore index 844b4ac..b63fdc4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ -/distribution/* -/resources/local.properties -.classpath -.project +/distribution/* +/resources/local.properties +.classpath +.project +/bin/* diff --git a/README.md b/README.md index dc87304..77c1682 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,16 @@ It lets you snap blocks together to create snippets of code. ### About +<<<<<<< HEAD +The Processing Blocks Tool is currently in pre-alpha. +This is the source repository. +For more information check out the [BlocksTool website](http://bitcraftlab.github.com/Processing-Blocks-Tool/). +======= The Processing Blocks Tool is currently in **pre-alpha**. This is the source repository. For more information check out the [BlocksTool website](http://bitcraftlab.github.com/Processing-Blocks-Tool/). Developer info can be found inside the [wiki](https://github.com/bitcraftlab/Processing-Blocks-Tool/wiki). +>>>>>>> 5a61432abef787d0842e073efabefd9908ad6e6e ### License diff --git a/data/images/barcharticon.gif b/data/images/barcharticon.gif new file mode 100644 index 0000000..45bfa7c Binary files /dev/null and b/data/images/barcharticon.gif differ diff --git a/data/images/color gradient 2.PNG b/data/images/color gradient 2.PNG new file mode 100644 index 0000000..a130805 Binary files /dev/null and b/data/images/color gradient 2.PNG differ diff --git a/data/images/color gradient 3.PNG b/data/images/color gradient 3.PNG new file mode 100644 index 0000000..1bbd4da Binary files /dev/null and b/data/images/color gradient 3.PNG differ diff --git a/data/images/color gradient.PNG b/data/images/color gradient.PNG new file mode 100644 index 0000000..23a7105 Binary files /dev/null and b/data/images/color gradient.PNG differ diff --git a/data/images/eye.png b/data/images/eye.png new file mode 100644 index 0000000..42af3e8 Binary files /dev/null and b/data/images/eye.png differ diff --git a/data/images/globals.png b/data/images/globals.png new file mode 100644 index 0000000..6fd7ebc Binary files /dev/null and b/data/images/globals.png differ diff --git a/data/images/histogramicon.gif b/data/images/histogramicon.gif new file mode 100644 index 0000000..c458dca Binary files /dev/null and b/data/images/histogramicon.gif differ diff --git a/data/images/linecharticon.gif b/data/images/linecharticon.gif new file mode 100644 index 0000000..152d65c Binary files /dev/null and b/data/images/linecharticon.gif differ diff --git a/data/images/patchvars.png b/data/images/patchvars.png new file mode 100644 index 0000000..184f0e9 Binary files /dev/null and b/data/images/patchvars.png differ diff --git a/data/images/runtime.png b/data/images/runtime.png new file mode 100644 index 0000000..c0086bc Binary files /dev/null and b/data/images/runtime.png differ diff --git a/data/images/scatterploticon.gif b/data/images/scatterploticon.gif new file mode 100644 index 0000000..1ed0c9e Binary files /dev/null and b/data/images/scatterploticon.gif differ diff --git a/data/images/setup.png b/data/images/setup.png new file mode 100644 index 0000000..472b362 Binary files /dev/null and b/data/images/setup.png differ diff --git a/data/images/shoulder.png b/data/images/shoulder.png new file mode 100644 index 0000000..4514e65 Binary files /dev/null and b/data/images/shoulder.png differ diff --git a/data/images/trash.png b/data/images/trash.png new file mode 100644 index 0000000..cbd5daf Binary files /dev/null and b/data/images/trash.png differ diff --git a/data/images/trash0000.png b/data/images/trash0000.png new file mode 100644 index 0000000..06d1e66 Binary files /dev/null and b/data/images/trash0000.png differ diff --git a/data/images/trash0023.png b/data/images/trash0023.png new file mode 100644 index 0000000..da4555c Binary files /dev/null and b/data/images/trash0023.png differ diff --git a/data/images/trash_animated/Thumbs.db b/data/images/trash_animated/Thumbs.db new file mode 100644 index 0000000..1910e9b Binary files /dev/null and b/data/images/trash_animated/Thumbs.db differ diff --git a/data/images/trash_animated/trash0000.png b/data/images/trash_animated/trash0000.png new file mode 100644 index 0000000..06d1e66 Binary files /dev/null and b/data/images/trash_animated/trash0000.png differ diff --git a/data/images/trash_animated/trash0001.png b/data/images/trash_animated/trash0001.png new file mode 100644 index 0000000..6eeb2be Binary files /dev/null and b/data/images/trash_animated/trash0001.png differ diff --git a/data/images/trash_animated/trash0002.png b/data/images/trash_animated/trash0002.png new file mode 100644 index 0000000..9f07cf2 Binary files /dev/null and b/data/images/trash_animated/trash0002.png differ diff --git a/data/images/trash_animated/trash0003.png b/data/images/trash_animated/trash0003.png new file mode 100644 index 0000000..4768c36 Binary files /dev/null and b/data/images/trash_animated/trash0003.png differ diff --git a/data/images/trash_animated/trash0004.png b/data/images/trash_animated/trash0004.png new file mode 100644 index 0000000..b46ad57 Binary files /dev/null and b/data/images/trash_animated/trash0004.png differ diff --git a/data/images/trash_animated/trash0005.png b/data/images/trash_animated/trash0005.png new file mode 100644 index 0000000..f90c5d2 Binary files /dev/null and b/data/images/trash_animated/trash0005.png differ diff --git a/data/images/trash_animated/trash0006.png b/data/images/trash_animated/trash0006.png new file mode 100644 index 0000000..8aa72d1 Binary files /dev/null and b/data/images/trash_animated/trash0006.png differ diff --git a/data/images/trash_animated/trash0007.png b/data/images/trash_animated/trash0007.png new file mode 100644 index 0000000..d9149ec Binary files /dev/null and b/data/images/trash_animated/trash0007.png differ diff --git a/data/images/trash_animated/trash0008.png b/data/images/trash_animated/trash0008.png new file mode 100644 index 0000000..c910d24 Binary files /dev/null and b/data/images/trash_animated/trash0008.png differ diff --git a/data/images/trash_animated/trash0009.png b/data/images/trash_animated/trash0009.png new file mode 100644 index 0000000..61ec4b7 Binary files /dev/null and b/data/images/trash_animated/trash0009.png differ diff --git a/data/images/trash_animated/trash0010.png b/data/images/trash_animated/trash0010.png new file mode 100644 index 0000000..c398f45 Binary files /dev/null and b/data/images/trash_animated/trash0010.png differ diff --git a/data/images/trash_animated/trash0011.png b/data/images/trash_animated/trash0011.png new file mode 100644 index 0000000..564fd71 Binary files /dev/null and b/data/images/trash_animated/trash0011.png differ diff --git a/data/images/trash_animated/trash0012.png b/data/images/trash_animated/trash0012.png new file mode 100644 index 0000000..ca5fa89 Binary files /dev/null and b/data/images/trash_animated/trash0012.png differ diff --git a/data/images/trash_animated/trash0013.png b/data/images/trash_animated/trash0013.png new file mode 100644 index 0000000..4a89116 Binary files /dev/null and b/data/images/trash_animated/trash0013.png differ diff --git a/data/images/trash_animated/trash0014.png b/data/images/trash_animated/trash0014.png new file mode 100644 index 0000000..db15622 Binary files /dev/null and b/data/images/trash_animated/trash0014.png differ diff --git a/data/images/trash_animated/trash0015.png b/data/images/trash_animated/trash0015.png new file mode 100644 index 0000000..18a4095 Binary files /dev/null and b/data/images/trash_animated/trash0015.png differ diff --git a/data/images/trash_animated/trash0016.png b/data/images/trash_animated/trash0016.png new file mode 100644 index 0000000..fd4401d Binary files /dev/null and b/data/images/trash_animated/trash0016.png differ diff --git a/data/images/trash_animated/trash0017.png b/data/images/trash_animated/trash0017.png new file mode 100644 index 0000000..67c7d80 Binary files /dev/null and b/data/images/trash_animated/trash0017.png differ diff --git a/data/images/trash_animated/trash0018.png b/data/images/trash_animated/trash0018.png new file mode 100644 index 0000000..eb4e48d Binary files /dev/null and b/data/images/trash_animated/trash0018.png differ diff --git a/data/images/trash_animated/trash0019.png b/data/images/trash_animated/trash0019.png new file mode 100644 index 0000000..6b9b71c Binary files /dev/null and b/data/images/trash_animated/trash0019.png differ diff --git a/data/images/trash_animated/trash0020.png b/data/images/trash_animated/trash0020.png new file mode 100644 index 0000000..d98689f Binary files /dev/null and b/data/images/trash_animated/trash0020.png differ diff --git a/data/images/trash_animated/trash0021.png b/data/images/trash_animated/trash0021.png new file mode 100644 index 0000000..ba22012 Binary files /dev/null and b/data/images/trash_animated/trash0021.png differ diff --git a/data/images/trash_animated/trash0022.png b/data/images/trash_animated/trash0022.png new file mode 100644 index 0000000..f3b36eb Binary files /dev/null and b/data/images/trash_animated/trash0022.png differ diff --git a/data/images/trash_animated/trash0023.png b/data/images/trash_animated/trash0023.png new file mode 100644 index 0000000..da4555c Binary files /dev/null and b/data/images/trash_animated/trash0023.png differ diff --git a/data/images/trash_animated/trash0024.png b/data/images/trash_animated/trash0024.png new file mode 100644 index 0000000..5dabb12 Binary files /dev/null and b/data/images/trash_animated/trash0024.png differ diff --git a/data/images/trash_animated/trash0025.png b/data/images/trash_animated/trash0025.png new file mode 100644 index 0000000..7886533 Binary files /dev/null and b/data/images/trash_animated/trash0025.png differ diff --git a/data/images/trash_animated/trash0026.png b/data/images/trash_animated/trash0026.png new file mode 100644 index 0000000..dc96fae Binary files /dev/null and b/data/images/trash_animated/trash0026.png differ diff --git a/data/images/trash_animated/trash0027.png b/data/images/trash_animated/trash0027.png new file mode 100644 index 0000000..a1e4de9 Binary files /dev/null and b/data/images/trash_animated/trash0027.png differ diff --git a/data/images/trash_animated/trash0028.png b/data/images/trash_animated/trash0028.png new file mode 100644 index 0000000..a13bc59 Binary files /dev/null and b/data/images/trash_animated/trash0028.png differ diff --git a/data/images/trash_animated/trash0029.png b/data/images/trash_animated/trash0029.png new file mode 100644 index 0000000..1282da3 Binary files /dev/null and b/data/images/trash_animated/trash0029.png differ diff --git a/data/images/trash_animated/trash0030.png b/data/images/trash_animated/trash0030.png new file mode 100644 index 0000000..d2de727 Binary files /dev/null and b/data/images/trash_animated/trash0030.png differ diff --git a/data/images/trash_animated/trash0031.png b/data/images/trash_animated/trash0031.png new file mode 100644 index 0000000..82dd8bf Binary files /dev/null and b/data/images/trash_animated/trash0031.png differ diff --git a/data/images/trash_animated/trash0032.png b/data/images/trash_animated/trash0032.png new file mode 100644 index 0000000..f060b60 Binary files /dev/null and b/data/images/trash_animated/trash0032.png differ diff --git a/data/images/trash_animated/trash0033.png b/data/images/trash_animated/trash0033.png new file mode 100644 index 0000000..d08d3df Binary files /dev/null and b/data/images/trash_animated/trash0033.png differ diff --git a/data/images/trash_animated/trash0034.png b/data/images/trash_animated/trash0034.png new file mode 100644 index 0000000..a9e991e Binary files /dev/null and b/data/images/trash_animated/trash0034.png differ diff --git a/data/images/trash_animated/trash0035.png b/data/images/trash_animated/trash0035.png new file mode 100644 index 0000000..ac2ee19 Binary files /dev/null and b/data/images/trash_animated/trash0035.png differ diff --git a/data/images/trash_animated/trash0036.png b/data/images/trash_animated/trash0036.png new file mode 100644 index 0000000..6d78a49 Binary files /dev/null and b/data/images/trash_animated/trash0036.png differ diff --git a/data/images/trash_animated/trash0037.png b/data/images/trash_animated/trash0037.png new file mode 100644 index 0000000..c0d05cb Binary files /dev/null and b/data/images/trash_animated/trash0037.png differ diff --git a/data/images/trash_animated/trash0038.png b/data/images/trash_animated/trash0038.png new file mode 100644 index 0000000..b6e511a Binary files /dev/null and b/data/images/trash_animated/trash0038.png differ diff --git a/data/images/trash_animated/trash0039.png b/data/images/trash_animated/trash0039.png new file mode 100644 index 0000000..3ca8154 Binary files /dev/null and b/data/images/trash_animated/trash0039.png differ diff --git a/data/images/trash_animated/trash0040.png b/data/images/trash_animated/trash0040.png new file mode 100644 index 0000000..5c6a72e Binary files /dev/null and b/data/images/trash_animated/trash0040.png differ diff --git a/data/images/trash_animated/trash0041.png b/data/images/trash_animated/trash0041.png new file mode 100644 index 0000000..fdcb762 Binary files /dev/null and b/data/images/trash_animated/trash0041.png differ diff --git a/data/images/trash_animated/trash0042.png b/data/images/trash_animated/trash0042.png new file mode 100644 index 0000000..c771605 Binary files /dev/null and b/data/images/trash_animated/trash0042.png differ diff --git a/data/images/trash_animated/trash0043.png b/data/images/trash_animated/trash0043.png new file mode 100644 index 0000000..988988a Binary files /dev/null and b/data/images/trash_animated/trash0043.png differ diff --git a/data/images/trash_animated/trash0044.png b/data/images/trash_animated/trash0044.png new file mode 100644 index 0000000..4b3ee78 Binary files /dev/null and b/data/images/trash_animated/trash0044.png differ diff --git a/data/images/trash_animated/trash0045.png b/data/images/trash_animated/trash0045.png new file mode 100644 index 0000000..906d729 Binary files /dev/null and b/data/images/trash_animated/trash0045.png differ diff --git a/data/images/trash_animated/trash0046.png b/data/images/trash_animated/trash0046.png new file mode 100644 index 0000000..4f66b17 Binary files /dev/null and b/data/images/trash_animated/trash0046.png differ diff --git a/data/images/trash_open.png b/data/images/trash_open.png new file mode 100644 index 0000000..0722cc4 Binary files /dev/null and b/data/images/trash_open.png differ diff --git a/data/images/xyploticon.gif b/data/images/xyploticon.gif new file mode 100644 index 0000000..476f617 Binary files /dev/null and b/data/images/xyploticon.gif differ diff --git a/data/lang_def.dtd b/data/lang_def.dtd new file mode 100644 index 0000000..10541da --- /dev/null +++ b/data/lang_def.dtd @@ -0,0 +1,163 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/lang_def.xml b/data/lang_def.xml new file mode 100644 index 0000000..8257d27 Binary files /dev/null and b/data/lang_def.xml differ diff --git a/data/save_format.dtd b/data/save_format.dtd new file mode 100644 index 0000000..56075b0 --- /dev/null +++ b/data/save_format.dtd @@ -0,0 +1,100 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/bitcraftlab/blocks/tool/BlocksTool.java b/src/bitcraftlab/blocks/tool/BlocksTool.java index 8411959..df176eb 100644 --- a/src/bitcraftlab/blocks/tool/BlocksTool.java +++ b/src/bitcraftlab/blocks/tool/BlocksTool.java @@ -12,10 +12,13 @@ * */ - package bitcraftlab.blocks.tool; +package bitcraftlab.blocks.tool; - import processing.app.*; - import processing.app.tools.*; +import java.io.File; + +import edu.mit.blocks.controller.WorkspaceController; +import processing.app.*; +import processing.app.tools.*; public class BlocksTool implements Tool { @@ -29,6 +32,13 @@ public void init(Editor theEditor) { public void run() { System.out.println("Let's snap blocks together. ##name## ##version## by ##author##"); + + String[] args = new String[1]; + // TODO: how the heck do we pass in the right relative path for it to load from the data folder? + args[0] = "C:/Users/josh/workspace/Processing-Blocks-Tool/data/lang_def.xml"; + System.out.println(args[0]); + WorkspaceController.main(args); + } }