// ===========================================================================
// CSimlabPrefs.h	  �1995 J. Rodden, DD/MF & Associates. All rights reserved
// ===========================================================================

#include <PP_Types.h>
#include <CPreferences.h>

#pragma options align=mac68k
typedef struct {
	Int16	mToolbarShown;
	Int16	mDiscreteStepCount;
} SimlabPrefs, *SimlabPrefsPtr, **SimlabPrefsHndl;
#pragma options align=reset

class CSimlabPrefs : public CPreferences {
public:
				CSimlabPrefs(OSType inCreator, ConstStr255Param inName)
					: CPreferences( inCreator, inName, sizeof(SimlabPrefs)) { }

	Boolean		IsToolbarShown()
					{ return (**(SimlabPrefsHndl)mPrefs).mToolbarShown != 0; }
	void		IsToolbarShown(Boolean inShown)
					{ (**(SimlabPrefsHndl)mPrefs).mToolbarShown = inShown; }
	
	Int16		DiscreteStepCount()
					{ return (**(SimlabPrefsHndl)mPrefs).mDiscreteStepCount; }
	void		DiscreteStepCount(Int16 inCount)
					{ (**(SimlabPrefsHndl)mPrefs).mDiscreteStepCount = inCount; }
};