Ideas for Google SoC » History » Version 14
Koen Deforche, 03/12/2010 06:54 AM
1 | 1 | Pieter Libin | h1. Ideas for Google SoC |
---|---|---|---|
2 | |||
3 | 13 | Koen Deforche | This page lists ideas for Google SoC 2010 applications for Wt, pending the approval of Emweb as a mentoring organisation. The page lists ideas that come from community members, project maintainers, in no particular order. We recommend interested students to show interest on the mailing list and discuss with the community the idea that they would like to work on before applying formally with Google SoC. |
4 | 1 | Pieter Libin | |
5 | 14 | Koen Deforche | In addition the the summary of ideas here, an interested student may also wish to look at the extensive discussion that happened on the mailing list: http://thread.gmane.org/gmane.comp.web.witty.general/4611 |
6 | |||
7 | 5 | Koen Deforche | Contact information: koen@emweb.be or the Wt interest mailinglist: witty-interest@sourceforge.net. |
8 | |||
9 | 1 | Pieter Libin | h3. WebKit integration |
10 | |||
11 | 13 | Koen Deforche | It would be fantastic to have WebKit integrated with Wt. The level of integration may evolve over time, as are the possible applications. The combination of both a top-notch browser implementation, together with a web framework, all in C++, provides a whole world of new possibilities from new application options to kludge-free automated test frameworks based on an actual browser and rendering logic. |
12 | 1 | Pieter Libin | |
13 | 13 | Koen Deforche | The first step is to combine WebKit with the built-in httpd to provide a desktop application using Wt. This could be useful for distributing an off-line version of a Wt application or during development. The webkit would be configured to act as a single application (instead of as a general purpose browser). Some preliminary work has been done and the project has been bootstrapped by Pau Garcia (contact him through the Wt interest mailinglist), which can be found at http://gitorious.org/wtdesktop. |
14 | 1 | Pieter Libin | |
15 | 3 | Koen Deforche | In a second step, some of the widgets provided by Wt could be made aware of the integration with webkit to provide improved functionality. For example, WFileUpload could use a native file open widget instead of HTML. Other features are the binding of WApplication::quit() to exit the actual application, and the ability to control and use the native menu provided by the Qt or GTK toolkit from Wt code. |
16 | 1 | Pieter Libin | |
17 | 3 | Koen Deforche | A third level of integration is to allow introspection of the DOM inside WebKit from a Wt application session. This could become the basis for an automated testing framework which verifies that the widget tree and the DOM tree are in sync. By querying the DOM for information on the location and CSS properties of widgets, it can be checked that the application works properly. By allowing for events to be simulated on the DOM tree, the application can be checked for correct event handling. |
18 | 1 | Pieter Libin | |
19 | The fourth level of integration is to by-pass the HTML/JavaScript and HTTP protocol for certain rendering steps. For example, a new WPaintDevice could be developed which paints directly instead of encoding it first as SVG or HTML Canvas5 JavaScript. This would allow significant speedups for vector graphics. |
||
20 | |||
21 | 13 | Koen Deforche | Another idea that circulated on the mailing list was to target QML for rendering certain parts of the user interface, skipping the webkit dependence and targetting directly Qt. This would result in even better performance and be more light weight. |
22 | |||
23 | Required expertise: Good C++ knowledge, some familiarity with GTK, Qt, and CMake will be useful. |
||
24 | 1 | Pieter Libin | |
25 | 4 | Koen Deforche | The scope and goals of this idea can be adapted to the skill set of the student, since for every additional level of integration, more detailed intimate knowledge of WebKit and Wt are required. Since the project has already been bootstrapped, the student will be able to more directly start actual development rather than be busy with setting up and configuring the build system. |
26 | 1 | Pieter Libin | |
27 | h3. Widget set mode |
||
28 | |||
29 | 14 | Koen Deforche | Since about a year, Wt includes a so-called widget-set mode. In this mode, a Wt application does not take responsibility to render the entire user interface, but only selected <div>'s. The Wt application is loaded as a JavaScript library, which then renders into these <div>'s, which then correspond to a set of "top-level" widgets. Any of Wt's features may be used inside such a widget, including portable vector graphics and fragment-based history management. |
30 | 4 | Koen Deforche | |
31 | 1 | Pieter Libin | This would allow a Wt application to also expose a JavaScript API, such as for example Google Maps, but this has not yet been provided. To provide support for this in the Wt library, it would require that a Wt application can extend its JavaScript object with JavaScript methods that map onto C++ methods, which assumes a system that helps as much as possible to convert between JavaScript objects and C++ data structures (for example based on maps). |
32 | 4 | Koen Deforche | |
33 | 1 | Pieter Libin | Improvements to widget set mode will allow easy development of OpenSocial applications in Wt. |
34 | 4 | Koen Deforche | |
35 | 14 | Koen Deforche | Required expertise: Good C++ knowledge, template meta programming and type traits, some JavaScript knowledge. |
36 | 4 | Koen Deforche | |
37 | 1 | Pieter Libin | h3. Wt Designer |
38 | |||
39 | 14 | Koen Deforche | A lot of discussion has been going on over the years on a visual designer tool for Wt. Inevitably, many directions can be taken and proponents of different ideas can be found on the mailinglist. |
40 | |||
41 | h4. Based on Qt Creator / Qt Designer |
||
42 | |||
43 | 4 | Koen Deforche | Since Wt shares alot with Qt, in terms of API and programming model, it should be possible to adapt Qt Designer to design Wt widgets. |
44 | |||
45 | In a first step, the .ui format used by the Qt Designer tool and User Interface Compiler (UIC) could be adapted to so that it can be used to instantiate a custom Wt widget at runtime, or can be used to compile to a C++ file. |
||
46 | 1 | Pieter Libin | |
47 | More details (detailed steps, roadmap, possible blockers, etc) here: http://article.gmane.org/gmane.comp.web.witty.general/4293 |
||
48 | 14 | Koen Deforche | |
49 | h4. Based on a (XHTML-like) template language |
||
50 | |||
51 | Another line of thought is to base |
||
52 | 10 | Pau Garcia i Quiles | |
53 | 6 | Koen Deforche | Required expertise: Good C++ knowledge, experience with Qt Designer is a plus. |
54 | |||
55 | h4. MVC integration of Wt::Dbo models with Wt views. |
||
56 | |||
57 | * Implement a WAbstractItemModel (e.g. WDboQueryModel) that allows iteration of query results. |
||
58 | * There could also be support for editing/viewing data of a single Dbo. |
||
59 | |||
60 | Required expertise: Good to Expert C++ knowledge (template meta programming) |
||
61 | 7 | Koen Deforche | |
62 | 8 | Koen Deforche | h3. WSocketNotifier |
63 | 7 | Koen Deforche | |
64 | Implement WSocketNotifier (like QSocketNotifier) properly with a custom select loop. The current implementation (on httpd) tries to tie into asio's select loop, but asio does not support this use-case very well (with socket numbers instead of boost asio's socket abstraction). |
||
65 | 11 | Omer Katz | It is also possible to wrap a socket completely to WSocket and define specific use cases for Wt applications communicating with other applications/web services ect. |
66 | 12 | Omer Katz | |
67 | h3. Modifications of WTemplate to provide a full grown templating system |
||
68 | |||
69 | Goals: |
||
70 | * Wt will create widgets based on tags in message bundles. |
||
71 | * Each property can be set through an attribute. |
||
72 | * Creating a declerative markup that can be generated by an IDE. |
||
73 | * Creating a templating language that can take a model and generate a display for it. |
||
74 | Possible commands are: If, Else, Foreach, While, Query |
||
75 | |||
76 | All of those features should be disabled to discard this overhead when working on thight embedded machines. |
||
77 | Instead of binding widgets like now you would just get them using resolve. |