



#ifndef _PAGE_GADGET_H_
#define _PAGE_GADGET_H_

class PageGadget
	: public BView
{
public:
	PageGadget (const BRect & frame, const char * name,
	            uint32 resizingMode = B_FOLLOW_LEFT | B_FOLLOW_BOTTOM);
virtual ~PageGadget ();

	void SetNumberOfPage ();
	void SetPage (int page);
	void SetMessage (BMessage * msg);
	void SetTarget (BHandler * target);
virtual void Draw (BRect updateRect);
virtual void AttachedToWindow(void);

private:
	BPopUpMenu * mPopup;
	BHandler * mTarget;
	BMessage * mMessage;
	int mPage;
};



inline void PageGadget::SetPage (int page)
{
	mPage = page;
}

inline void PageGadget::SetTarget (BHandler * target)
{
	mTarget = target;
}

#endif
