1 #ifndef _FormantGridEditor_h_
2 #define _FormantGridEditor_h_
3 /* FormantGridEditor.h
4 *
5 * Copyright (C) 2008-2018,2020 Paul Boersma & David Weenink
6 *
7 * This code is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation; either version 2 of the License, or (at
10 * your option) any later version.
11 *
12 * This code is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this work. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "FunctionEditor.h"
22 #include "FormantGrid.h"
23 #include "RealTierArea.h"
24
Thing_define(FormantGridArea,RealTierArea)25 Thing_define (FormantGridArea, RealTierArea) {
26 };
27
Thing_define(FormantGridEditor,FunctionEditor)28 Thing_define (FormantGridEditor, FunctionEditor) {
29 autoFormantGridArea formantGridArea;
30
31 bool editingBandwidths;
32 GuiMenuItem d_bandwidthsToggle;
33 integer selectedFormant;
34
35 void v_createMenus ()
36 override;
37 void v_draw ()
38 override;
39 bool v_mouseInWideDataView (GuiDrawingArea_MouseEvent event, double x_world, double globalY_fraction)
40 override;
41 void v_play (double startTime, double endTime)
42 override;
43
44 virtual bool v_hasSourceMenu () { return true; }
45
46 #include "FormantGridEditor_prefs.h"
47 };
48
49 void FormantGridEditor_init (FormantGridEditor me, conststring32 title, FormantGrid data);
50
51 autoFormantGridEditor FormantGridEditor_create (conststring32 title, FormantGrid data);
52
53 /* End of file FormantGridEditor.h */
54 #endif
55