/****************************************************************************
	Knihovna obsahuje metody pro inicializaci tridy TMainMenuObject.

*****************************************************************************/

#include "GR_menu_item.h"
#include "OS.h"

/****************************************************************************
	Metoda pro inicializaci instance TMenuObject jako odkazu na vnorene menu.

	Vstup: 
		subitems:			graficke objekty nalezejici podmenu
		submenus:			objekty struktury menu
		count:				pocet podobjektu

	Výstup:
		není

*****************************************************************************/
void TMainMenuObject::InitSub(TScreenObject* subitems, TMainMenuObject * submenus, char count)
{
	this->subObjects = subitems;
	this->subCount = count;
	this->Application = (TASK_NAME)-1;
	this->isExecutable = NO;
	this->subMenus = submenus;
}

/****************************************************************************
	Metoda pro inicializaci TMainMenuObject jako odkazu na aplikaci.

	Vstup: 
		App:		ID aplikace v OS

	Výstup:
		není

*****************************************************************************/
void TMainMenuObject::InitApp(TASK_NAME App)
{
	this->isExecutable = YES;
	this->subObjects = 0;
	this->subCount = 0;
	this->Application = App;
	this->subMenus = 0;
}

