/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to js/adei.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-10-30 01:27:40 UTC
  • mto: This revision was merged to the branch mainline in revision 116.
  • Revision ID: csa@dside.dyndns.org-20081030012740-svt0yigxj5uzwxyj
Few steps on source tree integration in javascript frontend

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
    this.config = new CONFIG;
11
11
    this.module = new MODULE(null, configSetupModule, this.config);
12
12
    this.popup = new POPUP(Geometry, null);
 
13
    this.search = new SEARCH();
 
14
    this.virtual = null;
 
15
    
13
16
    this.status = new STATUS(this.statusbar_node);
14
17
    this.SetStatus(translate("Starting..."), 0, true);
15
18
 
164
167
    }
165
168
}
166
169
 
 
170
ADEI.prototype.RegisterVirtualControl = function(id, control) {
 
171
    this.virtual = new VIRTUAL(id, control);
 
172
}
 
173
 
167
174
ADEI.prototype.AttachSourceModule = function(source, ivl, wnd) {
168
175
    this.source = source;
169
176
    this.source_interval = ivl;
204
211
}
205
212
 
206
213
ADEI.prototype.Start = function(mod, update_rate) {
 
214
    this.virtual.Start();
207
215
    this.module.Open(mod);
208
216
    this.menu.Load();
209
217
    this.updater.Start(update_rate);
269
277
    return this.GetService('tools', props?(props+"&target="+name):("target="+name));
270
278
}
271
279
 
 
280
ADEI.prototype.GetSearchService = function(text, props) {
 
281
    var cprops = this.config.GetProps();
 
282
    
 
283
    return this.GetService('search', urlJoinProps(cprops, props, "search="+text));
 
284
}
 
285
 
272
286
ADEI.prototype.SetSuccessStatus = function(msg, duration, non_ready) {
273
287
    if (this.status) {
274
288
        if ((non_ready)||(this.config.ready)) {
314
328
        this.status.Clean(id);
315
329
    }
316
330
}
 
331
 
 
332
ADEI.prototype.Search = function(text) {
 
333
    this.search.StartSearch(text);
 
334
}
 
335
 
 
336
ADEI.prototype.OpenControl = function(name) {
 
337
    this.popup.OpenControl(name);
 
338
}