Debian Codegraph @

foned/RealTierEditor.cpp

raw
1 /* RealTierEditor.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 "RealTierEditor.h"
20 #include "EditorM.h"
21
22 Thing_implement (RealTierEditor, FunctionEditor, 0);
23
24 autoRealTierEditor RealTierEditor_create (conststring32 title, RealTier realTier, Sound optionalSoundToCopy) {
25 try {
26 autoRealTierEditor me = Thing_new (RealTierEditor);
27 my realTierArea() = RealTierArea_create (true, nullptr, me.get());
28 if (optionalSoundToCopy)
29 my soundArea() = SoundArea_create (false, optionalSoundToCopy, me.get());
30 FunctionEditor_init (me.get(), title, realTier);
31 return me;
32 } catch (MelderError) {
33 Melder_throw (U"RealTier window not created.");
34 }
35 }
36
37 /* End of file RealTierEditor.cpp */