Debian Codegraph @

foned/DurationTierEditor.cpp

raw symbols SCIP
1 /* DurationTierEditor.cpp
2 *
3 * Copyright (C) 1992-2012,2014-2016,2018,2020,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 "DurationTierEditor.h"cxx . . $ `<file>/foned/DurationTierEditor.h`/
20 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
21
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (DurationTierEditor, RealTierEditor, 0);
23
24 static void menu_cb_DurationTierHelpcxx . . $ menu_cb_DurationTierHelp(c63354347b402a0e). (DurationTierEditorcxx . . $ DurationTierEditor#, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { Melder_helpcxx . . $ Melder_help(ff00d524ab0355ec). (U"DurationTier"); }
25
26 void structDurationTierEditorcxx . . $ structDurationTierEditor# :: v_createMenuItems_helpcxx . . $ structDurationTierEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) {
27 DurationTierEditor_Parentcxx . . $ DurationTierEditor_Parent# :: v_createMenuItems_helpcxx . . $ structFunctionEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (menu);
28 EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"DurationTier help", 0, menu_cb_DurationTierHelpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
29 }
30
31 void structDurationTierEditorcxx . . $ structDurationTierEditor# :: v_playcxx . . $ structDurationTierEditor#v_play(bc12c9ec15586e6a). (double fromTime, double toTime) {
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).(), fromTime, toTime, nullptrcxx . . $ MelderCallback#MelderCallback(88514059881c9050)., nullptr);
34 } else {
35 //DurationTier_playPart (data, fromTime, toTime, false);
36 }
37 }
38
39 autoDurationTierEditorcxx . . $ autoDurationTierEditor# DurationTierEditor_createcxx . . $ DurationTierEditor_create(774d82a8bf7f9020). (conststring32cxx . . $ conststring32# title, DurationTiercxx . . $ DurationTier# durationTier, Soundcxx . . $ Sound# soundToCopy) {
40 try {
41 autoDurationTierEditorcxx . . $ autoDurationTierEditor# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (DurationTierEditor);
42 mycxx . . $ `melder/melder.h:44:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() =cxx . . $ autoSomeThing#`operator=`(ed6a1a4da6aedae3). DurationTierArea_createcxx . . $ DurationTierArea_create(9bfa51400298d315). (true, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
43 if (soundToCopy)
44 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).());
45 FunctionEditor_initcxx . . $ FunctionEditor_init(719bc58b4917372e). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), title, durationTier);
46 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
47 } catch (MelderErrorcxx . . $ MelderError#) {
48 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"DurationTier window not created.");
49 }
50 }
51
52 /* End of file DurationTierEditor.cpp */