Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 506

root-tutorial-5.34.14-2.fc18.noarch.rpm

/*
 * $Header$
 * $Log$
 */

#ifndef __XSSTEPBUTTON_H
#define __XSSTEPBUTTON_H

#include <TGFrame.h>
#include <TGButton.h>

/* --- Messages that generate ---- */

#define XSSTEPBUTTON_UP		0
#define XSSTEPBUTTON_DOWN	1

/* =========== XSStepButton ============== */
class XSStepButton : public TGCompositeFrame
{
protected:
	const TGWindow	*fMsgWindow;	// window handling listbox messages

	Int_t		buttonId;

	TGLayoutHints	*lHints;

	TGPictureButton	*upButton,
			*downButton;

	UInt_t		width,
			height;

public:
	XSStepButton( const TGWindow *p, Int_t id );
	~XSStepButton();

	virtual void	Associate(const TGWindow *w) { fMsgWindow = w; }

	virtual Bool_t	ProcessMessage(Long_t msg,
				Long_t param1, Long_t param2);

	virtual TGDimension	GetDefaultSize() const
			{ return TGDimension(width,height); }


	//ClassDef(XSStepButton,1)
}; // XSStepButton

#endif