Debian Codegraph @

foned/MovieWindow.h

raw symbols SCIP
1 #cxx . . $ `<file>/foned/MovieWindow.h`/ifndef _MovieWindow_h_
2 #define _MovieWindow_h_cxx . . $ `foned/MovieWindow.h:2:9`!
3 /* MovieWindow.h
4 *
5 * Copyright (C) 2011,2012,2014-2016,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 "MovieArea.h"cxx . . $ `<file>/foned/MovieArea.h`/
23 #include "SoundArea.h"cxx . . $ `<file>/foned/SoundArea.h`/
24 #include "SoundAnalysisArea.h"cxx . . $ `<file>/foned/SoundAnalysisArea.h`/
25
26 Thing_definecxx . . $ structMovieWindow# (MovieWindow, FunctionEditor) {
27 DEFINE_FunctionAreacxx . . $ structMovieWindow#videoArea(3714d70fa63d9a14). (1, MovieArea, videoArea)
28 DEFINE_FunctionAreacxx . . $ structFunctionEditor#functionAreas. (2, SoundArea, soundArea)
29 DEFINE_FunctionAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0). (3, SoundAnalysisArea, soundAnalysisArea)
30
31 Moviecxx . . $ Movie# moviecxx . . $ structMovieWindow#movie(cdcbbde373f1c1f4).() { return static_cast <Moviecxx . . $ Movie#> (ourcxx . . $ `melder/melder.h:42:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).()); }
32
33 void v1_dataChangedcxx . . $ structMovieWindow#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) override {
34 MovieWindow_Parentcxx . . $ MovieWindow_Parent# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (sender); // BUG: calls multiple functionChanged()
35 ourcxx . . $ `melder/melder.h:42:9`! videoAreacxx . . $ structMovieWindow#videoArea(3714d70fa63d9a14).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieWindow#movie(cdcbbde373f1c1f4).());
36 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieWindow#movie(cdcbbde373f1c1f4).() -> d_soundcxx . . $ structMovie#d_sound..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
37 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). functionChangedcxx . . $ structFunctionArea#functionChanged(18c8ee0a6873bee4). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieWindow#movie(cdcbbde373f1c1f4).() -> d_soundcxx . . $ structMovie#d_sound..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
38 }
39 void v_distributeAreascxx . . $ structMovieWindow#v_distributeAreas(49f6e7a06ebc5aa8). () override {
40 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). ()) {
41 ourcxx . . $ `melder/melder.h:42:9`! videoAreacxx . . $ structMovieWindow#videoArea(3714d70fa63d9a14).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.3);
42 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.7, 1.0);
43 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.3, 0.7);
44 } else {
45 ourcxx . . $ `melder/melder.h:42:9`! videoAreacxx . . $ structMovieWindow#videoArea(3714d70fa63d9a14).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.3);
46 ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.3, 1.0);
47 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). setGlobalYRange_fractioncxx . . $ structFunctionArea#setGlobalYRange_fraction(bc12c9ec15586e6a). (0.0, 0.0);
48 }
49 }
50 void v_drawcxx . . $ structMovieWindow#v_draw(49f6e7a06ebc5aa8). () override {
51 if (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).()) {
52 FunctionArea_prepareCanvascxx . . $ FunctionArea_prepareCanvas(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
53 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). instancePref_pulses_showcxx . . $ structSoundAnalysisArea#instancePref_pulses_show(50ce9a9e25b4a850).())
54 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). v_draw_analysis_pulsescxx . . $ structSoundAnalysisArea#v_draw_analysis_pulses(49f6e7a06ebc5aa8). ();
55 FunctionArea_drawInsidecxx . . $ FunctionArea_drawInside(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAreacxx . . $ structMovieWindow#soundArea(f75ec617f241a3e6).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
56 if (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). hasContentToShowcxx . . $ structSoundAnalysisArea#hasContentToShow(c9857a73d68e59ba). ()) {
57 FunctionArea_prepareCanvascxx . . $ FunctionArea_prepareCanvas(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
58 ourcxx . . $ `melder/melder.h:42:9`! soundAnalysisAreacxx . . $ structMovieWindow#soundAnalysisArea(189f664f81248f0).() ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). v_draw_analysiscxx . . $ structSoundAnalysisArea#v_draw_analysis(49f6e7a06ebc5aa8). ();
59 }
60 }
61 FunctionArea_drawOnecxx . . $ FunctionArea_drawOne(88b39197b202d92f). (ourcxx . . $ `melder/melder.h:42:9`! videoAreacxx . . $ structMovieWindow#videoArea(3714d70fa63d9a14).().getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
62 }
63 void v_playcxx . . $ structMovieWindow#v_play(bc12c9ec15586e6a). (double startTime, double endTime) override {
64 Movie_playcxx . . $ Movie_play(dfc8b15d5331c4fe). (ourcxx . . $ `melder/melder.h:42:9`! moviecxx . . $ structMovieWindow#movie(cdcbbde373f1c1f4).(), ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), startTime, endTime, theFunctionEditor_playCallbackcxx . . $ MelderCallback#MelderCallback(b367fc31b94dacdb)., this);
65 }
66 };
67
68 autoMovieWindowcxx . . $ autoMovieWindow# MovieWindow_createcxx . . $ MovieWindow_create(d1b748fee71f4d6). (conststring32cxx . . $ conststring32# title, Moviecxx . . $ Movie# movie);
69
70 /* End of file MovieWindow.h */
71 #endif