Debian Codegraph @

foned/SoundEditor.cpp

raw symbols SCIP
1 /* SoundEditor.cpp
2 *
3 * Copyright (C) 1992-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 "SoundEditor.h"cxx . . $ `<file>/foned/SoundEditor.h`/
20 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
21
22 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (SoundEditor, FunctionEditor, 0);
23
24 static void menu_cb_SoundEditorHelpcxx . . $ menu_cb_SoundEditorHelp(b9d9bae1fc26c829). (SoundEditorcxx . . $ SoundEditor#, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { Melder_helpcxx . . $ Melder_help(ff00d524ab0355ec). (U"SoundEditor"); }
25 static void menu_cb_LongSoundEditorHelpcxx . . $ menu_cb_LongSoundEditorHelp(b9d9bae1fc26c829). (SoundEditorcxx . . $ SoundEditor#, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { Melder_helpcxx . . $ Melder_help(ff00d524ab0355ec). (U"LongSoundEditor"); }
26
27 void structSoundEditorcxx . . $ structSoundEditor# :: v_createMenuItems_helpcxx . . $ structSoundEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) {
28 structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_helpcxx . . $ structFunctionEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (menu);
29 EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"SoundEditor help", '?', menu_cb_SoundEditorHelpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
30 EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"LongSoundEditor help", 0, menu_cb_LongSoundEditorHelpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).);
31 // BUG: add help on Sound area and Sound analysis area
32 }
33
34 autoSoundEditorcxx . . $ autoSoundEditor# SoundEditor_createcxx . . $ SoundEditor_create(2cb9346986abbe40). (conststring32cxx . . $ conststring32# title, SampledXYcxx . . $ SampledXY# soundOrLongSound) {
35 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (soundOrLongSound);
36 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (soundOrLongSound -> ny > 0);
37 try {
38 autoSoundEditorcxx . . $ autoSoundEditor# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (SoundEditor);
39 if (Thing_isacxx . . $ Thing_isa(8cbb12e93d03b2a1). (soundOrLongSound, classSoundcxx . . $ classSound.))
40 mycxx . . $ `melder/melder.h:44:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).() =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). SoundArea_createcxx . . $ SoundArea_create(4b60938fec9a8242). (true, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
41 else
42 mycxx . . $ `melder/melder.h:44:9`! soundAreacxx . . $ structSoundEditor#soundArea(f75ec617f241a3e6).() =cxx . . $ autoSomeThing#`operator=`(ed6a1a4da6aedae3). LongSoundArea_createcxx . . $ LongSoundArea_create(bb83e7d8d927335f). (false, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
43 mycxx . . $ `melder/melder.h:44:9`! soundAnalysisAreacxx . . $ structSoundEditor#soundAnalysisArea(189f664f81248f0).() =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). SoundAnalysisArea_createcxx . . $ SoundAnalysisArea_create(7f82e0b8b2569e74). (false, nullptr, me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
44 FunctionEditor_initcxx . . $ FunctionEditor_init(719bc58b4917372e). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), title, soundOrLongSound);
45 return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).;
46 } catch (MelderErrorcxx . . $ MelderError#) {
47 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Sound window not created.");
48 }
49 }
50
51 /* End of file SoundEditor.cpp */