/* Spectrogram8Editor.c */
/* Paul Boersma, December 18, 1997 */

#include "Spectrogram8Editor.h"

static void draw (I)
{
	iam (Spectrogram8Editor);
	Spectrogram8_paintInside (my data, my graphics, my startWindow, my endWindow, 0, 0, 0, 100);
}

/*static int click (I, double xWC, double yWC, int shiftKeyPressed)
{
	iam (Spectrogram8Editor);
	Spectrogram8 spectrogram8 = my data;
	double frequency = yWC * my maximum, dt;
	long bestFrame;
	bestFrame = Sampled_xToNearestIndex (spectrogram8, xWC);
	if (bestFrame < 1)
		bestFrame = 1;
	else if (bestFrame > spectrogram8 -> nx)
		bestFrame = spectrogram8 -> nx;
	return inherited (Spectrogram8Editor) click (me, xWC, yWC, shiftKeyPressed)
}*/

class_methods (Spectrogram8Editor, FunctionEditor)
	class_method (draw)
class_methods_end

Any Spectrogram8Editor_create (Widget parent, char *title, Any data)
{
	Spectrogram8Editor me = new (Spectrogram8Editor);
	Melder_assert (Thing_member (data, classSpectrogram8));
	if (! me || ! FunctionEditor_init (me, parent, title, data)) return NULL;
	return me;
}

/* End of file Spectrogram8Editor.c */
