Friday, May 27, 2011

Work Progress - May 25 - May 31

Demo: "SB in beta" link above

* Extend the functionality of the "SHOW GOAL IMAGE". Now one can use the dialog to change the background with predefined images (in goalImage.properties) or file from local computer. We also show name and description of each predefined image when they choose from the pull-down menu, which is useful when we wish to give a detailed description of the image.

* To allow customization of images to be saved probably, we should consider saving the image, rather than the link in the image, in the XML file.
* Refactor the way demo menu items and default script are loaded to the program. Now we allow them to be loaded even if we are offline. (Previously nothing is loaded if it is started offline. Useful if demo of the program needs to be made offline.)
* Idea to allow multiple events: An addition level called PEventList. But then one can't hide the scripts of different scripts and show them again.

Friday, May 20, 2011

Work Progress - May 18 - May 24

Demo: "SB in beta" link above

Work done:
* "Do Forever" as a control codelet
* Fix the bug that when pressed and dragged on the method codelet through its argument name, the dragged codelet is not initialized to a proper location.
* Help Bill think of how to display plait images progressively in the CC app.

Wednesday, May 11, 2011

Work Progress - May 11 - May 17

Demo: "SB test" link above

Work done:
* Disable "Erase Drawing" button of SB app.
* highlighting for exponential, rationals, sinusoidal, etc.
* Allow user to select our default script (SB3.xml) from the "Load Demo" menu item.
* SB demo: move everything down
* Partial fix of the bug that codelets are accidentally moved on some strange location when editing its textfield value. One cause was that at the time a codelet is selected and dragged away from a JPnlLineList, the JPnlLineList has yet validated (until the next mouse drag), so internally the codelets remained in the line list collapse. This problem has been fixed by calling validate() at the beginning of all GetInsertionPosition() method of the JPnlLine. Another possible measure to eliminate the problem is to disable dragging of regions close to the text field (user may accidentally select those draggable area when selecting a textfield to edit,)
* Change the scope of the variables declared on-the-fly: from local to a script to local to the object (necessary to implement doForever() as a control codelet)

Next step
* Continue with doForever() as a control codelet

Wednesday, May 4, 2011

Work Progress - May 4 - May 10

Demo: "SB in beta" link above

Work done:
* More forgiving cursor stated in SB default script
* Highlight on unselected PObject when the mouse cursor is currently over it. For the SB app, we have a dash-line bounding box (obtained from the PObject's GetPolyBound() method) for the skateboarder (the default behavior if one doesn't override the DrawMouseOver() method) and dash-line representation for the landscapes. Below, the curve is currently under the mouse cursor.
In progress:
* If a method codelet returns a value, we should make it a rectangular shape (like the variable codelet) because it returns a value.
* Move DoForever to control codelet: redirect everything inside to "DoForever" event. No more vertical attachment under "DoForever".