//		IconPane.h
//		http://www-acs.ucsd.edu/~jstrout/macdev/panes/
//		last modified: 11/10/97

#ifndef __ICONPANE_H
#define __ICONPANE_H

#include "Pane.h"
#include "Icons.h"	// required as of CWPro 1

class IconPane : public Pane
{
  public:

	// constructor -- pass the first 'cicn' resource number, and how many
	IconPane(const int firstCicnNum, const int qtyIcons=2 );

	// destructor -- frees the icon data
	~IconPane();

	// draw the pane (assumes grafport coordinates are set up)
	virtual void Draw();

	// handle a click: cycle through icons
	virtual Boolean Click(Point where, short modifiers);

	CIconHandle		*mIcons;		// icons
	short			mQtyIcons;		// how many we have
	short			mState;			// current icon number
	Boolean			mPopBack;		// set to 1 if the state pops back
};

#endif
