Debian Codegraph @

foned/PointEditor.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/PointEditor.h`/ifndef _PointEditor_h_
2 #define _PointEditor_h_cxx . . $ `foned/PointEditor.h:2:9`!
3 /* PointEditor.h
4 *
5 * Copyright (C) 1992-2011,2012,2015,2016,2018,2022 Paul Boersma
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"cxx . . $ `<file>/foned/FunctionEditor.h`/
22 #include "PointArea.h"cxx . . $ `<file>/foned/PointArea.h`/
23 #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/
24 #include "PointProcess_and_Sound.h"cxx . . $ `<file>/fon/PointProcess_and_Sound.h`/
25
26 Thing_definecxx . . $ PointEditor# (PointEditor, FunctionEditor) {
27 DEFINE_FunctionAreacxx . . $ autoPointArea# (1, PointArea, pointArea)
28 DEFINE_FunctionAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6). (2, SoundArea, soundArea)
29
30 void v1_dataChangedcxx . . $ structPointEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override {
31 PointEditor_Parentcxx . . $ PointEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender);
32 ourcxx . . $ `melder/melder.h:42:9`! pointAreacxx . . $ structPointEditor#pointArea(c2c24fe344be548d).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (static_cast <PointProcesscxx . . $ PointProcess#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()));
33 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).())
34 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (nullptr);
35 }
36 void v_distributeAreascxx . . $ structPointEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override {
37 ourcxx . . $ `melder/melder.h:42:9`! pointAreacxx . . $ structPointEditor#pointArea(c2c24fe344be548d).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0);
38 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).())
39 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0);
40 }
41 void v_drawcxx . . $ structPointEditor#v_draw(49f6e7a06ebc5aa8). () override {
42 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).())
43 FunctionArea_drawTwocxx . . $ FunctionArea_drawTwo(7a6077e804b01a0a). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), ourcxx . . $ `melder/melder.h:42:9`! pointAreacxx . . $ structPointEditor#pointArea(c2c24fe344be548d).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
44 else
45 FunctionArea_drawOnecxx . . $ FunctionArea_drawOne(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! pointAreacxx . . $ structPointEditor#pointArea(c2c24fe344be548d).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
46 }
47 void v_createMenuItems_helpcxx . . $ structPointEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu)
48 override;
49 void v_playcxx . . $ structPointEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override {
50 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).())
51 Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structPointEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
52 else
53 PointProcess_playPartcxx . . $ PointProcess_playPart(76318b02fce8ae70). (ourcxx . . $ `melder/melder.h:42:9`! pointAreacxx . . $ structPointEditor#pointArea(c2c24fe344be548d).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). pointProcesscxx . . $ structPointArea#pointProcess(43db3c50dce602ea).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
54 }
55 };
56
57 autoPointEditorcxx . . $ autoPointEditor# PointEditor_createcxx . . $ PointEditor_create(56f67a08294549a). (conststring32cxx . . $ conststring32# title, PointProcesscxx . . $ PointProcess# point, Soundcxx . . $ Sound# optionalCopyOfSound);
58
59 /* End of file PointEditor.h */
60 #endif