"id" : "MainWindow",
"default_width" : 800,
"* init" : " \n\t \n //this.el.show_all();\n \n ",
+ "| void openNewWindow" : "() {\n\tXcls_MainWindow.singleton().no_windows++;\n var w = new Xcls_MainWindow();\n w.ref();\n\n w.el.show_all();\n w.initChildren();\n w.windowstate.switchState(WindowState.State.FILES);\n}\n",
"# Project.Project project" : "null",
"# string title" : "\"Application Builder\"",
"xtype" : "Window",
"$ xns" : "Gtk",
"| void show" : "() {\n \n this.el.show_all();\n\n}",
"# WindowState windowstate" : "null",
- "| return_type openNewWindow" : "() {\n\tXcls_MainWindow.singleton().no_windows++;\n var w = new Xcls_MainWindow();\n w.ref();\n\n w.el.show_all();\n w.initChildren();\n w.windowstate.switchState(WindowState.State.FILES);\n}\n",
"border_width" : 0,
"$ type" : "Gtk.WindowType.TOPLEVEL",
"| void setTitle" : " (string str) {\n this.headerbar.el.set_title(this.title + \" - \" + str);\n} \n",
}
// user defined functions
+ public void openNewWindow () {
+ Xcls_MainWindow.singleton().no_windows++;
+ var w = new Xcls_MainWindow();
+ w.ref();
+
+ w.el.show_all();
+ w.initChildren();
+ w.windowstate.switchState(WindowState.State.FILES);
+ }
public void initChildren () {
// this needs putting in a better place..
this.windowstate = new WindowState(this);
this.el.show_all();
}
- public return_type openNewWindow () {
- Xcls_MainWindow.singleton().no_windows++;
- var w = new Xcls_MainWindow();
- w.ref();
-
- w.el.show_all();
- w.initChildren();
- w.windowstate.switchState(WindowState.State.FILES);
- }
public void setTitle (string str) {
this.headerbar.el.set_title(this.title + " - " + str);
}