0746596a75d8e6e72993a069861bcccab90f69ef
[app.Builder.js] / oldbuilder / TopMenu.js
1 //<Script type="text/javascript">
2 Gtk = imports.gi.Gtk;
3 GLib = imports.gi.GLib;
4 GObject = imports.gi.GObject;
5
6 XObject = imports.XObject.XObject;
7 console = imports.console;
8  
9  
10 TopMenu = new XObject({
11     id : 'TopMenu',
12     xtype : Gtk.MenuBar,
13     pack : [ 'pack_start', false,false ],
14     id : 'menu', 
15     items :  [
16         {
17             
18             xtype: Gtk.MenuItem,
19             pack : [ 'append' ],
20             label : 'File',
21             
22             items : [
23                 {
24                     
25                     xtype : Gtk.Menu,
26                     pack : [ 'set_submenu' ],
27                     items : [
28                       {
29             
30                             
31                             xtype : Gtk.MenuItem,
32                             pack : [ 'append' ],
33                             label : "New Project (from directory)",
34                             listeners : {
35                                 activate : function () {
36                                     
37                                 }
38                             }
39                         },
40                         {
41             
42                             
43                             xtype : Gtk.MenuItem,
44                             pack : [ 'append' ],
45                             label : 'Open Project File',
46                             listeners : {
47                                 activate : function () {
48                                     
49                                 }
50                             }
51                         },
52                         {
53             
54                             
55                             xtype : Gtk.MenuItem,
56                             pack : [ 'append' ],
57                             label : 'Recent (with submenu)',
58                             listeners : {
59                                 activate : function () {
60                                     
61                                 }
62                             }
63                         },
64                         
65                           {
66         
67                             
68                             xtype : Gtk.SeparatorMenuItem,
69                             pack : [ 'append' ] 
70                              
71                         },
72                         
73                         {
74             
75                             
76                             xtype : Gtk.MenuItem,
77                             pack : [ 'append' ],
78                             label : "Test Loader",
79                             listeners : {
80                                 activate : function () {
81                                     
82                                     
83                                     
84                                     
85                                 }
86                             }
87                         },
88                         
89                           {
90         
91                             
92                             xtype : Gtk.SeparatorMenuItem,
93                             pack : [ 'append' ] 
94                              
95                         },
96                         {
97             
98                             
99                             xtype : Gtk.MenuItem,
100                             pack : [ 'append' ],
101                             label : 'Quit',
102                             listeners : {
103                                 activate : function () {
104                                     Seed.quit();
105                                 }
106                             }
107                         },
108                     ]
109                 }
110             ]
111         },
112     
113         {
114             
115             
116             xtype : Gtk.MenuItem,
117             pack : [ 'append' ],
118             label : 'Settings',
119             listeners : {
120                 activate : function () {
121                     
122                 }
123             }
124         } 
125     ]
126 });
127