| 1 | #cxx . . $ `<file>/gram/CubeGridEditor.h`/ifndef _CubeGridEditor_h_ |
| 2 | #define _CubeGridEditor_h_cxx . . $ `gram/CubeGridEditor.h:2:9`! |
| 3 | /* CubeGridEditor.h |
| 4 | * |
| 5 | * Copyright (C) 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 "CubeGridArea.h"cxx . . $ `<file>/gram/CubeGridArea.h`/ |
| 23 | #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/ |
| 24 | |
| 25 | Thing_definecxx . . $ CubeGridEditor_Parent# (CubeGridEditor, FunctionEditor) { |
| 26 | DEFINE_FunctionAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac). (1, CubeGridArea, cubeGridArea) |
| 27 | DEFINE_FunctionAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6). (2, SoundArea, soundArea) |
| 28 | CubeGridcxx . . $ CubeGrid# cubeGridcxx . . $ structCubeGridEditor#cubeGrid(20f26e4902a37d54). () { return static_cast <CubeGridcxx . . $ CubeGrid#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()); } |
| 29 | |
| 30 | void v1_dataChangedcxx . . $ structCubeGridEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override { |
| 31 | CubeGridEditor_Parentcxx . . $ CubeGridEditor_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender); |
| 32 | ourcxx . . $ `melder/melder.h:42:9`! cubeGridAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (static_cast <CubeGridcxx . . $ CubeGrid#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).())); |
| 33 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).()) |
| 34 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (nullptr); |
| 35 | } |
| 36 | void v_distributeAreascxx . . $ structCubeGridEditor#v_distributeAreas(49f6e7a06ebc5aa8). () override { |
| 37 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).()) { |
| 38 | ourcxx . . $ `melder/melder.h:42:9`! cubeGridAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.8); |
| 39 | ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.8, 1.0); |
| 40 | } else { |
| 41 | ourcxx . . $ `melder/melder.h:42:9`! cubeGridAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 1.0); |
| 42 | } |
| 43 | } |
| 44 | void v_playcxx . . $ structCubeGridEditor#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override { |
| 45 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).()) |
| 46 | Sound_playPartcxx . . $ Sound_playPart(4a8b47ed00757136). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). soundcxx . . $ structSoundArea#sound(f0b31236b65da120).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this); |
| 47 | } |
| 48 | void v_drawLegendscxx . . $ structCubeGridEditor#v_drawLegends(49f6e7a06ebc5aa8). () override { |
| 49 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! cubeGridAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 50 | U" CubeGrid", |
| 51 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! cubeGridAreacxx . . $ structCubeGridEditor#cubeGridArea(706caed2b05d3bac).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 52 | ); |
| 53 | if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).()) |
| 54 | FunctionArea_drawLegendcxx . . $ FunctionArea_drawLegend(b4cb387346b51cd7). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), |
| 55 | FunctionArea_legend_WAVEFORMcxx . . $ `foned/FunctionArea.h:248:10`! U" %%non-modifiable copy of sound", |
| 56 | DataGui_defaultForegroundColourcxx . . $ DataGui_defaultForegroundColour(7d058e310f398cfa). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structCubeGridEditor#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), false) |
| 57 | ); |
| 58 | } |
| 59 | bool v_hasSelectionViewercxx . . $ structCubeGridEditor#v_hasSelectionViewer(c9857a73d68e59ba). () |
| 60 | override { return true; } |
| 61 | void v_drawSelectionViewercxx . . $ structCubeGridEditor#v_drawSelectionViewer(49f6e7a06ebc5aa8). () |
| 62 | override; |
| 63 | void v_drawRealTimeSelectionViewercxx . . $ structCubeGridEditor#v_drawRealTimeSelectionViewer(ba8836b59fb42830). (double time) |
| 64 | override; |
| 65 | |
| 66 | #include "CubeGridEditor_prefs.h"cxx . . $ `<file>/gram/CubeGridEditor_prefs.h`/ |
| 67 | }; |
| 68 | |
| 69 | autoCubeGridEditorcxx . . $ autoCubeGridEditor# CubeGridEditor_createcxx . . $ CubeGridEditor_create(dbad0b4e43ce1320). (conststring32cxx . . $ conststring32# title, CubeGridcxx . . $ CubeGrid# grid, Soundcxx . . $ Sound# optionalSoundToCopy); |
| 70 | |
| 71 | /* End of file CubeGridEditor.h */ |
| 72 | #endif |