| 1 | #cxx . . $ `<file>/foned/RealTierEditor.h`/ifndef _RealTierEditor_h_ |
| 2 | #define _RealTierEditor_h_cxx . . $ `foned/RealTierEditor.h:2:9`! |
| 3 | /* RealTierEditor.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007-2012,2015-2018,2020-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 "RealTierArea.h"cxx . . $ `<file>/foned/RealTierArea.h`/ |
| 23 | #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/ |
| 24 | |
| 25 | Thing_definecxx . . $ ClassInfo# (RealTierEditor, FunctionEditor) { |
| 26 | DEFINE_FunctionAreacxx . . $ `foned/FunctionArea.h:209:9`! (1, RealTierArea, realTierArea) |
| 27 | DEFINE_FunctionAreacxx . . $ autoSoundArea# (2, SoundArea, soundArea) |
| 28 | |
| 29 | void v1_dataChangedcxx . . $ structRealTierEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override { |
| 30 | ourcxx . . $ `melder/melder.h:42:9`! RealTierEditor_Parentcxx . . $ RealTierEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender); |
| 31 | ourcxx . . $ `melder/melder.h:42:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (static_cast <RealTiercxx . . $ RealTier#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).())); |
| 32 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).()) |
| 33 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (nullptr); // BUG: the copy probably doesn't change |
| 34 | } |
| 35 | void v_distributeAreascxx . . $ structRealTierEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override { |
| 36 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).()) { |
| 37 | ourcxx . . $ `melder/melder.h:42:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.618); |
| 38 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.618, 1.0); |
| 39 | } else { |
| 40 | ourcxx . . $ `melder/melder.h:42:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0); |
| 41 | } |
| 42 | } |
| 43 | void v_playcxx . . $ structRealTierEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override { |
| 44 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).()) |
| 45 | 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); |
| 46 | } |
| 47 | void v_drawLegendscxx . . $ structRealTierEditor#v_drawLegends(49f6e7a06ebc5aa8). () override { |
| 48 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 49 | FunctionArea_legend_LINES_SPECKLEScxx . . $ `foned/FunctionArea.h:246:10`! U" ##modifiable RealTier", |
| 50 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! realTierAreacxx . . $ structRealTierEditor#realTierArea(dcdc0120dce326ec).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 51 | ); |
| 52 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).()) |
| 53 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 54 | FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" %%non-modifiable copy of sound", |
| 55 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structRealTierEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 56 | ); |
| 57 | } |
| 58 | }; |
| 59 | |
| 60 | autoRealTierEditorcxx . . $ autoRealTierEditor# RealTierEditor_createcxx . . $ RealTierEditor_create(dc3a6a5ec982a9f3). (conststring32cxx . . $ conststring32# title, RealTiercxx . . $ RealTier# tier, Soundcxx . . $ Sound# optionalSoundToCopy); |
| 61 | |
| 62 | /* End of file RealTierEditor.h */ |
| 63 | #endif |