#ifndef _RealTierEditor_h_
#define _RealTierEditor_h_
/* RealTierEditor.h; Paul Boersma, March 8, 2001 */

#ifndef _FunctionEditor_h_
	#include "FunctionEditor.h"
#endif
#ifndef _RealTier_h_
	#include "RealTier.h"
#endif
#ifndef _Sound_h_
	#include "Sound.h"
#endif

#define RealTierEditor_members FunctionEditor_members \
	int ownSound; \
	double ymin, ymax, ycursor;
#define RealTierEditor_methods FunctionEditor_methods \
	int zeroIsMinimum; \
	const char *quantityText, *quantityKey, *leftTickFormat, *rightTickFormat; \
	double defaultYmin, defaultYmax; \
	const char *setRangeTitle, *defaultYminText, *defaultYmaxText; \
	const char *yminText, *ymaxText, *yminKey, *ymaxKey;
class_create (RealTierEditor, FunctionEditor)

void RealTierEditor_updateScaling (I);
/*
	Computes the ymin and ymax values on the basis of the data.
	Call after every change in the data.
*/

int RealTierEditor_init (I, Widget parent, const char *title, RealTier data, Sound sound, int ownSound);
/*
	'Sound' may be NULL;
	if 'ownSound' is TRUE, the editor will contain a deep copy of the Sound,
	which the editor will destroy when the editor is destroyed.
*/

/* End of file RealTierEditor.h */
#endif
