Blame view

js/app/views/AstroImagesUI.js 21.2 KB
16035364   Benjamin Renard   First commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
  * Project      :  AMDA-NG
  * Name         : AstroImagesUI.js
  * @plugin 	  amdaUI.AstroImagesUI
  * @extends 	  Ext.panel.Panel
  * @brief		 Astronomical images viewer for interoperability - Abstract class
  * @author Benjamin
  * @version $Id: AstroImagesUI.js 1847 2013-10-30 14:46:48Z elena $
  ********************************************************************************
  *    FT Id     :   Date   : Name - Description
  *******************************************************************************
  *  :          
  */

Ext.define('ImageNode', {
		    extend: 'Ext.data.Model',
		    
		    fields: [
		        {name: 'leaf',      type: 'boolean'},
		        {name: 'id',        type: 'string'},
		        {name: 'name',      type: 'string'},
		        {name: 'target',    type: 'string'},
		        {name: 'ra',        type: 'string'},
		        {name: 'dec',       type: 'string'},
		        {name: 'ref',       type: 'string'},
		        {name: 'start',     type: 'string'},
		        {name: 'stop',      type: 'string'},
		        {name: 'exposure',  type: 'string'},
		        {name: 'instrument',type: 'string'},
		        {name: 'preview_url', type: 'string'},
		        {name: 'image_url', type: 'string'},
		        {name: 'fits_url', type: 'string'},
		        {name: 'additional_text', type: 'string'}
		    ]
		});

