2 valac --pkg gio-2.0 --pkg posix --pkg gtk+-3.0 --pkg libnotify --pkg gtksourceview-3.0 --pkg libwnck-3.0 \
3 /tmp/RooProjectProperties.vala -o /tmp/RooProjectProperties
8 static int main (string[] args) {
10 new Xcls_RooProjectProperties();
11 RooProjectProperties.show_all();
18 public static Xcls_RooProjectProperties RooProjectProperties;
20 public class Xcls_RooProjectProperties
23 private static Xcls_RooProjectProperties _this;
25 public Xcls_view view;
28 public Project.Project project;
31 public Xcls_RooProjectProperties()
33 this.el = new Gtk.Dialog();
35 RooProjectProperties = this;
40 this.el.default_width = 500;
42 var child_0 = new Xcls_VBox2();
43 this.el. get_content_area().add
45 var child_1 = new Xcls_Button6();
46 this.el.add_action_widget ( child_1.el , 1 );
47 var child_2 = new Xcls_Button7();
48 this.el.add_action_widget ( child_2.el , 0 );
51 this.el.delete_event.connect( (self, event) => {
55 this.el.response.connect( (self, response_id) => {
57 if (response_id< 1 ) {
63 var buf = view.el.get_buffer();
66 buf.get_start_iter(out s);
67 buf.get_end_iter(out e);
68 var str = buf.get_text(s,e,true);
69 // ideally we should syntax check it.. but it's html!?
71 //var project = this.get('/Window.LeftTree').getActiveFile().project;
74 _this.project.runhtml = str;
77 // imports.Builder.Provider.ProjectManager.ProjectManager.saveConfig();
79 // this.get('view').el.get_buffer().get_text(project.runjs, project.runjs.length);
85 // userdefined functions
87 // skip listeners - not pipe
89 // skip .Project.Project:project - already used
91 // skip default_width - already used
93 // skip xtype - not pipe
95 // skip |modal - already used
96 public void show (Project.Project project) {
97 _this.project = project;
98 // get the active project.
100 //print (project.fn);
101 //project.runhtml = project.runhtml || '';
102 _this.view.el.get_buffer().set_text(project.runhtml);
107 // skip |xns - no return type
109 // skip items - not pipe
111 // skip id - not pipe
113 // skip xvala_cls - not pipe
115 // skip xvala_xcls - not pipe
117 // skip xvala_id - not pipe
118 public class Xcls_VBox2
127 this.el = new Gtk.VBox( true, 0 );
131 // set gobject values
132 this.el.border_width = 5;
133 var child_0 = new Xcls_Label3();
134 this.el.pack_start ( child_0.el , false,false,0 );
135 var child_1 = new Xcls_ScrolledWindow4();
136 this.el.pack_end ( child_1.el , true,true,0 );
139 // userdefined functions
141 // skip border_width - already used
143 // skip xtype - not pipe
145 // skip |pack - already used
147 // skip |xns - no return type
149 // skip items - not pipe
151 // skip xvala_cls - not pipe
153 // skip xvala_xcls - not pipe
155 // skip xvala_id - not pipe
157 public class Xcls_Label3
166 this.el = new Gtk.Label( "HTML To insert at end of <HEAD>" );
170 // set gobject values
173 // userdefined functions
175 // skip |xns - no return type
177 // skip xtype - not pipe
179 // skip pack - not pipe
181 // skip label - already used
183 // skip xvala_cls - not pipe
185 // skip xvala_xcls - not pipe
187 // skip xvala_id - not pipe
189 public class Xcls_ScrolledWindow4
191 public Gtk.ScrolledWindow el;
196 public Xcls_ScrolledWindow4()
198 this.el = new Gtk.ScrolledWindow( null, null );
202 // set gobject values
203 var child_0 = new Xcls_view();
204 this.el.add ( child_0.el );
207 // userdefined functions
209 // skip |xns - no return type
211 // skip xtype - not pipe
213 // skip pack - not pipe
215 // skip items - not pipe
217 // skip xvala_cls - not pipe
219 // skip xvala_xcls - not pipe
221 // skip xvala_id - not pipe
223 public class Xcls_view
225 public Gtk.SourceView el;
232 this.el = new Gtk.SourceView();
237 // set gobject values
240 // userdefined functions
242 // skip |xns - no return type
244 // skip xtype - not pipe
246 // skip pack - not pipe
248 // skip id - not pipe
250 // skip xvala_cls - not pipe
252 // skip xvala_xcls - not pipe
254 // skip xvala_id - not pipe
256 public class Xcls_Button6
258 public Gtk.Button el;
263 public Xcls_Button6()
265 this.el = new Gtk.Button();
269 // set gobject values
270 this.el.label = "OK";
273 // userdefined functions
275 // skip |xns - no return type
277 // skip xtype - not pipe
279 // skip pack - not pipe
281 // skip label - already used
283 // skip xvala_cls - not pipe
285 // skip xvala_xcls - not pipe
287 // skip xvala_id - not pipe
289 public class Xcls_Button7
291 public Gtk.Button el;
296 public Xcls_Button7()
298 this.el = new Gtk.Button();
302 // set gobject values
303 this.el.label = "Cancel";
306 // userdefined functions
308 // skip |xns - no return type
310 // skip xtype - not pipe
312 // skip pack - not pipe
314 // skip label - already used
316 // skip xvala_cls - not pipe
318 // skip xvala_xcls - not pipe
320 // skip xvala_id - not pipe