- How to customize the Firefox Web Console output
- Web Console improvements, episode 30
- Three years with Mozilla, and counting
- The Browser Console is replacing the Error Console
- Web Console improvements and the new Browser Console
Article published on: 21 August 2009, 02:34
Since my previous blog post I did some polishing to the Moodle 2.0 integration. Dan Poltawski from the Moodle community has provided his valuable feedback. He suggested I switch the parsing of the data URL to a regular expression and that I warn users before submitting a form while editing an image with unsaved changes. I made both of these changes and now I am looking forward for more feedback.
- Split the whole code into multiple files: per drawing tool, per extension, per language.
- Created a new configuration file which allows changing almost any option inside PaintWeb, including keyboard shortcuts, tools, extensions and more.
- Reorganized the entire code, followed more strict coding guidelines, more naming consistency, etc.
- Wrote jsdoc-formatted comments for every function and method. Based on the code now I can generate a complete and up-to-date PaintWeb API reference documentation.
- Changed the way PaintWeb loads: the whole GUI is loaded using an
XMLHttpRequestfrom the server and added into the page. The PaintWeb demo was a stand-alone Web application, but now PaintWeb is a component which can only be used within another Web application - in a similar fashion to how TinyMCE can be used.
- Developed a new API for PaintWeb extensions, tools and "commands". This allows new developers to easily extend and modify PaintWeb at any time.
- Implemented a new PaintWeb extension: MouseKeys. This allows users to draw with the keyboard - no mouse is needed.
- Reimplemented keyboard shortcuts support such that it works much better across different Web browsers. You can learn about this work from the latest tutorials I wrote for Dev.Opera about keyboard accessibility in Web applications.
- Made important performance improvements for the OLPC XO.
- Implemented a new GUI for PaintWeb, with better keyboard accessibility, and with a new logo.
- Implemented a new "application events" API which allows developers to hook into PaintWeb by means of events. For example, developers can listen for events like "imageSave" or "imageSizeChange". Such application events are used heavily in the new interface implementation.
- Implemented numerous selection tool improvements and fixes.
- Implemented a new "Hand" tool for dragging the image inside the viewport.
- Made some important fixes for the Eraser tool.
- Made PaintWeb behave better with huge images - around 6000 x 6000 pixels.
- Made improvements to the Text tool and implemented better cross-browser compatibility. Also, attempted Opera compatibility with no luck.
- Made PaintWeb ready for "production use" by properly packaging the whole Web application. The PaintWeb packaging process is driven by a Makefile.
- Wrote "some" PaintWeb documentation.
- Wrote a hefty TinyMCE 3 plugin for easy PaintWeb integration into TinyMCE 3.
- Updated some patches for TinyMCE 3 integration into Moodle 1.9.
- Implemented Moodle 1.9 and Moodle 2.0 integration - with different levels of success. That is, Moodle 2.0 integration is succesful and working properly, while the Moodle 1.9 integration still requires additional work due to the lack of a file API.
That's about all I did over this summer. I am very pleased with the results. In some cases, the results are beyond my initial expectations. For example, I did not expect to have so much PaintWeb documentation done over the summer. Writing the code for all of the above was fun and a pleasure for me.
The Moodle community has been really great and friendly. I appreciate all the feedback I got from the whole community.
What's next? Well, I hope this GSOC marks the beginning of a fruitful collaboration with Moodle and with the overall open-source community. I would like to continue work on Moodle 1.9 and 2.0 integration, and further improve PaintWeb. I certainly do not want to abandon the project. :)
I must thank Helen Foster and Martin Langhoff for their constant support over the summer, with feedback and testing. For example, Martin has provided important help with the performance work for the OLPC XO, together with Robert O'Callahan from Mozilla. And Helen was always ready to answer any GSOC-related questions. ;)
Send me a comment
Any comments are welcome! No field is required, except the message itself. If you want me to reply, include your email address.
Comments will not be displayed in this page! This form only sends your message to me.