/**
 * @class Voyeur.Tool.VoyeurFooter A simple panel with credits for the Voyeur project.
 * @extends_ext Ext.Panel
 * @extends Voyeur.Tool
 * @namespace Voyeur.Tool
 * @author Stéfan Sinclair
 * @since 0.1.1
 */
Voyeur.Tool.VoyeurFooter = Ext.extend(Ext.Panel, {
	constructor : function(config) {
		Ext.apply(this, new Voyeur.Tool(config, this))
		Ext.applyIf(config, {
            html: '',
            autoHeight: true,
			collapsible : false,
			split : false,
			layout : 'fit',
			collapsibleMode : null,
			id : 'footer'
			,header : false
		});
		Voyeur.Tool.VoyeurFooter.superclass.constructor.apply(this, arguments);
		
		// check available size
		this.addListener('afterrender', function(panel) {
			panel.body.update(this.getFooterText(panel.body));
		}, this);
	}
});

Ext.reg('voyeurFooter', Voyeur.Tool.VoyeurFooter);