Ext.define('amdaUI.AstroImagesUI', {
    extend: 'Ext.form.Panel',
    
    requires: [
               'amdaUI.SendToSampButtonUI'
           ],
    
    //
    getPreviewUrl : Ext.emptyFn,
    getImageLink  : Ext.emptyFn,
b7796276   Benjamin Renard   Migration to supp...
47
    getImageToSendUrl    : Ext.emptyFn,
16035364   Benjamin Renard   First commit
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
    refreshTree   : Ext.emptyFn,
    getAcknowledgement : Ext.emptyFn,
           
    timeSelector : null,
    preview      : false,
    
    constructor: function(config) {			
		this.init(config);
		this.callParent(arguments);
	},
    
	setInterval : function(startDate,stopDate)
	{
		this.timeSelector.setInterval(startDate,stopDate);
	},
	
	setPreview : function(prev)
	{
		if (!this.getPreviewUrl)
			return;
		
		this.preview = prev;
		
		var view = this.getImageTreePanel().getView();
		var rootNode = this.getImageTreePanel().store.getRootNode();
			
		rootNode.eachChild(function(folder)
				{
					folder.eachChild(function(image)
							{
								if (prev)
								{
									var imageSrc = this.getPreviewUrl(image);
									image.set('icon',imageSrc);
									image.set('iconCls','x-tree-icon-leaf');
								}
								else
								{
									image.set('icon','');
									image.set('iconCls','');
								}
							},this);
				},this);
	},
	
	getSelectedImageList : function()
	{
		var me = this;
		var root = this.getImageTreePanel().getRootNode();
		var imgList = new Array();
		
b7796276   Benjamin Renard   Migration to supp...
99
		if (!this.getImageToSendUrl)
16035364   Benjamin Renard   First commit
100
101
102
103
104
105
106
107
108
109
			return imgList;
		
		root.eachChild(function (folder){
			folder.eachChild(function (image){
				if(image.get('checked'))
				{
					var name = image.get('name');
					if (!name.substr(name.lastIndexOf('.') + 1) != "fits")
						name+='.fits';
					imgList.push({name:name, 
b7796276   Benjamin Renard   Migration to supp...
110
								  url:me.getImageToSendUrl(image)});
16035364   Benjamin Renard   First commit
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
				}
			});
		});
		
		return imgList;
	},
	
	getCurrentScript : function()
	{
		var imageList = this.getSelectedImageList();
		if (imageList.length <= 0)
			{
			  	Ext.Msg.show({title:'Empty selection', msg: 'You must select at least one image in tree', icon: Ext.MessageBox.WARNING, buttons: Ext.Msg.OK});
				return;
			}
		var interopModule = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id);
		if (interopModule) {
			return interopModule.generateAladinScript(imageList,'movie');
		};
b7796276   Benjamin Renard   Migration to supp...
130
		return "";
16035364   Benjamin Renard   First commit
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
	},
	
	onExtendInterval : function(o)
	{
		var dtField = o.up().up().query('numberfield')[0];
		var dtVal = dtField ? dtField.getValue() : 0;
		
		var unitField = o.up().up().query('combobox')[1];
		var unitVal = unitField ? unitField.getValue() : 'min';
		
		switch(unitVal)
		{
			case 'min' :
				dtVal *= 60;
				break;
			case 'hour' :
				dtVal *= 3600;
				break;
			case 'day' :
				dtVal *= (24*3600);
				break;
		}
		
		var startTime = this.timeSelector.getStartTime();
		var stopTime = this.timeSelector.getStopTime();
		
		switch(o.getText())
		{
			case 'left'  :
				startTime = Ext.Date.add(startTime, Ext.Date.MILLI, -dtVal*1000);
				break;
			case 'right' :
				stopTime  = Ext.Date.add(stopTime, Ext.Date.MILLI, dtVal*1000);
				break;
			case 'both'  :
				startTime = Ext.Date.add(startTime, Ext.Date.MILLI, -dtVal*1000);
				stopTime  = Ext.Date.add(stopTime, Ext.Date.MILLI, dtVal*1000);
				break;
		}
		
		this.timeSelector.setInterval(startTime,stopTime);
	},
	
	onShiftInterval : function(o)
	{
		var dtField = o.up().up().query('numberfield')[0];
		var dtVal = dtField ? dtField.getValue() : 0;
		
		var unitField = o.up().up().query('combobox')[1];
		var unitVal = unitField ? unitField.getValue() : 'min';
                
		switch(unitVal)
		{
			case 'min' :                            
				dtVal *= 60;                               
				break;
			case 'hour' :
				dtVal *= 3600;
				break;
			case 'day' :
				dtVal *= (24*3600);
				break;
		}
		
		var startTime = this.timeSelector.getStartTime();
		var stopTime = this.timeSelector.getStopTime();
		
		switch(o.getText())
		{
			case 'left'  :
				startTime = Ext.Date.add(startTime, Ext.Date.MILLI, -dtVal*1000);
				stopTime  = Ext.Date.add(stopTime, Ext.Date.MILLI, -dtVal*1000);
				break;
			case 'right' :
				startTime = Ext.Date.add(startTime, Ext.Date.MILLI, dtVal*1000);
				stopTime  = Ext.Date.add(stopTime, Ext.Date.MILLI, dtVal*1000);
				break;
		}
		
		this.timeSelector.setInterval(startTime,stopTime);
	},
	
	createTree : function(imagesArray)
	{
		this.getImageTreePanel().setLoading(false);
		var rootNode = this.getImageTreePanel().store.getRootNode();
		rootNode.removeAll(false);
	    	
		Ext.each(imagesArray, function(data){
			var rec =	Ext.create('ImageNode',{
					leaf  : false,
					id    : data.name,
					name  : data.name,
					start : data.start
				  });
			var folderNode = rootNode.appendChild(rec);
b7796276   Benjamin Renard   Migration to supp...
227
			Ext.each(data.images, function(image,index){
16035364   Benjamin Renard   First commit
228
229
				var rec =	Ext.create('ImageNode',{
					 leaf        : true,
b7796276   Benjamin Renard   Migration to supp...
230
					 id          : data.name+'-'+image.name+'-'+index+'-'+this.id,
16035364   Benjamin Renard   First commit
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
					 name        : image.name,
					 target      : image.target,
					 ra          : image.ra,
					 dec         : image.dec,
					 ref         : image.ref,
					 start       : image.start,
					 stop        : image.stop,
					 exposure    : image.exposure,
					 instrument  : image.instrument,
					 preview_url : image.preview_url,
					 fits_url    : image.fits_url,
					 image_url   : image.image_url,
					 additional_text : image.additional_text,
					 checked     : false,
					 hrefTarget  : '_blank'
				  });
				if (this.getImageLink)
					rec.set('href',this.getImageLink(rec));
						 
				folderNode.appendChild(rec);
			},this);
		}, this);
		
		this.getImageTreePanel().getView().refresh();
		
		this.setPreview(this.preview);
	},
	
	onRefreshTree : function(o)
	{
		if (this.refreshTree)
			this.refreshTree();
	},
	
	onSendFITSToSAMP : function(clientId, sendOpt)
	{
		if (!sendOpt.scope)
			return;
		
		var imageList = sendOpt.scope.getSelectedImageList();
		if (imageList.length <= 0)
			{
				Ext.Msg.show({title:'Empty selection', msg: 'You must select at least one image in tree', icon: Ext.MessageBox.WARNING, buttons: Ext.Msg.OK});
				return;
			}
		
		myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id, true, function (module) {
			/*var script = this.getCurrentScript();
			module.sendAladinScript(escape(script));*/	
			for( var i=0; i < imageList.length; i++)
			{
				var url = imageList[i].url;
				var name = imageList[i].name;
				if (module)
					module.sendFITS(url,name);
			}
		});
		
		
	},
	
	onSendToWeb : function(o)
	{
b7796276   Benjamin Renard   Migration to supp...
294
295
296
297
298
299
300
301
302
303
304
		var me = this;
		myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.interop.id, true, function (module) {
			var script = me.getCurrentScript();
			var args = "";
	        if( script )
	        {
	            args="?script="+escape(script);
	        }
	        var url = "http://aladin.u-strasbg.fr/java/nph-aladin.pl"+args;
	        window.open( url );
		});
