| 1 | #cxx . . $ `<file>/gram/NoulliGridEditor.h`/ifndef _NoulliGridEditor_h_ |
| 2 | #define _NoulliGridEditor_h_cxx . . $ `gram/NoulliGridEditor.h:2:9`! |
| 3 | /* NoulliGridEditor.h |
| 4 | * |
| 5 | * Copyright (C) 2018,2020-2023 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 "NoulliGridArea.h"cxx . . $ `<file>/gram/NoulliGridArea.h`/ |
| 23 | #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/ |
| 24 | |
| 25 | #include "NoulliGridEditor_enums.h"cxx . . $ `<file>/gram/NoulliGridEditor_enums.h`/ |
| 26 | |
| 27 | Thing_definecxx . . $ NoulliGridEditor# (NoulliGridEditor, FunctionEditor) { |
| 28 | DEFINE_FunctionAreacxx . . $ autoNoulliGridArea# (1, NoulliGridArea, noulliGridArea) |
| 29 | DEFINE_FunctionAreacxx . . $ `foned/FunctionArea.h:209:9`! (2, SoundArea, soundArea) |
| 30 | NoulliGridcxx . . $ NoulliGrid# noulliGridcxx . . $ structNoulliGridEditor#noulliGrid(5ed5fe233a85eea). () { return static_cast <NoulliGridcxx . . $ NoulliGrid#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()); } |
| 31 | |
| 32 | void v1_dataChangedcxx . . $ structNoulliGridEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override { |
| 33 | NoulliGridEditor_Parentcxx . . $ NoulliGridEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender); |
| 34 | ourcxx . . $ `melder/melder.h:42:9`! noulliGridAreacxx . . $ structNoulliGridEditor#noulliGridArea(681f391b6380bac9).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (static_cast <NoulliGridcxx . . $ NoulliGrid#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).())); |
| 35 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).()) |
| 36 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (nullptr); |
| 37 | } |
| 38 | void v_distributeAreascxx . . $ structNoulliGridEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override { |
| 39 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).()) { |
| 40 | ourcxx . . $ `melder/melder.h:42:9`! noulliGridAreacxx . . $ structNoulliGridEditor#noulliGridArea(681f391b6380bac9).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.8); |
| 41 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.8, 1.0); |
| 42 | } else { |
| 43 | ourcxx . . $ `melder/melder.h:42:9`! noulliGridAreacxx . . $ structNoulliGridEditor#noulliGridArea(681f391b6380bac9).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0); |
| 44 | } |
| 45 | } |
| 46 | void v_playcxx . . $ structNoulliGridEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override { |
| 47 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).()) |
| 48 | Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this); |
| 49 | } |
| 50 | void v_drawLegendscxx . . $ structNoulliGridEditor#v_drawLegends(49f6e7a06ebc5aa8). () override { |
| 51 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! noulliGridAreacxx . . $ structNoulliGridEditor#noulliGridArea(681f391b6380bac9).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 52 | U" NoulliGrid", |
| 53 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! noulliGridAreacxx . . $ structNoulliGridEditor#noulliGridArea(681f391b6380bac9).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 54 | ); |
| 55 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).()) |
| 56 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 57 | FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" %%non-modifiable copy of sound", |
| 58 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structNoulliGridEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 59 | ); |
| 60 | } |
| 61 | void v_prefs_addFieldscxx . . $ structNoulliGridEditor#v_prefs_addFields(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) |
| 62 | override; |
| 63 | void v_prefs_setValuescxx . . $ structNoulliGridEditor#v_prefs_setValues(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) |
| 64 | override; |
| 65 | void v_prefs_getValuescxx . . $ structNoulliGridEditor#v_prefs_getValues(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) |
| 66 | override; |
| 67 | bool v_hasSelectionViewercxx . . $ structNoulliGridEditor#v_hasSelectionViewer(c9857a73d68e59ba). () |
| 68 | override { return true; } |
| 69 | void v_drawSelectionViewercxx . . $ structNoulliGridEditor#v_drawSelectionViewer(49f6e7a06ebc5aa8). () |
| 70 | override; |
| 71 | void v_drawRealTimeSelectionViewercxx . . $ structNoulliGridEditor#v_drawRealTimeSelectionViewer(ba8836b59fb42830). (double time) |
| 72 | override; |
| 73 | |
| 74 | #include "NoulliGridEditor_prefs.h"cxx . . $ `<file>/gram/NoulliGridEditor_prefs.h`/ |
| 75 | }; |
| 76 | |
| 77 | autoNoulliGridEditorcxx . . $ autoNoulliGridEditor# NoulliGridEditor_createcxx . . $ NoulliGridEditor_create(c25aafa314ca770b). (conststring32cxx . . $ conststring32# title, NoulliGridcxx . . $ NoulliGrid# grid, Soundcxx . . $ Sound# optionalSoundToCopy); |
| 78 | |
| 79 | /* End of file NoulliGridEditor.h */ |
| 80 | #endif |