Debian Codegraph @

dwtools/OptimalCeilingTierEditor.cpp

raw symbols SCIP
1 /* OptimalCeilingTierEditor.cpp
2 *
3 * Copyright (C) 2015-2019 David Weenink, 2022 Paul Boersma
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #include "OptimalCeilingTierEditor.h"cxx . . $ `<file>/dwtools/OptimalCeilingTierEditor.h`/
20 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
21
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (OptimalCeilingTierEditor, RealTierEditor, 0);
23
24 static void menu_cb_OptimalCeilingTierHelpcxx . . $ menu_cb_OptimalCeilingTierHelp(4da5bdac73ef821e). (OptimalCeilingTierEditorcxx . . $ OptimalCeilingTierEditor#, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { Melder_helpcxx . . $ Melder_help(ff00d524ab0355ec). (U"OptimalCeilingTier"); }
25
26 void structOptimalCeilingTierEditorcxx . . $ structOptimalCeilingTierEditor# :: v_createMenuItems_helpcxx . . $ structOptimalCeilingTierEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) {
27 OptimalCeilingTierEditor_Parentcxx . . $ OptimalCeilingTierEditor_Parent# :: v_createMenuItems_helpcxx . . $ structFunctionEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (menu);
28 EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"OptimalCeilingTier help", 0, menu_cb_OptimalCeilingTierHelpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
29 }
30
31 void structOptimalCeilingTierEditorcxx . . $ structOptimalCeilingTierEditor# :: v_playcxx . . $ structOptimalCeilingTierEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) {
32 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).())
33 Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
34 //else
35 // OptimalCeilingTier_playPart (data, startTime, endTime, false);
36 }
37
38 autoOptimalCeilingTierEditorcxx . . $ autoOptimalCeilingTierEditor# OptimalCeilingTierEditor_createcxx . . $ OptimalCeilingTierEditor_create(b16304a48981d962). (conststring32cxx . . $ conststring32# title,
39 OptimalCeilingTiercxx . . $ OptimalCeilingTier# optimalCeilingTier, Soundcxx . . $ Sound# soundToCopy)
40 {
41 try {
42 autoOptimalCeilingTierEditorcxx . . $ autoOptimalCeilingTierEditor# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (OptimalCeilingTierEditor);
43 mycxx . . $ `melder/melder.h:44:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() =cxx . . $ autoSomeThing#`operator=`(ed6a1a4da6aedae3). OptimalCeilingTierArea_createcxx . . $ OptimalCeilingTierArea_create(ac85ac8a44a791ab). (true, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
44 if (soundToCopy)
45 mycxx . . $ `melder/melder.h:44:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). SoundArea_createcxx . . $ SoundArea_create(4b60938fec9a8242). (false, soundToCopy, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
46 FunctionEditor_initcxx . . $ FunctionEditor_init(719bc58b4917372e). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), title, optimalCeilingTier);
47 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
48 } catch (MelderErrorcxx . . $ MelderError#) {
49 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"OptimalCeilingTier window not created.");
50 }
51 }
52
53 /* End of file OptimalCeilingTierEditor.cpp */