function Model(parent) {
	this.parent=parent
	this.settings=new Settings(this)
	this.category=new Category(this)
	this.font=new Font(this)

	this.setCategory=setCategory_fnct
	this.getCategory=getCategory_fnct
	this.setFont=setFont_fnct
	this.getFont=getFont_fnct
}

function setCategory_fnct(category) {
	this.category.name=category
	if(category!='desc') {
		this.category.category.set(eval(category))
	} else {
		this.category.category.set(null)
	}
}

function getCategory_fnct() {
	return this.category.category.get()
}

function setFont_fnct(name, info) {
	this.font.info=info
	this.font.font.set(name)
}

function getFont_fnct() {
	return [this.font.font.get(), this.font.info]
}

