Re-arrange files, add support for classic JS Documentor, and packer
[gnome.introspection-doc-generator] / Introspect / Class.js
similarity index 92%
rename from JSDOC/Introspect/Class.js
rename to Introspect/Class.js
index 08a103b..dba5f90 100644 (file)
@@ -4,14 +4,13 @@ GI      = imports.gi.GIRepository;
 GLib    = imports.gi.GLib;
 xml     = imports.libxml;
 //GObject = imports.gi.GObject;
-imports['Object.js'].load(Object);
+XObject = imports.XObject.XObject;
+console = imports.console.console;
+NameSpace = imports.NameSpace.NameSpace;
 
-console = imports['console.js'].console;
-
-
-
-Introspect = imports['JSDOC/Introspect.js'].Introspect;
-Base = imports['JSDOC/Introspect/Base.js'].Base;
+Base = imports.Base.Base;
 
 
 
@@ -23,7 +22,7 @@ Base = imports['JSDOC/Introspect/Base.js'].Base;
 
 
 
-Class = Object.define(
+Class = XObject.define(
     function(ns, name) {
         Base.call(this, ns, name);
         this.loadExtends();
@@ -43,7 +42,7 @@ Class = Object.define(
             if (!pi) {
                 return;
             }
-            this.parent = Introspect.factory(
+            this.parent = NameSpace.factory(
                 'Class',
                 GI.base_info_get_namespace(pi),
                 GI.base_info_get_name(pi)
@@ -70,7 +69,7 @@ Class = Object.define(
                 var prop = GI.object_info_get_interface(bb,i);
                  
                 
-                var iface = Introspect.factory(
+                var iface = NameSpace.factory(
                     'Interface', 
                     GI.base_info_get_namespace(prop) , GI.base_info_get_name(prop)
                 );
@@ -136,7 +135,7 @@ Class = Object.define(
             this.genericImplements( signals, 'signals');    
             
             
-            Introspect.references[this.alias] = Introspect.references[this.alias] || [];
+            NameSpace.references[this.alias] = NameSpace.references[this.alias] || [];
             if (this.alias == 'GObject.Object') {
                 this._loaded = true;
                 return;