#ifndef _IntensityTierEditor_h_
#define _IntensityTierEditor_h_
/* IntensityTierEditor.h
 *
 * Copyright (C) 1992-2011 Paul Boersma
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */

#include "RealTierEditor.h"
#include "IntensityTier.h"
#include "Sound.h"

Thing_define (IntensityTierEditor, RealTierEditor) {
	// overridden methods:
		virtual void v_createHelpMenuItems (EditorMenu menu);
		virtual void v_play (double tmin, double tmax);
		virtual const wchar * v_quantityText () { return L"Intensity (dB)"; }
		virtual const wchar * v_quantityKey () { return L"Intensity"; }
		virtual const wchar * v_rightTickUnits () { return L" dB"; }
		virtual double v_defaultYmin () { return 50.0; }
		virtual double v_defaultYmax () { return 100.0; }
		virtual const wchar * v_setRangeTitle () { return L"Set intensity range..."; }
		virtual const wchar * v_defaultYminText () { return L"50.0"; }
		virtual const wchar * v_defaultYmaxText () { return L"100.0"; }
		virtual const wchar * v_yminText () { return L"Minimum intensity (dB)"; }
		virtual const wchar * v_ymaxText () { return L"Maximum intensity (dB)"; }
		virtual const wchar * v_yminKey () { return L"Minimum intensity"; }
		virtual const wchar * v_ymaxKey () { return L"Maximum intensity"; }
};

IntensityTierEditor IntensityTierEditor_create (GuiObject parent, const wchar *title,
	IntensityTier intensity, Sound sound, bool ownSound);
/*
	'sound' may be NULL.
*/

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