16035364   Benjamin Renard   First commit
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
	},
	
	onDownload : function(o)
	{
		var imageList = this.getSelectedImageList();
		
		if (imageList.length <= 0)
		{
			Ext.Msg.show({title:'Empty selection', msg: 'You must select at least one image in tree', icon: Ext.MessageBox.WARNING, buttons: Ext.Msg.OK});
			return;
		}
			
		var obj = Ext.create('amdaModel.Download');
		obj.set('compression','zip');
		obj.set('list',imageList);
		obj.set('downloadSrc',2);
		
		amdaModel.DownloadNode.set('object',obj);	
		amdaModel.DownloadNode.execute();
	},
	
b7796276   Benjamin Renard   Migration to supp...
326
327
328
329
330
331
332
333
334
335
336
	getAdditionalRequestConfig : function(panelId)
	{
		return {};
	},
	
	getTargetList : function()
	{
		return [];
	},
	
	createRequestSelectorPanel : function(panelId)
16035364   Benjamin Renard   First commit
337
338
339
340
341
342
343
344
345
346
	{
		var me = this;
		this.timeSelector = Ext.create('amdaUI.IntervalUI', {});
		
		return {
			xtype : 'panel',
			region : 'west',
			title : 'Request definition',
			bodyStyle: { background : '#dfe8f6' },
			flex:1,
b7796276   Benjamin Renard   Migration to supp...
347
			layout: { type: 'vbox', align: 'stretch'},
16035364   Benjamin Renard   First commit
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
	    	dockedItems: [{
		          xtype: 'toolbar', 
		          dock: 'bottom',
		          items: [
		             '->',
		            {
		              text: 'Refresh',
		              scope : me,
		              handler : me.onRefreshTree
		          }]
	    		}],
		    items : [
		             { xtype: 'component', height: 5},
		             {
		            	xtype : 'combo',
		            	id : panelId+'-combo-target',
		            	fieldLabel : 'Target',
		            	fields : ['id', 'name'],
		            	queryMode: 'local',
		            	editable: false,
b7796276   Benjamin Renard   Migration to supp...
368
		            	store : this.getTargetList(),
16035364   Benjamin Renard   First commit
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
		            	value: "saturn"
		             },
		             {
		            	 xtype : 'component',
		            	 autoEl: 'hr'
		             },
		             this.timeSelector,
		             {
		            	 xtype : 'component',
		            	 autoEl: 'hr'
		             },
		             {
		            	 xtype : 'container',
		            	 layout : 'hbox',
		            	 items : [
		            	          {
		            	        	  xtype : 'numberfield',
		            	        	  fieldLabel : 'Delta T',
		            	        	  labelWidth: 60,
		            	        	  flex : 1,
		            	        	  minValue: 0,
		            	        	  value : 0,
		            	        	  hideTrigger: true,
		            	              keyNavEnabled: false,
		            	              mouseWheelEnabled: false
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'combobox',
		            	        	  queryMode: 'local',
		            	        	  forceSelection : true,
		            	        	  flex : 1,
		            	        	  allowBlank : false,
		            	        	  editable: false,
		            	        	  value : "min",
		            	        	  store : [
		            	        	          ["min","minute(s)"],
		            	        	          ["hour","hour(s)"],
		            	        	          ["day","day(s)"]
		            	        	          ]
		            	          }
		            	       ]
		             },
		             { xtype: 'component', height: 5},
		             {
		            	 xtype : 'container',
		            	 layout : 'hbox',
		            	 items : [
		            	          {
		            	        	  xtype : 'label',
		            	        	  text  : 'Extend ... ',
		            	        	  width : 60
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'button',
		            	        	  text  : 'left',
		            	        	  flex  : 1,
		            	        	  scope : me,
		            	        	  handler : me.onExtendInterval
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'button',
		            	        	  text  : 'right',
		            	        	  flex  : 1,
		            	        	  scope : me,
		            	        	  handler : me.onExtendInterval
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'button',
		            	        	  text  : 'both',
		            	        	  flex  : 1,
		            	        	  scope : me,
		            	        	  handler : me.onExtendInterval
		            	          }
		            	       ]
		             },
		             { xtype: 'component', height: 5},
		             {
		            	 xtype : 'container',
		            	 layout : 'hbox',
		            	 items : [
		            	          {
		            	        	  xtype : 'label',
		            	        	  text  : 'Shift ... ',
		            	        	  width : 60
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'button',
		            	        	  text  : 'left',
		            	        	  flex  : 1,
		            	        	  scope : me,
		            	        	  handler : me.onShiftInterval
		            	          },
		            	          { xtype: 'component', width: 5},
		            	          {
		            	        	  xtype : 'button',
		            	        	  text  : 'right',
		            	        	  flex  : 1,
		            	        	  scope : me,
		            	        	  handler : me.onShiftInterval
		            	          }
		            	       ]
b7796276   Benjamin Renard   Migration to supp...
475
476
477
478
479
480
		             },
		             {
		            	 xtype : 'component',
		            	 autoEl: 'hr'
		             },
		             this.getAdditionalRequestConfig(panelId)
16035364   Benjamin Renard   First commit
481
482
483
484
485
486
		    ]
		};
	},
	
	createImageTreePanel : function(panelId)
	{
16035364   Benjamin Renard   First commit
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
		var me = this;
		return {
			xtype : 'treepanel',
			region : 'center',
			title : 'Image Selection',
		    flex:1,
		    rootVisible: false,
		    autoScroll : true,
		    animate: false,
		    id : panelId+'-images-tree-panel',
		    columns: [{
	            xtype: 'treecolumn',
	            text: 'Images',
	            flex: 1,
	            sortable: false,
	            dataIndex : 'id',
	            renderer : function(value,metaData,record,rowIndex,colIndex,store,view)
                {
                	if (record.get('leaf'))
                	{
                		if (record.get('additional_text'))
                			return record.get('start') + ' - ' + record.get('additional_text');
                		else
                			return record.get('start');
                	}
                	var start = record.get('start');
                	var dt = Ext.Date.parse(start,'Y-m-d H:i:s');
                	return Ext.Date.format(dt, 'Y-m-d') + ' <b>('+record.childNodes.length+' image'+(record.childNodes.length > 1 ? 's' : '')+')</b>';
                } 
	        }],
	        store : Ext.create('Ext.data.TreeStore', {
	            root: {
	            	expanded: true,
	            	children: []
	        		},
	        	model : 'ImageNode'
	        }),
		    tbar : [
		            {
		            	text : 'Collapse all',
		            	flex : 1,
		            	scope : me,
		            	handler : function(o)
		            	{
		            		this.getImageTreePanel().collapseAll();
		            	}
		            },
		            {
		            	text : 'Expand all',
		            	flex : 1,
		            	scope : me,
		            	handler : function(o)
		            	{
		            		this.getImageTreePanel().expandAll();
		            	}
		            },
		            {
		            	text : 'Select all',
		            	flex : 1,
		            	scope : me,
		            	handler : function(o)
		            	{
		            		var root = this.getImageTreePanel().getRootNode();
		            		root.eachChild(function (folder){
		            			folder.eachChild(function (image){
		            				image.set('checked',true);
		            			});
		            		});
		            	}
		            },
		            {
		            	text : 'Unselect all',
		            	flex : 1,
		            	scope : me,
		            	handler : function(o)
		            	{
		            		var root = this.getImageTreePanel().getRootNode();
		            		root.eachChild(function (folder){
		            			folder.eachChild(function (image){
		            				image.set('checked',false);
		            			});
		            		});
		            	}
		            }
		            
		            ],
		     dockedItems: [{
		                xtype: 'toolbar',
		                dock: 'bottom',
		                items: [
		                        {
		                        	xtype : 'checkbox',
		                        	boxLabel: 'Load preview',
		                        	listeners : {
		                        		'change' : function(o,newVal,oldVal,opts)
		                        		{
		                        			me.setPreview(newVal);
		                        		}
		                        	}
		                        },
		                        '->',
		                        {
		                        	xtype : 'button',
		                        	text  : 'Download selection',
	      	  	        			scope : this,
	      	  	        			handler : me.onDownload
		                        }
		                        ]
		    }],
		    listeners :
		    {
			    'afterrender' : function(tree) 
				{
					view = tree.getView();
						
					
					view.tip = Ext.create('Ext.tip.ToolTip', {
						// The overall target element.
						target: view.el,
						// Each grid row causes its own seperate show and hide.
						delegate: view.itemSelector,
						// Moving within the row should not hide the tip.
						trackMouse: false,//true,
						// Render immediately so that tip.body can be referenced prior to the first show.
						//renderTo : Ext.getBody(),
						//showDelay : 2,
						//hideDelay : 0,
						listeners: {
							// Change content dynamically depending on which element triggered the show.
b7796276   Benjamin Renard   Migration to supp...
616
							beforeshow: function (tip) 
e72f367a   Benjamin Renard   Fix some bugs wit...
617
618
							{
								view = tree.getView();
16035364   Benjamin Renard   First commit
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
								record = view.getRecord(tip.triggerElement);
								if (record)
								{
									if (!record.get('leaf'))
									{
										var crtTip = '<b>Name : </b>"' + record.get('name') + '"<br/>';
										crtTip    += '<b>Start time : </b>"' + record.get('start') + '"<br/>';
										tip.update(crtTip);
										return;
									}
									var crtTip = '<b>Name : </b>' + record.get('name') + '<br/>';
									crtTip    += '<b>Start time : </b>' + record.get('start') + '<br/>';
									crtTip    += '<b>Stop time : </b>' + record.get('stop') + '<br/>';
									crtTip    += '<b>Exposure time : </b>' + record.get('exposure') + '<br/>';
									crtTip    += '<b>Target : </b>' + record.get('target') + '<br/>';
									crtTip    += '<b>Instrument : </b>' + record.get('instrument') + '<br/>';
									
									if (me.preview && me.getPreviewUrl)
										crtTip    += '<img width=300 height=300 src="'+me.getPreviewUrl(record)+'" /><br/>';
									
									tip.update(crtTip);
								}
		            		}
						}
					});
				}
		    }
		};
	},
	
	getImageTreePanel : function()
	{
		return this.queryById(this.id+'-images-tree-panel');
	},
	
	getTargetCombo : function()
	{
		return this.queryById(this.id+'-combo-target');
	},
	
	forceRefresh : function()
	{
		this.onRefreshTree(this);
	},
	
    init : function(config)	
    {
	  var me = this;
		
	  var myConf = {
    		  defaults: {
    	  	    bodyStyle: { background : '#dfe8f6' }
    	  	  },
    	  	  layout : 'border',
    	  	  items: [
    	  	          {
    	  	        	xtype : 'panel',
  	  	        	    region : 'north',
  	  	        	    height : 40,
  	  	        	    html : this.getAcknowledgement ? this.getAcknowledgement() : 'ToDo - Acknowledgement'
    	  	          },
b7796276   Benjamin Renard   Migration to supp...
680
    	  	          this.createRequestSelectorPanel(config.id),
16035364   Benjamin Renard   First commit
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
    	  	          this.createImageTreePanel(config.id),
    	  	          {
    	  	        	  xtype : 'panel',
    	  	        	  region : 'south',
    	  	        	  layout : 'hbox',
    	  	        	  title : 'Interoperability',
      	  	        	  height : 60,
      	  	        	  items :
      	  	        		  [
      	  	        		   {
      	  	        			   xtype : 'combobox',
      	  	        			   fieldLabel : 'Display Mode',
      	  	        			   flex : 2,
      	  	        			   disabled : true,
      	  	        			   allowBlank : false,
      	  	        			   editable: false,
      	  	        			   store : [
      	  	        			            ["mosaic","mosaic"],
      	  	        			            ["movie","movie"],
      	  	        			            ["diff","diff"]
      	  	        			            ]
      	  	        		   },
      	  	        		   { xtype: 'component', width: 5},
      	  	        		   {
      	  	        			   xtype : 'button',
      	  	        			   flex : 1,
      	  	        			   text  : 'Send to Aladin Web',
      	  	        			   scope : this,
      	  	        			   handler : this.onSendToWeb
      	  	        		   },
      	  	        		   { xtype: 'component', width: 5},
      	  	        		   {
      	  	        			   xtype : 'sendToSampButton',
      	  	        			   flex : 1,
      	  	        			   type         : 'fits',
      	  	        			   onSendToSamp : me.onSendFITSToSAMP,
      	  	        			   sendOpt : {scope : me}
      	  	        		   }
      	  	        		  ]
    	  	          }
    	  	  ]
    	  	  };
      Ext.apply (this , Ext.apply (arguments, myConf));
    }
e72f367a   Benjamin Renard   Fix some bugs wit...
725
});