#ifndef _TOP_LEVEL_WINDOW_H_
#define _TOP_LEVEL_WINDOW_H_

#include "appwindow.h"

class Designer;

/**
 * \brief Represent toplevel widget.
 * 
 * \date 01-29-2006
 *
 * \author Ondrej Svejdar
 *
 * \todo 
 *
 * \bug 
 *
 */
class TopLevelWindow:public ButtonPressListener
{
	Ptr<TclInterp> interp;
	Ptr<TkTopLevel> window;
	Designer* designer;

	class MyConfigureListener;
public:
	TopLevelWindow(TclInterp* interp,Designer* designer,TkTopLevel* window);
	void onButtonPress(EHeader& header,int button,const string& state,int x,int y,int x_root,int y_root);
};

#endif/*_TOP_LEVEL_WINDOW_*/



