X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FMainWindow.bjs;h=5412b4696f84b72cc654ca7bd6b32928371922be;hb=3ebe55bb39f2089ca4b72871c485718daa7234c4;hp=058b576cf7eb35c6d18d89269fc4e0930e5f4a12;hpb=03bf0f74c2232e59d8149c55a05e0a369ed32171;p=roobuilder diff --git a/src/Builder4/MainWindow.bjs b/src/Builder4/MainWindow.bjs index 058b576cf..5412b4696 100644 --- a/src/Builder4/MainWindow.bjs +++ b/src/Builder4/MainWindow.bjs @@ -33,8 +33,8 @@ "items" : [ { "id" : "headerbar", - "* pack" : "set_titlebar", "xtype" : "HeaderBar", + "* pack" : "set_titlebar", "bool show_close_button" : true, "$ xns" : "Gtk", "string title" : "Application Builder", @@ -47,8 +47,8 @@ "items" : [ { "bool use_popover" : false, - "* pack" : "add", "xtype" : "MenuButton", + "* pack" : "add", "$ xns" : "Gtk", "items" : [ { @@ -62,9 +62,9 @@ "listeners" : { "activate" : "( ) => {\n _this.openNewWindow();\n}" }, + "xtype" : "MenuItem", "string label" : "Open a new Window", "* pack" : "append", - "xtype" : "MenuItem", "$ xns" : "Gtk" }, { @@ -76,26 +76,26 @@ "listeners" : { "activate" : " ( ) => {\n Resources.singleton().fetchStart();\n}" }, + "* pack" : "append", "xtype" : "MenuItem", "string label" : "Download updated Resources", - "* pack" : "append", "$ xns" : "Gtk" }, { "listeners" : { "activate" : "() => {\n About.singleton().el.show();\n }" }, + "string label" : "About the Builder", "* pack" : "append", "xtype" : "MenuItem", - "string label" : "About the Builder", "$ xns" : "Gtk" } ] }, { + "xtype" : "Image", "utf8 icon_name" : "help-about", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -105,15 +105,15 @@ "clicked" : " ( ) => {\n _this.windowstate.switchState(WindowState.State.FILES);\n \n\n}" }, "id" : "openbtn", - "xtype" : "Button", "* pack" : "add", + "xtype" : "Button", "$ xns" : "Gtk", "$ tooltop_text" : "\"Open File\"", "items" : [ { + "* pack" : "set_image", "xtype" : "Image", "utf8 icon_name" : "document-open", - "* pack" : "set_image", "$ xns" : "Gtk" } ] @@ -130,9 +130,9 @@ "bool visible" : false, "items" : [ { + "utf8 icon_name" : "go-previous", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "go-previous", "$ xns" : "Gtk" } ] @@ -143,8 +143,8 @@ }, { "id" : "vbox", - "xtype" : "Box", "* pack" : "add", + "xtype" : "Box", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "$ homogeneous" : false, @@ -160,29 +160,29 @@ "items" : [ { "id" : "leftpane", - "* pack" : "add1", "xtype" : "Box", + "* pack" : "add1", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { "id" : "editpane", - "* pack" : "pack_start,true,true,0", "xtype" : "Paned", + "* pack" : "pack_start,true,true,0", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL", "items" : [ { "id" : "tree", - "* pack" : "add1", "xtype" : "Box", + "* pack" : "add1", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" }, { "id" : "props", - "* pack" : "add2", "xtype" : "Box", + "* pack" : "add2", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL" } @@ -256,8 +256,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "* pack" : "add_child", "xtype" : "Actor", + "* pack" : "add_child", "$ xns" : "GtkClutter", "items" : [ { @@ -265,16 +265,16 @@ "clicked" : " ( ) => {\n // if (_this.windowstate.state == WindowState.State.FILEPROJECT) {\n \n//\t _this.windowstate.switchState(WindowState.State.FILES);\n // } else { \n\t _this.windowstate.switchState(WindowState.State.PREVIEW);\n // }\n \n\n}" }, "utf8 tooltip_text" : "Back", - "xtype" : "Button", "* pack" : false, + "xtype" : "Button", "width_request" : 50, "$ xns" : "Gtk", "height_request" : 50, "items" : [ { + "* pack" : "set_image", "xtype" : "Image", "utf8 icon_name" : "go-previous", - "* pack" : "set_image", "$ xns" : "Gtk" } ] @@ -292,8 +292,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -308,9 +308,9 @@ "height_request" : 50, "items" : [ { + "xtype" : "Image", "utf8 icon_name" : "document-properties", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -328,8 +328,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -344,9 +344,9 @@ "height_request" : 50, "items" : [ { + "* pack" : "set_image", "xtype" : "Image", "utf8 icon_name" : "emblem-system", - "* pack" : "set_image", "$ xns" : "Gtk" } ] @@ -368,8 +368,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -384,9 +384,9 @@ "height_request" : 50, "items" : [ { + "utf8 icon_name" : "list-add", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "list-add", "$ xns" : "Gtk" } ] @@ -404,8 +404,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -420,9 +420,9 @@ "height_request" : 50, "items" : [ { + "xtype" : "Image", "utf8 icon_name" : "format-justify-left", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -440,8 +440,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -456,9 +456,9 @@ "height_request" : 50, "items" : [ { + "* pack" : "set_image", "xtype" : "Image", "utf8 icon_name" : "appointment-new", - "* pack" : "set_image", "$ xns" : "Gtk" } ] @@ -476,8 +476,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -492,9 +492,9 @@ "height_request" : 50, "items" : [ { + "xtype" : "Image", "utf8 icon_name" : "folder-new", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -512,8 +512,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -528,9 +528,9 @@ "height_request" : 50, "items" : [ { + "utf8 icon_name" : "document-new", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "document-new", "$ xns" : "Gtk" } ] @@ -548,8 +548,8 @@ "items" : [ { "* init" : "((Gtk.Container)(this.el.get_widget())).add ( child_0.el);", - "xtype" : "Actor", "* pack" : "add_child", + "xtype" : "Actor", "$ xns" : "GtkClutter", "items" : [ { @@ -564,9 +564,9 @@ "height_request" : 50, "items" : [ { + "xtype" : "Image", "utf8 icon_name" : "user-trash", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -585,21 +585,21 @@ }, { "bool homogeneous" : false, - "* pack" : "pack_end,false,true,0", "xtype" : "Box", + "* pack" : "pack_end,false,true,0", "$ xns" : "Gtk", "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL", "items" : [ { + "string label" : " ", "* pack" : "pack_start,true,true,0", "xtype" : "Label", - "string label" : " ", "$ xns" : "Gtk" }, { "bool show_text" : true, - "ulong handler_id" : "-1", "id" : "statusbar", + "ulong handler_id" : "-1", "* init" : "{\n this.handler_id = Resources.singleton().updateProgress.connect((pos,total) => {\n if (pos < 1) {\n this.el.hide();\n _this.mainpane.el.set_sensitive(true);\n \n return;\n }\n _this.mainpane.el.set_sensitive(false);\n this.el.show();\n this.el.set_fraction ((1.0f * pos) / (1.0f * total));\n this.el.set_text(\"Fetching Resource : %s/%s\".printf(pos.to_string(), total.to_string()));\n \n });\n}\n", "xtype" : "ProgressBar", "* pack" : "pack_start,true,true,0", @@ -635,9 +635,9 @@ "$ xns" : "Gtk", "items" : [ { + "utf8 icon_name" : "system-search", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "system-search", "bool sensitive" : false, "$ xns" : "Gtk" } @@ -645,8 +645,8 @@ }, { "id" : "statusbar_compilestatus_label", - "* pack" : "add", "xtype" : "MenuItem", + "* pack" : "add", "string label" : "Compile Status:", "$ xns" : "Gtk" }, @@ -665,9 +665,9 @@ "$ xns" : "Gtk", "items" : [ { + "* pack" : "set_image", "xtype" : "Image", "utf8 icon_name" : "dialog-error", - "* pack" : "set_image", "$ xns" : "Gtk" } ] @@ -687,9 +687,9 @@ "$ xns" : "Gtk", "items" : [ { + "utf8 icon_name" : "dialog-warning", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "dialog-warning", "$ xns" : "Gtk" } ] @@ -709,9 +709,9 @@ "$ xns" : "Gtk", "items" : [ { + "xtype" : "Image", "utf8 icon_name" : "dialog-information", "* pack" : "set_image", - "xtype" : "Image", "$ xns" : "Gtk" } ] @@ -729,9 +729,9 @@ "$ xns" : "Gtk", "items" : [ { + "utf8 icon_name" : "media-playback-start", "* pack" : "set_image", "xtype" : "Image", - "utf8 icon_name" : "media-playback-start", "$ xns" : "Gtk" } ] @@ -740,8 +740,8 @@ }, { "id" : "statusbar_compile_spinner", - "* pack" : "add", "xtype" : "Spinner", + "* pack" : "add", "| void stop" : "() {\n this.el.stop();\n this.el.hide();\n}\n", "string tooltip_text" : "Compiling", "$ xns" : "Gtk",