#ifndef _TK_MENULISTENER_H_
#define _TK_MENULISTENER_H_

#include "tk_menu.h"

class TkMenu;

/**
 * \brief Interface for handling menu events
 * \date 01-12-2006
 *
 * \author Ondrej Svejdar
 *
 * \todo 
 *
 * \bug 
 *
 */
class TkMenuListener:public TObject
{
public:

	/**
	 * \brief Called when user click on menu item
	 * \param menu pointer to TkMenu where user clicked
	 * \param commandId id of menu item where user clicked
	 */
	virtual void handleEvent(TkMenu* menu,const string& commandId)=0;
};

#endif/*_TK_MENU_LISTENER_H_*/
