resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / ProjectSettings.bjs
index 94a5f12..c22819a 100644 (file)
@@ -5,23 +5,26 @@
  "path" : "/home/alan/gitlive/app.Builder.js/src/Builder4/ProjectSettings.bjs",
  "permname" : "",
  "modOrder" : "",
+ "build_module" : "builder",
  "items" : [
   {
    "@ void buttonPressed" : "(string btn)",
    "id" : "ProjectSettings",
    "| void show" : " (Project.Project project) {\n    _this.project = project;\n    _this.path.el.label = project.firstPath();\n    // get the active project.\n     var lm = Gtk.SourceLanguageManager.get_default();\n                \n    ((Gtk.SourceBuffer)(_this.view.el.get_buffer())) .set_language(\n    \n        lm.get_language(\"html\"));\n  \n    //print (project.fn);\n    //project.runhtml = project.runhtml || '';\n    _this.view.el.get_buffer().set_text(project.runhtml);\n    \n       \n    _this.rootURL.el.set_text( _this.project.rootURL );\n    _this.base_template.el.set_text(_this.project.base_template);    \n     var js = _this.project;\n    _this.database_DBTYPE.el.set_text(     js.get_string_member(\"DBTYPE\") );\n    _this.database_DBNAME.el.set_text(    js.get_string_member(\"DBNAME\") );\n    _this.database_DBUSERNAME.el.set_text(    js.get_string_member(\"DBUSERNAME\") );\n    _this.database_DBPASSWORD.el.set_text(    js.get_string_member(\"DBPASSWORD\") );\n    //this.el.show_all();\n}\n",
    "# Project.Project project" : "",
-   "xtype" : "VBox",
+   "xtype" : "Box",
    "| void save" : "()\n{\n   var buf =    _this.view.el.get_buffer();\n   Gtk.TextIter s;\n     Gtk.TextIter e;\n    buf.get_start_iter(out s);\n    buf.get_end_iter(out e);\n      _this.project.runhtml = buf.get_text(s,e,true);\n      \n    _this.project.rootURL = _this.rootURL.el.get_text();\n    _this.project.base_template = _this.base_template.el.get_text();    \n    \n    var js = _this.project.json_project_data;\n    js.set_string_member(\"DBTYPE\", _this.database_DBTYPE.el.get_text());\n   js.set_string_member(\"DBNAME\", _this.database_DBNAME.el.get_text());\n    js.set_string_member(\"DBUSERNAME\", _this.database_DBUSERNAME.el.get_text());\n    js.set_string_member(\"DBPASSWORD\", _this.database_DBPASSWORD.el.get_text());\n//    _this.project.set_string_member(\"DBHOST\", _this.DBTYPE.el.get_text());    \n    \n    // need to re-init the database \n    \n    _this.project.initRooDatabase();\n     \n    \n}",
    "$ xns" : "Gtk",
+   "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
    "border_width" : 5,
    "$ homogeneous" : false,
    "items" : [
     {
      "* pack" : "pack_start,false,false,0",
-     "xtype" : "HBox",
+     "xtype" : "Box",
      "gboolean expand" : false,
      "$ xns" : "Gtk",
+     "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
      "$ homogeneous" : true,
      "gboolean vexpand" : false,
      "items" : [
@@ -30,8 +33,8 @@
         "button_press_event" : "() => {\n    _this.save();\n          \n    _this.buttonPressed(\"apply\");\n        return false;\n}"
        },
        "label" : "Apply",
-       "xtype" : "Button",
        "* pack" : "add",
+       "xtype" : "Button",
        "$ xns" : "Gtk"
       },
       {
@@ -39,8 +42,8 @@
         "button_press_event" : "() => {\n       _this.save();\n          \n    _this.buttonPressed(\"save\");\n        return false;\n}"
        },
        "label" : "Save",
-       "xtype" : "Button",
        "* pack" : "add",
+       "xtype" : "Button",
        "$ xns" : "Gtk"
       }
      ]
      "items" : [
       {
        "id" : "label_global",
-       "* pack" : false,
        "xtype" : "Label",
+       "* pack" : false,
        "$ xns" : "Gtk",
        "utf8 label" : "Global"
       },
       {
        "id" : "label_database",
-       "xtype" : "Label",
        "* pack" : false,
+       "xtype" : "Label",
        "$ xns" : "Gtk",
        "utf8 label" : "Database"
       },
       {
        "* pack" : "append_page,_this.label_global.el",
-       "xtype" : "VBox",
+       "xtype" : "Box",
        "gboolean homogeneous" : false,
        "$ xns" : "Gtk",
+       "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
        "items" : [
         {
          "label" : "filename",
         },
         {
          "* pack" : "pack_start,false,false,0",
-         "xtype" : "HBox",
+         "xtype" : "Box",
          "gboolean expand" : false,
          "$ xns" : "Gtk",
+         "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
          "$ homogeneous" : false,
          "items" : [
           {
            "label" : "HTML template file",
-           "* pack" : "pack_start,false,false,0",
            "xtype" : "Label",
+           "* pack" : "pack_start,false,false,0",
            "gint margin" : 3,
            "$ xns" : "Gtk"
           },
           {
            "id" : "base_template",
-           "* pack" : "add",
            "xtype" : "Entry",
+           "* pack" : "add",
            "$ xns" : "Gtk"
           }
          ]
         },
         {
          "* pack" : "pack_start,false,false,0",
-         "xtype" : "HBox",
+         "xtype" : "Box",
          "gboolean expand" : false,
          "$ xns" : "Gtk",
+         "Gtk.Orientation orientation" : "Gtk.Orientation.HORIZONTAL",
          "$ homogeneous" : false,
          "items" : [
           {
            "label" : "root URL",
-           "* pack" : "pack_start,false,false,0",
            "xtype" : "Label",
+           "* pack" : "pack_start,false,false,0",
            "gint margin" : 3,
            "$ xns" : "Gtk"
           },
           {
            "id" : "rootURL",
-           "* pack" : "add",
            "xtype" : "Entry",
+           "* pack" : "add",
            "$ xns" : "Gtk"
           }
          ]
         },
         {
          "label" : "HTML To insert at end of <HEAD>",
-         "* pack" : "pack_start,false,false,0",
          "xtype" : "Label",
+         "* pack" : "pack_start,false,false,0",
          "$ xns" : "Gtk"
         },
         {
       },
       {
        "* pack" : "append_page,_this.label_database.el",
-       "xtype" : "VBox",
+       "xtype" : "Box",
        "gboolean homogeneous" : false,
        "$ xns" : "Gtk",
+       "Gtk.Orientation orientation" : "Gtk.Orientation.VERTICAL",
        "items" : [
         {
          "label" : "Type (eg. MySQL or PostgreSQL)",
           "key_press_event" : "(ev) => {\n\n    if (ev.keyval == Gdk.Key.Tab) {\n        _this.database_DBNAME.el.grab_focus();\n        return true;\n    }\n\n\n    return false;\n}\n"
          },
          "id" : "database_DBTYPE",
-         "xtype" : "Entry",
          "* pack" : "pack_start,false,false,0",
+         "xtype" : "Entry",
          "$ xns" : "Gtk"
         },
         {
           "key_press_event" : "(ev) => {\n\n    if (ev.keyval == Gdk.Key.Tab) {\n        _this.database_DBUSERNAME.el.grab_focus();\n        return true;\n    }\n\n\n    return false;\n}\n"
          },
          "id" : "database_DBNAME",
-         "* pack" : "pack_start,false,false,0",
          "xtype" : "Entry",
+         "* pack" : "pack_start,false,false,0",
          "$ xns" : "Gtk"
         },
         {
           "key_press_event" : "(ev) => {\n\n    if (ev.keyval == Gdk.Key.Tab) {\n        _this.database_DBPASSWORD.el.grab_focus();\n        return true;\n    }\n\n\n    return false;\n}\n"
          },
          "id" : "database_DBUSERNAME",
-         "xtype" : "Entry",
          "* pack" : "pack_start,false,false,0",
+         "xtype" : "Entry",
          "$ xns" : "Gtk"
         },
         {
         },
         {
          "id" : "database_DBPASSWORD",
-         "* pack" : "pack_start,false,false,0",
          "xtype" : "Entry",
+         "* pack" : "pack_start,false,false,0",
          "$ xns" : "Gtk"
         },
         {