notes/brainstorming.txt
[app.Builder.js] / notes / brainstorming.txt
1 While the editor is not to bad at present there are a few fundimental
2 issues with the design, that could do with some thought
3
4 - Gtk 'big' tree
5 The application builder itself core window is a huge tree that describes the UI
6 This makes working on the thing slower as it's often more difficult to find the related code.
7
8 - Big handlers and methods on objects
9 Kind of related to the big tree issue, the was it's possible to add methods to objects
10 results in quite a bit of the code getting added to a variety of objects in the code
11
12 - Breaking code into 'groups'
13 The cleaner idea here would be to break the code into groups, in such a way that all the 'special'
14 methods for a group of elements would be always at the 'top' level.
15
16  Currently all generated code looks like
17  
18  Window = new XObject({
19     ...... (the tree goes in here..)
20  });
21
22
23
24
25
26
27
28
29
30 -- GTK code needs simplifing so it works better 'out the box'
31 ** get rid of the 'init' methods
32   - basically the XObject base code should handle stuff that is in there.
33   ** this has a knock on effect that we will provide additional 'children' to the tree structure though..
34   
35   eg. to fake a table - we would do something like this..
36     -> Table
37         -> row[] = TableRow
38             -> cel[] = TableCell
39             
40