| 1 | /* FunctionEditor.cpp |
| 2 | * |
| 3 | * Copyright (C) 1992-2026 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 3 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 "FunctionEditor.h"cxx . . $ `<file>/foned/FunctionEditor.h`/ |
| 20 | #include "machine.h"cxx . . $ `<file>/sys/machine.h`/ |
| 21 | #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/ |
| 22 | #include "GuiP.h"cxx . . $ `<file>/sys/GuiP.h`/ |
| 23 | #include "FunctionArea.h"cxx . . $ `<file>/foned/FunctionArea.h`/ |
| 24 | |
| 25 | Thing_implement_pureVirtualcxx . . $ `sys/Thing.h:70:9`! (FunctionEditor, Editor, 0); |
| 26 | |
| 27 | #include "Prefs_define.h"cxx . . $ `<file>/sys/Prefs_define.h`/ |
| 28 | #include "FunctionEditor_prefs.h"cxx . . $ `<file>/foned/FunctionEditor_prefs.h`/ |
| 29 | #include "Prefs_install.h"cxx . . $ `<file>/sys/Prefs_install.h`/ |
| 30 | #include "FunctionEditor_prefs.h"cxx . . $ `<file>/foned/FunctionEditor_prefs.h`/ |
| 31 | #include "Prefs_copyToInstance.h"cxx . . $ `<file>/sys/Prefs_copyToInstance.h`/ |
| 32 | #include "FunctionEditor_prefs.h"cxx . . $ `<file>/foned/FunctionEditor_prefs.h`/ |
| 33 | #include "GraphicsP.h"cxx . . $ `<file>/sys/GraphicsP.h`/ |
| 34 | |
| 35 | namespacecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/ { |
| 36 | constexpr double maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. = 2'000'000'000.0; |
| 37 | constexpr double RELATIVE_PAGE_INCREMENTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/RELATIVE_PAGE_INCREMENT. = 0.8; |
| 38 | constexpr double SCROLL_INCREMENT_FRACTIONcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/SCROLL_INCREMENT_FRACTION. = 20.0; |
| 39 | constexpr int TEXT_HEIGHTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/TEXT_HEIGHT. = 50; |
| 40 | constexpr int BUTTON_Xcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_X. = 3; |
| 41 | constexpr int BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. = 40; |
| 42 | constexpr int BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING. = 8; |
| 43 | |
| 44 | constexpr integercxx . . $ integer# THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE. = 100; |
| 45 | integercxx . . $ integer# theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. = 0; |
| 46 | FunctionEditorcxx . . $ FunctionEditor# theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [1 + THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.]; |
| 47 | } |
| 48 | |
| 49 | static bool group_equalDomaincxx . . $ group_equalDomain(828b76dce88fac). (double tmin, double tmax) { |
| 50 | if (theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. == 0) |
| 51 | return true; |
| 52 | for (integercxx . . $ integer# i = 1; i <= THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.; i ++) |
| 53 | if (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i]) |
| 54 | return ( tmin == theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] -> tmincxx . . $ structFunctionEditor#tmin. && tmax == theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] -> tmaxcxx . . $ structFunctionEditor#tmax. ); |
| 55 | return false; // should not occur |
| 56 | } |
| 57 | |
| 58 | static void updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 59 | /* We cannot call this immediately after creation. */ |
| 60 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) |
| 61 | Melder_crashcxx . . $ `melder/melder_error.h:98:9`! (U"updateScrollBar: the window runs from ", mycxx . . $ `melder/melder.h:44:9`! startWindow, U" to ", mycxx . . $ `melder/melder.h:44:9`! endWindow, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long (), |
| 62 | U", but the whole domain runs only from ", mycxx . . $ `melder/melder.h:44:9`! tmin, U" to ", mycxx . . $ `melder/melder.h:44:9`! tmax, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long (), U"."); |
| 63 | const double slider_size = Melder_clippedLeftcxx . . $ Melder_clippedLeft(f80f7d6260b3ee3a). (1.0, (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) * maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. - 1.0); |
| 64 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (maximumScrollBarValue - slider_size >= 1.0); |
| 65 | const double value = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (1.0, (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) / (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) * maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. + 1.0, maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. - slider_size); |
| 66 | const double increment = slider_size / SCROLL_INCREMENT_FRACTIONcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/SCROLL_INCREMENT_FRACTION. + 1.0; |
| 67 | const double page_increment = RELATIVE_PAGE_INCREMENTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/RELATIVE_PAGE_INCREMENT. * slider_size + 1.0; |
| 68 | GuiScrollBar_setcxx . . $ GuiScrollBar_set(bfc251e32db14223). (mycxx . . $ `melder/melder.h:44:9`! scrollBarcxx . . $ structFunctionEditor#scrollBar., undefinedcxx . . $ undefined., maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue., value, slider_size, increment, page_increment); |
| 69 | } |
| 70 | |
| 71 | static void updateGroupcxx . . $ updateGroup(21cfc61438744486). (FunctionEditorcxx . . $ FunctionEditor# me, const bool windowMarkersChanged, const bool selectionMarkersChanged) { |
| 72 | if (! mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group.) |
| 73 | return; |
| 74 | for (integercxx . . $ integer# i = 1; i <= THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.; i ++) { |
| 75 | if (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] && theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] != me) { |
| 76 | FunctionEditorcxx . . $ FunctionEditor# thee = theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i]; |
| 77 | if (mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).() && windowMarkersChanged) { |
| 78 | thycxx . . $ `melder/melder.h:45:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 79 | thycxx . . $ `melder/melder.h:45:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 80 | thycxx . . $ `melder/melder.h:45:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 81 | } |
| 82 | if (selectionMarkersChanged) { |
| 83 | thycxx . . $ `melder/melder.h:45:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 84 | thycxx . . $ `melder/melder.h:45:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 85 | } |
| 86 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (thycxx . . $ `melder/melder.h:45:9`! startSelection)); // precondition of FunctionEditor_updateText() |
| 87 | FunctionEditor_updateTextcxx . . $ FunctionEditor_updateText(8d3b84f45830d365). (thee); |
| 88 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (thee); |
| 89 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (thee); // BUG: does this do *two* updates if thou containst the same data as me? |
| 90 | } |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | static void drawBackgroundAndDatacxx . . $ drawBackgroundAndData(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 95 | if (Melder_debugcxx . . $ Melder_debug. == 55) |
| 96 | Melder_casualcxx . . $ Melder_casual(6298c93241566110). (Thing_messageNameAndAddresscxx . . $ Thing_messageNameAndAddress(fbb3dc34e3ef688d). (me), U" draw"); |
| 97 | const bool leftFromWindow = ( mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. > mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. ); |
| 98 | const bool rightFromWindow = ( mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. < mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. ); |
| 99 | const bool cursorIsVisible = ( mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. == mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. && mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. >= mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. && mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. <= mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ); |
| 100 | const bool selectionIsNonempty = ( mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. ); |
| 101 | |
| 102 | /* |
| 103 | Update selection. |
| 104 | */ |
| 105 | const bool startIsVisible = ( mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. > mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. && mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ); |
| 106 | const bool endIsVisible = ( mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. && mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ); |
| 107 | |
| 108 | /* |
| 109 | Update markers. |
| 110 | */ |
| 111 | mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers. = 0; |
| 112 | if (startIsVisible) |
| 113 | mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [++ mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers.] = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 114 | if (endIsVisible && mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. != mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.) |
| 115 | mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [++ mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers.] = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 116 | mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [++ mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers.] = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 117 | sort_e_VEC_inoutcxx . . $ sort_e_VEC_inout(e75f7985a5e05502). (VECcxx . . $ vector#vector(3aadefc30ed88664). (& mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [1], mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers.)); |
| 118 | |
| 119 | /* |
| 120 | Update rectangles. |
| 121 | */ |
| 122 | |
| 123 | /* |
| 124 | Initialize to 0; rectangles that stay at zero will not be drawn. |
| 125 | */ |
| 126 | for (integercxx . . $ integer# i = 0; i < 8; i++) |
| 127 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = 0; |
| 128 | |
| 129 | /* |
| 130 | 0: rectangle for total. |
| 131 | */ |
| 132 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [0]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + ( leftFromWindow ? 0 : mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. ); |
| 133 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [0]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - ( rightFromWindow ? 0 : mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. ); |
| 134 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [0]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN.; |
| 135 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [0]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space.; |
| 136 | |
| 137 | /* |
| 138 | 1: rectangle for visible part. |
| 139 | */ |
| 140 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [1]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN.; |
| 141 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [1]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN.; |
| 142 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [1]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space.; |
| 143 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [1]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. * ( mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers. > 1 ? 2 : 3 ); |
| 144 | |
| 145 | /* |
| 146 | 2: rectangle for left from visible part. |
| 147 | */ |
| 148 | if (leftFromWindow) { |
| 149 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [2]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft.; |
| 150 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [2]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN.; |
| 151 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [2]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space.; |
| 152 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [2]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. * 2; |
| 153 | } |
| 154 | |
| 155 | /* |
| 156 | 3: rectangle for right from visible part. |
| 157 | */ |
| 158 | if (rightFromWindow) { |
| 159 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN.; |
| 160 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight.; |
| 161 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space.; |
| 162 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. * 2; |
| 163 | } |
| 164 | |
| 165 | /* |
| 166 | 4, 5, 6: rectangles between markers visible in visible part. |
| 167 | */ |
| 168 | if (mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers. > 1) { |
| 169 | const double window = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 170 | for (integercxx . . $ integer# i = 1; i <= mycxx . . $ `melder/melder.h:44:9`! numberOfMarkerscxx . . $ structFunctionEditor#numberOfMarkers.; i ++) { |
| 171 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3 + i]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = i == 1 ? mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. : mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. + (mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 2) * |
| 172 | (mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [i - 1] - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / window; |
| 173 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3 + i]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. + (mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 2) * |
| 174 | (mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [i] - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / window; |
| 175 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3 + i]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. * 2; |
| 176 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [3 + i]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. * 3; |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | if (selectionIsNonempty) { |
| 181 | const double window = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 182 | const double left = |
| 183 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. == mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. ? |
| 184 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. |
| 185 | : mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. == mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. ? |
| 186 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. |
| 187 | : mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. ? |
| 188 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 0.3 |
| 189 | : mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ? |
| 190 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. + (mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 2) * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / window |
| 191 | : mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. == mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ? |
| 192 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. |
| 193 | : |
| 194 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 0.7 |
| 195 | ; |
| 196 | const double right = |
| 197 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. ? |
| 198 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 0.7 |
| 199 | : mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. == mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. ? |
| 200 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. |
| 201 | : mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ? |
| 202 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. + mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. + (mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 2) * (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / window |
| 203 | : mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. == mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. ? |
| 204 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. |
| 205 | : mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. ? |
| 206 | mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! MARGINcxx . . $ structFunctionEditor#MARGIN. * 0.3 |
| 207 | : mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. |
| 208 | ; |
| 209 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [7]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. = left; |
| 210 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [7]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. = right; |
| 211 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [7]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. - mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN.; |
| 212 | mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [7]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top. = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN.; |
| 213 | } |
| 214 | |
| 215 | /* |
| 216 | Window background. |
| 217 | */ |
| 218 | mycxx . . $ `melder/melder.h:44:9`! viewAllAsPixelettescxx . . $ structFunctionEditor#viewAllAsPixelettes(83f5f38750778ac8). (); |
| 219 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), DataGuiColour_WINDOW_BACKGROUNDcxx . . $ DataGuiColour_WINDOW_BACKGROUND.); |
| 220 | Graphics_fillRectanglecxx . . $ Graphics_fillRectangle(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! _functionViewerLeftcxx . . $ structFunctionEditor#_functionViewerLeft., mycxx . . $ `melder/melder.h:44:9`! _selectionViewerRightcxx . . $ structFunctionEditor#_selectionViewerRight., mycxx . . $ `melder/melder.h:44:9`! BOTTOM_MARGINcxx . . $ structFunctionEditor#BOTTOM_MARGIN., mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt.); |
| 221 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 222 | |
| 223 | /* |
| 224 | Buttons (still without text). |
| 225 | */ |
| 226 | mycxx . . $ `melder/melder.h:44:9`! viewFunctionViewerAsPixelettescxx . . $ structFunctionEditor#viewFunctionViewerAsPixelettes(83f5f38750778ac8). (); |
| 227 | Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), kGraphics_fontcxx . . $ kGraphics_font# :: HELVETICAcxx . . $ kGraphics_font#HELVETICA.); |
| 228 | Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 12.0); |
| 229 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 230 | for (integercxx . . $ integer# i = 0; i < 8; i ++) { |
| 231 | const double left = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left., right = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right.; |
| 232 | if (left < right) |
| 233 | Graphics_buttoncxx . . $ Graphics_button(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), left, right, mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom., mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top.); |
| 234 | } |
| 235 | |
| 236 | /* |
| 237 | Opening triangle (sometimes over button). |
| 238 | */ |
| 239 | if (mycxx . . $ `melder/melder.h:44:9`! v_hasSelectionViewercxx . . $ structFunctionEditor#v_hasSelectionViewer(c9857a73d68e59ba).() && ! mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).()) { |
| 240 | const bool weHaveToDrawOverSelectionRectangleWithText = ( selectionIsNonempty && mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. == mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. && mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. != mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. ); |
| 241 | Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0); |
| 242 | const double left = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. + 9.0, right = mycxx . . $ `melder/melder.h:44:9`! _functionViewerRightcxx . . $ structFunctionEditor#_functionViewerRight. - 3.0; |
| 243 | const double bottom = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. - mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN. + 3.0, top = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN. - 3.0; |
| 244 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_PINKcxx . . $ Melder_PINK.); |
| 245 | const double x [] = { left, right, left }, y [] = { bottom, 0.5 * (bottom + top), top }; |
| 246 | Graphics_fillAreacxx . . $ Graphics_fillArea(23a712ce109b96e0). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 3, x, y); |
| 247 | if (! weHaveToDrawOverSelectionRectangleWithText) { |
| 248 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_GREYcxx . . $ Melder_GREY.); |
| 249 | Graphics_polyline_closedcxx . . $ Graphics_polyline_closed(23a712ce109b96e0). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 3, x, y); |
| 250 | } |
| 251 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 252 | } |
| 253 | |
| 254 | /* |
| 255 | Button texts (sometimes over opening triangle). |
| 256 | */ |
| 257 | const double verticalCorrection = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. / (mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - 111.0 + 11.0) |
| 258 | #ifdef _WIN32 |
| 259 | * 1.5 |
| 260 | #endif |
| 261 | ; |
| 262 | for (integercxx . . $ integer# i = 0; i < 8; i ++) { |
| 263 | const double left = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left., right = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right.; |
| 264 | const double bottom = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom., top = mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top.; |
| 265 | if (left < right) { |
| 266 | conststring8cxx . . $ conststring8# format = mycxx . . $ `melder/melder.h:44:9`! v_format_longcxx . . $ structFunctionEditor#v_format_long(33a1f659e94feb42). (); |
| 267 | double value = undefinedcxx . . $ undefined., inverseValue = 0.0; |
| 268 | switch (i) { |
| 269 | case 0: { |
| 270 | format = mycxx . . $ `melder/melder.h:44:9`! v_format_totalDurationcxx . . $ structFunctionEditor#v_format_totalDuration(33a1f659e94feb42). (); |
| 271 | value = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 272 | } break; case 1: { |
| 273 | format = mycxx . . $ `melder/melder.h:44:9`! v_format_windowcxx . . $ structFunctionEditor#v_format_window(33a1f659e94feb42). (); |
| 274 | value = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 275 | /* |
| 276 | Window domain text. |
| 277 | */ |
| 278 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLUEcxx . . $ Melder_BLUE.); |
| 279 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 280 | Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), left, 0.5 * (bottom + top) - verticalCorrection, |
| 281 | Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., mycxx . . $ `melder/melder.h:44:9`! v_fixedPrecision_longcxx . . $ structFunctionEditor#v_fixedPrecision_long(b126dc7c1de90089). ())); |
| 282 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 283 | Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), right, 0.5 * (bottom + top) - verticalCorrection, |
| 284 | Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., mycxx . . $ `melder/melder.h:44:9`! v_fixedPrecision_longcxx . . $ structFunctionEditor#v_fixedPrecision_long(b126dc7c1de90089). ())); |
| 285 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 286 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 287 | } break; case 2: { |
| 288 | value = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 289 | } break; case 3: { |
| 290 | value = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 291 | } break; case 4: { |
| 292 | value = mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [1] - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 293 | } break; case 5: { |
| 294 | value = mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [2] - mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [1]; |
| 295 | } break; case 6: { |
| 296 | value = mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [3] - mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [2]; |
| 297 | } break; case 7: { |
| 298 | format = mycxx . . $ `melder/melder.h:44:9`! v_format_selectioncxx . . $ structFunctionEditor#v_format_selection(33a1f659e94feb42). (); |
| 299 | value = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. - mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 300 | inverseValue = 1.0 / value; |
| 301 | } |
| 302 | } |
| 303 | char text8 [100]; |
| 304 | snprintf (text8, 100, format, value, inverseValue); |
| 305 | autostring32cxx . . $ autostring32# text = Melder_8to32_ecxx . . $ Melder_8to32_e(f01fe69d6ed2498b). (text8); |
| 306 | if (Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()) < right - left) { |
| 307 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * (left + right), 0.5 * (bottom + top) - verticalCorrection, text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()); |
| 308 | } else if (format == mycxx . . $ `melder/melder.h:44:9`! v_format_longcxx . . $ structFunctionEditor#v_format_long(33a1f659e94feb42).()) { |
| 309 | snprintf (text8, 100, mycxx . . $ `melder/melder.h:44:9`! v_format_shortcxx . . $ structFunctionEditor#v_format_short(33a1f659e94feb42).(), value); |
| 310 | text =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_8to32_ecxx . . $ Melder_8to32_e(f01fe69d6ed2498b). (text8); |
| 311 | if (Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()) < right - left) |
| 312 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * (left + right), 0.5 * (bottom + top) - verticalCorrection, text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()); |
| 313 | } else { |
| 314 | snprintf (text8, 100, mycxx . . $ `melder/melder.h:44:9`! v_format_longcxx . . $ structFunctionEditor#v_format_long(33a1f659e94feb42).(), value); |
| 315 | text =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_8to32_ecxx . . $ Melder_8to32_e(f01fe69d6ed2498b). (text8); |
| 316 | if (Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()) < right - left) { |
| 317 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * (left + right), 0.5 * (bottom + top) - verticalCorrection, text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()); |
| 318 | } else { |
| 319 | snprintf (text8, 100, mycxx . . $ `melder/melder.h:44:9`! v_format_shortcxx . . $ structFunctionEditor#v_format_short(33a1f659e94feb42).(), mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. - mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.); |
| 320 | text =cxx . . $ _autostring#`operator=`(f562943cbc4bcf37). Melder_8to32_ecxx . . $ Melder_8to32_e(f01fe69d6ed2498b). (text8); |
| 321 | if (Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()) < right - left) |
| 322 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * (left + right), 0.5 * (bottom + top) - verticalCorrection, text.getcxx . . $ _autostring#get(5a2a78a048fb49a8).()); |
| 323 | } |
| 324 | } |
| 325 | } |
| 326 | } |
| 327 | |
| 328 | mycxx . . $ `melder/melder.h:44:9`! viewTallDataAsWorldByPixelettescxx . . $ structFunctionEditor#viewTallDataAsWorldByPixelettes(83f5f38750778ac8). (); |
| 329 | |
| 330 | /* |
| 331 | Red marker text. |
| 332 | */ |
| 333 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_REDcxx . . $ Melder_RED.); |
| 334 | if (cursorIsVisible) { |
| 335 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_CENTREcxx . . $ `sys/Graphics.h:250:9`!, Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!); |
| 336 | Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - (mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space.*0.9) - verticalCorrection * 7, |
| 337 | Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! v_fixedPrecision_longcxx . . $ structFunctionEditor#v_fixedPrecision_long(b126dc7c1de90089).())); |
| 338 | } |
| 339 | if (startIsVisible && selectionIsNonempty) { |
| 340 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 341 | Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - (mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space./2) - verticalCorrection, |
| 342 | Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! v_fixedPrecision_longcxx . . $ structFunctionEditor#v_fixedPrecision_long(b126dc7c1de90089).())); |
| 343 | } |
| 344 | if (endIsVisible && selectionIsNonempty) { |
| 345 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 346 | Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - (mycxx . . $ `melder/melder.h:44:9`! TOP_MARGINcxx . . $ structFunctionEditor#TOP_MARGIN. + mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space./2) - verticalCorrection, |
| 347 | Melder_fixedcxx . . $ Melder_fixed(5b9062840a6ade99). (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., mycxx . . $ `melder/melder.h:44:9`! v_fixedPrecision_longcxx . . $ structFunctionEditor#v_fixedPrecision_long(b126dc7c1de90089).())); |
| 348 | } |
| 349 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 350 | |
| 351 | /* |
| 352 | Start of inner drawing. |
| 353 | */ |
| 354 | mycxx . . $ `melder/melder.h:44:9`! v_distributeAreascxx . . $ structFunctionEditor#v_distributeAreas(49f6e7a06ebc5aa8). (); |
| 355 | //my viewDataAsWorldByFraction (); |
| 356 | mycxx . . $ `melder/melder.h:44:9`! v_drawcxx . . $ structFunctionEditor#v_draw(49f6e7a06ebc5aa8). (); |
| 357 | mycxx . . $ `melder/melder.h:44:9`! v_drawLegendscxx . . $ structFunctionEditor#v_drawLegends(49f6e7a06ebc5aa8). (); |
| 358 | |
| 359 | /* |
| 360 | Red dotted marker lines. |
| 361 | */ |
| 362 | mycxx . . $ `melder/melder.h:44:9`! viewDataAsWorldByFractioncxx . . $ structFunctionEditor#viewDataAsWorldByFraction(83f5f38750778ac8). (); |
| 363 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_REDcxx . . $ Melder_RED.); |
| 364 | Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!); |
| 365 | if (cursorIsVisible) |
| 366 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., 0.0, mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., 1.0); |
| 367 | if (startIsVisible) |
| 368 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., 0.0, mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., 1.0); |
| 369 | if (endIsVisible) |
| 370 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., 0.0, mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., 1.0); |
| 371 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 372 | Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!); |
| 373 | } |
| 374 | |
| 375 | /********** METHODS **********/ |
| 376 | |
| 377 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v9_destroycxx . . $ structFunctionEditor#v9_destroy(ced63f7c635d850d). () noexcept { |
| 378 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_IMPLICITcxx . . $ `melder/melder_audio.h:57:9`!); |
| 379 | if (ourcxx . . $ `melder/melder.h:42:9`! groupcxx . . $ structFunctionEditor#group.) { // undangle |
| 380 | integercxx . . $ integer# i = 1; |
| 381 | while (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] != this) { |
| 382 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (i < THE_MAXIMUM_GROUP_SIZE); |
| 383 | i ++; |
| 384 | } |
| 385 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] = nullptr; |
| 386 | theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. --; |
| 387 | } |
| 388 | if (Melder_debugcxx . . $ Melder_debug. == 55) |
| 389 | Melder_casualcxx . . $ Melder_casual(6298c93241566110). (Thing_messageNameAndAddresscxx . . $ Thing_messageNameAndAddress(fbb3dc34e3ef688d). (this), U" v9_destroy"); |
| 390 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v9_destroycxx . . $ structEditor#v9_destroy(ced63f7c635d850d). (); |
| 391 | } |
| 392 | |
| 393 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v1_infocxx . . $ structFunctionEditor#v1_info(49f6e7a06ebc5aa8). () { |
| 394 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v1_infocxx . . $ structEditor#v1_info(49f6e7a06ebc5aa8). (); |
| 395 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Editor start: ", ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 396 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Editor end: ", ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 397 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Window start: ", ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 398 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Window end: ", ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 399 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Selection start: ", ourcxx . . $ `melder/melder.h:42:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 400 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Selection end: ", ourcxx . . $ `melder/melder.h:42:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 401 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Arrow scroll step: ", ourcxx . . $ `melder/melder.h:42:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(), U" ", v_format_units_longcxx . . $ structFunctionEditor#v_format_units_long(1912f6684645c851).()); |
| 402 | MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Group: ", groupcxx . . $ structFunctionEditor#group. ? U"yes" : U"no"); |
| 403 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 404 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 405 | if (area) |
| 406 | area -> v1_infocxx . . $ structThing#v1_info(49f6e7a06ebc5aa8). (); |
| 407 | } |
| 408 | } |
| 409 | |
| 410 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). () { |
| 411 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 412 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 413 | if (area) |
| 414 | area -> v_windowChangedcxx . . $ structFunctionArea#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 415 | } |
| 416 | } |
| 417 | |
| 418 | |
| 419 | /********** FILE MENU **********/ |
| 420 | |
| 421 | static void gui_drawingarea_cb_resizecxx . . $ gui_drawingarea_cb_resize(a7fda3c25ff7c05d). (FunctionEditorcxx . . $ FunctionEditor# me, GuiDrawingArea_ResizeEventcxx . . $ GuiDrawingArea_ResizeEvent# event) { |
| 422 | if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics.) |
| 423 | return; // could be the case in the very beginning |
| 424 | mycxx . . $ `melder/melder.h:44:9`! updateGeometrycxx . . $ structFunctionEditor#updateGeometry(3e454b8ccf442868). (event -> widthcxx . . $ structGuiDrawingArea_ResizeEvent#width., event -> heightcxx . . $ structGuiDrawingArea_ResizeEvent#height.); |
| 425 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 426 | /* |
| 427 | Save the current shell size as the user's preference for a new FunctionEditor. |
| 428 | */ |
| 429 | mycxx . . $ `melder/melder.h:44:9`! setClassPref_shellWidthcxx . . $ structEditor#setClassPref_shellWidth(d4f767463ce0a6b3). (GuiShell_getShellWidthcxx . . $ GuiShell_getShellWidth(3bad2b66b67ca74d). (mycxx . . $ `melder/melder.h:44:9`! windowFormcxx . . $ structEditor#windowForm.)); |
| 430 | mycxx . . $ `melder/melder.h:44:9`! setClassPref_shellHeightcxx . . $ structEditor#setClassPref_shellHeight(d4f767463ce0a6b3). (GuiShell_getShellHeightcxx . . $ GuiShell_getShellHeight(3bad2b66b67ca74d). (mycxx . . $ `melder/melder.h:44:9`! windowFormcxx . . $ structEditor#windowForm.)); |
| 431 | } |
| 432 | |
| 433 | static void zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (FunctionEditorcxx . . $ FunctionEditor# me, double from, double to) { |
| 434 | if (from < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 435 | from = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 436 | if (to > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 437 | to = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 438 | Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to > from, |
| 439 | U"“to” should be greater than “from”."); |
| 440 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = from; |
| 441 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = to; |
| 442 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. <= mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) { // floating-point underflow |
| 443 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 444 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 445 | } |
| 446 | mycxx . . $ `melder/melder.h:44:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 447 | FunctionEditor_windowMarksChangedcxx . . $ FunctionEditor_windowMarksChanged(ce925ac19f5bbd22). (me, false); |
| 448 | } |
| 449 | static void shift_bycxx . . $ shift_by(3bfebf5b635834ba). (FunctionEditorcxx . . $ FunctionEditor# me, const double shift, const bool selectionChanged) { |
| 450 | const double windowLength = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 451 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_IMPLICITcxx . . $ `melder/melder_audio.h:57:9`!); // quickly, before window changes |
| 452 | tracecxx . . $ `melder/melder_debug.h:60:10`! (U"shifting by ", shift); |
| 453 | if (shift < 0.0) { |
| 454 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. += shift; |
| 455 | if (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 456 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 457 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. + windowLength; |
| 458 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 459 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 460 | } else { |
| 461 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. += shift; |
| 462 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 463 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 464 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - windowLength; |
| 465 | if (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 466 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 467 | } |
| 468 | mycxx . . $ `melder/melder.h:44:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 469 | FunctionEditor_windowMarksChangedcxx . . $ FunctionEditor_windowMarksChanged(ce925ac19f5bbd22). (me, selectionChanged); |
| 470 | } |
| 471 | static void zoom_bycxx . . $ zoom_by(ff1c6b8a68b21137). (FunctionEditorcxx . . $ FunctionEditor# me, double factor) { |
| 472 | const double currentSize = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 473 | const double newSize = currentSize * factor; |
| 474 | const double increase = newSize - currentSize; |
| 475 | const double shift = 0.5 * increase; |
| 476 | zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (me, mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. - shift, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. + shift); |
| 477 | } |
| 478 | |
| 479 | static void gui_drawingarea_cb_zoomcxx . . $ gui_drawingarea_cb_zoom(a6684d3bd8f02551). (FunctionEditorcxx . . $ FunctionEditor# me, GuiDrawingArea_ZoomEventcxx . . $ GuiDrawingArea_ZoomEvent# event) { |
| 480 | if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics.) |
| 481 | return; // could be the case in the very beginning |
| 482 | const double enlargement = expcxx . . $ exp(fee4f1d22bc8e617). (-0.02 * (event -> deltacxx . . $ structGuiDrawingArea_ZoomEvent#delta.>0.0?+1:-1) * sqrtcxx . . $ sqrt(fee4f1d22bc8e617). (fabscxx . . $ fabs(fee4f1d22bc8e617). (event -> deltacxx . . $ structGuiDrawingArea_ZoomEvent#delta.))); // 2 percent per step |
| 483 | zoom_bycxx . . $ zoom_by(ff1c6b8a68b21137). (me, enlargement); |
| 484 | } |
| 485 | |
| 486 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_prefs_addFieldscxx . . $ structFunctionEditor#v_prefs_addFields(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) { |
| 487 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 488 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 489 | if (area) |
| 490 | area -> v_prefs_addFieldscxx . . $ structDataGui#v_prefs_addFields(2b98fae8e13abb61). (cmd); |
| 491 | } |
| 492 | } |
| 493 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_prefs_setValuescxx . . $ structFunctionEditor#v_prefs_setValues(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) { |
| 494 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 495 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 496 | if (area) |
| 497 | area -> v_prefs_setValuescxx . . $ structDataGui#v_prefs_setValues(2b98fae8e13abb61). (cmd); |
| 498 | } |
| 499 | } |
| 500 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_prefs_getValuescxx . . $ structFunctionEditor#v_prefs_getValues(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) { |
| 501 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 502 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 503 | if (area) |
| 504 | area -> v_prefs_getValuescxx . . $ structDataGui#v_prefs_getValues(2b98fae8e13abb61). (cmd); |
| 505 | } |
| 506 | } |
| 507 | static void menu_cb_editorSettingscxx . . $ menu_cb_editorSettings(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { // TODO: make visible |
| 508 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Editor settings", nullptr) |
| 509 | BOOLEANcxx . . $ `sys/EditorM.h:228:9`! (showSelectionViewer, Melder_cat (U"Show ", mycxx . . $ `melder/melder.h:44:9`! v_selectionViewerName()), mycxx . . $ `melder/melder.h:44:9`! default_showSelectionViewer()) |
| 510 | mycxx . . $ `melder/melder.h:44:9`! v_prefs_addFieldscxx . . $ structFunctionEditor#v_prefs_addFields(2b98fae8e13abb61). (cmd); |
| 511 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 512 | SET_BOOLEANcxx . . $ `sys/EditorM.h:471:9`! (showSelectionViewer, mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewer()) |
| 513 | mycxx . . $ `melder/melder.h:44:9`! v_prefs_setValuescxx . . $ structFunctionEditor#v_prefs_setValues(2b98fae8e13abb61). (cmd); |
| 514 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 515 | const bool oldShowSelectionViewer = mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).(); |
| 516 | mycxx . . $ `melder/melder.h:44:9`! setInstancePref_showSelectionViewercxx . . $ structFunctionEditor#setInstancePref_showSelectionViewer(b45ddcbc8423892c). (showSelectionViewer); |
| 517 | if (mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).() != oldShowSelectionViewer) |
| 518 | mycxx . . $ `melder/melder.h:44:9`! updateGeometrycxx . . $ structFunctionEditor#updateGeometry(3e454b8ccf442868). (GuiControl_getWidthcxx . . $ GuiControl_getWidth(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.), GuiControl_getHeightcxx . . $ GuiControl_getHeight(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.)); |
| 519 | mycxx . . $ `melder/melder.h:44:9`! v_prefs_getValuescxx . . $ structFunctionEditor#v_prefs_getValues(2b98fae8e13abb61). (cmd); |
| 520 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 521 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 522 | } |
| 523 | |
| 524 | |
| 525 | #pragma mark - FuncEd Time query selection |
| 526 | |
| 527 | static void QUERY_EDITOR_FOR_REAL__getStartOfSelectioncxx . . $ QUERY_EDITOR_FOR_REAL__getStartOfSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 528 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 529 | const double result = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 530 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 531 | } |
| 532 | static void QUERY_EDITOR_FOR_REAL__getCursorcxx . . $ QUERY_EDITOR_FOR_REAL__getCursor(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 533 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 534 | const double result = 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 535 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 536 | } |
| 537 | static void QUERY_EDITOR_FOR_REAL__getEndOfSelectioncxx . . $ QUERY_EDITOR_FOR_REAL__getEndOfSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 538 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 539 | const double result = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 540 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 541 | } |
| 542 | static void QUERY_EDITOR_FOR_REAL__getLengthOfSelectioncxx . . $ QUERY_EDITOR_FOR_REAL__getLengthOfSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 543 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 544 | const double result = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. - mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 545 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 546 | } |
| 547 | |
| 548 | |
| 549 | #pragma mark - FuncEd Time set selection |
| 550 | |
| 551 | static void menu_cb_selectcxx . . $ menu_cb_select(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 552 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Select", nullptr) |
| 553 | REALcxx . . $ `sys/EditorM.h:95:9`! (startOfSelection, Melder_cat (U"Start of selection (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.0") |
| 554 | REALcxx . . $ `sys/EditorM.h:95:9`! (endOfSelection, Melder_cat (U"End of selection (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"1.0") |
| 555 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 556 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (startOfSelection, mycxx . . $ `melder/melder.h:44:9`! startSelection) |
| 557 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (endOfSelection, mycxx . . $ `melder/melder.h:44:9`! endSelection) |
| 558 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 559 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = startOfSelection; |
| 560 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 561 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 562 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = endOfSelection; |
| 563 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 564 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 565 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. > mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.) |
| 566 | stdcxx . . $ std/::swapcxx . . $ std/swap(c75b8fd57d7c2e06). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); // this can invalidate the above logic |
| 567 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., & mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 568 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 569 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 570 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 571 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 572 | } |
| 573 | static void menu_cb_widenOrShrinkSelectioncxx . . $ menu_cb_widenOrShrinkSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 574 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Widen or shrink selection", nullptr) |
| 575 | POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (newWidthOfSelection, Melder_cat (U"New width of selection (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.3") |
| 576 | CHOICE_ENUMcxx . . $ `sys/EditorM.h:406:9`! (kGraphics_horizontalAlignment, alignmentWithCurrentSelection, U"Alignment with current selection", kGraphics_horizontalAlignment::CENTRE) |
| 577 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 578 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 579 | const double currentWidthOfSelection = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. - mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 580 | const double degreeOfWidening = newWidthOfSelection - currentWidthOfSelection; |
| 581 | double newStartOfSelection; |
| 582 | switch (alignmentWithCurrentSelection) { |
| 583 | case kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#::LEFTcxx . . $ kGraphics_horizontalAlignment#LEFT.: { |
| 584 | newStartOfSelection = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 585 | } break; case kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#::CENTREcxx . . $ kGraphics_horizontalAlignment#CENTRE.: { |
| 586 | newStartOfSelection = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. - 0.5 * degreeOfWidening; |
| 587 | } break; case kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#::RIGHTcxx . . $ kGraphics_horizontalAlignment#RIGHT.: { |
| 588 | newStartOfSelection = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. - degreeOfWidening; |
| 589 | } break; case kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#::UNDEFINEDcxx . . $ kGraphics_horizontalAlignment#UNDEFINED.: { |
| 590 | Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Undefined alignment."); |
| 591 | } |
| 592 | } |
| 593 | const double newEndOfSelection = newStartOfSelection + newWidthOfSelection; |
| 594 | Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (newStartOfSelection >= mycxx . . $ `melder/melder.h:44:9`! tmin, |
| 595 | U"Widening the selection to ", newWidthOfSelection, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), |
| 596 | U" would move the start of the selection to ", newStartOfSelection, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), |
| 597 | U", which lies before the start of the editor’s ", mycxx . . $ `melder/melder.h:44:9`! v_domainName(), |
| 598 | U" domain, which is at ", mycxx . . $ `melder/melder.h:44:9`! tmin, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), U"." |
| 599 | ); |
| 600 | Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (newEndOfSelection <= mycxx . . $ `melder/melder.h:44:9`! tmax, |
| 601 | U"Widening the selection to ", newWidthOfSelection, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), |
| 602 | U" would move the end of the selection to ", newEndOfSelection, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), |
| 603 | U", which lies past the end of the editor’s ", mycxx . . $ `melder/melder.h:44:9`! v_domainName(), |
| 604 | U" domain, which is at ", mycxx . . $ `melder/melder.h:44:9`! tmax, U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long(), U"." |
| 605 | ); |
| 606 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = newStartOfSelection; |
| 607 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = newEndOfSelection; |
| 608 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 609 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 610 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 611 | } |
| 612 | static void menu_cb_moveCursorToStartOfSelectioncxx . . $ menu_cb_moveCursorToStartOfSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 613 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 614 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 615 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 616 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 617 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 618 | } |
| 619 | static void menu_cb_moveCursorToEndOfSelectioncxx . . $ menu_cb_moveCursorToEndOfSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 620 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 621 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 622 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 623 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 624 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 625 | } |
| 626 | static void menu_cb_moveCursorTocxx . . $ menu_cb_moveCursorTo(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 627 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Move cursor to", nullptr) |
| 628 | REALcxx . . $ `sys/EditorM.h:95:9`! (position, Melder_cat (U"Position (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.0") |
| 629 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 630 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (position, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelection + mycxx . . $ `melder/melder.h:44:9`! endSelection)) |
| 631 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 632 | if (position < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 633 | position = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 634 | if (position > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 635 | position = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 636 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = position; |
| 637 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 638 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 639 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 640 | } |
| 641 | static void menu_cb_moveCursorBycxx . . $ menu_cb_moveCursorBy(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 642 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Move cursor by", nullptr) |
| 643 | REALcxx . . $ `sys/EditorM.h:95:9`! (distance, Melder_cat (U"Distance (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.05") |
| 644 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 645 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 646 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (mycxx . . $ `melder/melder.h:44:9`! tmax >= mycxx . . $ `melder/melder.h:44:9`! tmin); |
| 647 | const double position = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.) + distance, mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 648 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = position; |
| 649 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 650 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 651 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 652 | } |
| 653 | static void menu_cb_moveStartOfSelectionBycxx . . $ menu_cb_moveStartOfSelectionBy(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 654 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Move start of selection by", nullptr) |
| 655 | REALcxx . . $ `sys/EditorM.h:95:9`! (distance, Melder_cat (U"Distance (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.05") |
| 656 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 657 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 658 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (mycxx . . $ `melder/melder.h:44:9`! tmax >= mycxx . . $ `melder/melder.h:44:9`! tmin); |
| 659 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + distance, mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 660 | Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 661 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 662 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 663 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 664 | } |
| 665 | static void menu_cb_moveEndOfSelectionBycxx . . $ menu_cb_moveEndOfSelectionBy(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 666 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Move end of selection by", nullptr) |
| 667 | REALcxx . . $ `sys/EditorM.h:95:9`! (distance, Melder_cat (U"Distance (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.05") |
| 668 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 669 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 670 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (mycxx . . $ `melder/melder.h:44:9`! tmax >= mycxx . . $ `melder/melder.h:44:9`! tmin); |
| 671 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = Melder_clippedcxx . . $ Melder_clipped(5eb09607cedc971b). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. + distance, mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 672 | Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 673 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 674 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 675 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 676 | } |
| 677 | void FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (FunctionEditorcxx . . $ FunctionEditor# me, double t) { |
| 678 | if (t <= mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) { |
| 679 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of shift_by() |
| 680 | shift_bycxx . . $ shift_by(3bfebf5b635834ba). (me, t - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. - 0.618 * (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.), true); |
| 681 | } else if (t >= mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.) { |
| 682 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of shift_by() |
| 683 | shift_bycxx . . $ shift_by(3bfebf5b635834ba). (me, t - mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. + 0.618 * (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.), true); |
| 684 | } else { |
| 685 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 686 | } |
| 687 | } |
| 688 | static void menu_cb_selectionStepSettingscxx . . $ menu_cb_selectionStepSettings(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 689 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Selection step settings", nullptr) |
| 690 | POSITIVEcxx . . $ `sys/EditorM.h:117:9`! (arrowScrollStep, Melder_cat (U"Arrow scroll step (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), mycxx . . $ `melder/melder.h:44:9`! default_arrowScrollStep()) |
| 691 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 692 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (arrowScrollStep, mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStep()) |
| 693 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 694 | mycxx . . $ `melder/melder.h:44:9`! setInstancePref_arrowScrollStepcxx . . $ structFunctionEditor#setInstancePref_arrowScrollStep(ba8836b59fb42830). (arrowScrollStep); |
| 695 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 696 | } |
| 697 | static void menu_cb_selectEarliercxx . . $ menu_cb_selectEarlier(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 698 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 699 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. -= mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 700 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 701 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 702 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. -= mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 703 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 704 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 705 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 706 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 707 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 708 | } |
| 709 | static void menu_cb_selectLatercxx . . $ menu_cb_selectLater(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 710 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 711 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. += mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 712 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 713 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 714 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. += mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 715 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 716 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 717 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 718 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 719 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 720 | } |
| 721 | static void menu_cb_moveStartOfSelectionLeftcxx . . $ menu_cb_moveStartOfSelectionLeft(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 722 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 723 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. -= mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 724 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 725 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 726 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 727 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 728 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 729 | } |
| 730 | static void menu_cb_moveStartOfSelectionRightcxx . . $ menu_cb_moveStartOfSelectionRight(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 731 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 732 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. += mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 733 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 734 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 735 | Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 736 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 737 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 738 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 739 | } |
| 740 | static void menu_cb_moveEndOfSelectionLeftcxx . . $ menu_cb_moveEndOfSelectionLeft(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 741 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 742 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. -= mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 743 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 744 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 745 | Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 746 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 747 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 748 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 749 | } |
| 750 | static void menu_cb_moveEndOfSelectionRightcxx . . $ menu_cb_moveEndOfSelectionRight(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 751 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 752 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. += mycxx . . $ `melder/melder.h:44:9`! instancePref_arrowScrollStepcxx . . $ structFunctionEditor#instancePref_arrowScrollStep(21b6c25e127938e2).(); |
| 753 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 754 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 755 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_scrollToNewSelection() |
| 756 | FunctionEditor_scrollToNewSelectioncxx . . $ FunctionEditor_scrollToNewSelection(ff1c6b8a68b21137). (me, 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.)); |
| 757 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 758 | } |
| 759 | |
| 760 | |
| 761 | #pragma mark - FuncEd Time query visible part |
| 762 | |
| 763 | static void QUERY_EDITOR_FOR_REAL__getStartOfVisiblePartcxx . . $ QUERY_EDITOR_FOR_REAL__getStartOfVisiblePart(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 764 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 765 | const double result = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 766 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 767 | } |
| 768 | static void QUERY_EDITOR_FOR_REAL__getEndOfVisiblePartcxx . . $ QUERY_EDITOR_FOR_REAL__getEndOfVisiblePart(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 769 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 770 | const double result = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 771 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 772 | } |
| 773 | static void QUERY_EDITOR_FOR_REAL__getLengthOfVisiblePartcxx . . $ QUERY_EDITOR_FOR_REAL__getLengthOfVisiblePart(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 774 | QUERY_EDITOR_FOR_REALcxx . . $ `sys/EditorM.h:575:9`! |
| 775 | const double result = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 776 | QUERY_EDITOR_FOR_REAL_ENDcxx . . $ `sys/EditorM.h:576:9`! (U" ", mycxx . . $ `melder/melder.h:44:9`! v_format_units_long()) |
| 777 | } |
| 778 | |
| 779 | |
| 780 | #pragma mark - FuncEd Time set visible part |
| 781 | |
| 782 | static void menu_cb_zoomAndScrollSettingscxx . . $ menu_cb_zoomAndScrollSettings(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 783 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Zoom and scroll settings", nullptr) |
| 784 | BOOLEANcxx . . $ `sys/EditorM.h:228:9`! (synchronizeZoomAndScroll, U"Synchronize zoom and scroll", mycxx . . $ `melder/melder.h:44:9`! default_synchronizedZoomAndScroll()) |
| 785 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 786 | SET_BOOLEANcxx . . $ `sys/EditorM.h:471:9`! (synchronizeZoomAndScroll, mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScroll()) |
| 787 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 788 | const bool oldSynchronizedZoomAndScroll = mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).(); |
| 789 | mycxx . . $ `melder/melder.h:44:9`! setClassPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#setClassPref_synchronizedZoomAndScroll(b45ddcbc8423892c). (synchronizeZoomAndScroll); |
| 790 | if (! oldSynchronizedZoomAndScroll && mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).()) |
| 791 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (me, true, false); |
| 792 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 793 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 794 | } |
| 795 | static void menu_cb_zoomcxx . . $ menu_cb_zoom(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 796 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Zoom", nullptr) |
| 797 | REALcxx . . $ `sys/EditorM.h:95:9`! (from, Melder_cat (U"From (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.0") |
| 798 | REALcxx . . $ `sys/EditorM.h:95:9`! (to, Melder_cat (U"To (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"1.0") |
| 799 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 800 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (from, mycxx . . $ `melder/melder.h:44:9`! startWindow) |
| 801 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (to, mycxx . . $ `melder/melder.h:44:9`! endWindow) |
| 802 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 803 | Melder_requirecxx . . $ `melder/melder_require.h:21:9`! (to > from, |
| 804 | U"“to” should be greater than “from”."); |
| 805 | zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (me, from, to); |
| 806 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 807 | } |
| 808 | static void do_showAllcxx . . $ do_showAll(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 809 | zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (me, mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 810 | } |
| 811 | static void gui_button_cb_showAllcxx . . $ gui_button_cb_showAll(c78456ead60f28be). (FunctionEditorcxx . . $ FunctionEditor# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) { |
| 812 | do_showAllcxx . . $ do_showAll(8d3b84f45830d365). (me); |
| 813 | } |
| 814 | static void do_zoomIncxx . . $ do_zoomIn(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 815 | zoom_bycxx . . $ zoom_by(ff1c6b8a68b21137). (me, 0.5); |
| 816 | } |
| 817 | static void gui_button_cb_zoomIncxx . . $ gui_button_cb_zoomIn(c78456ead60f28be). (FunctionEditorcxx . . $ FunctionEditor# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) { |
| 818 | do_zoomIncxx . . $ do_zoomIn(8d3b84f45830d365). (me); |
| 819 | } |
| 820 | static void do_zoomOutcxx . . $ do_zoomOut(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 821 | //MelderAudio_stopPlaying (MelderAudio_IMPLICIT); // quickly, before window changes; ppgb 2022-06-25: why was this here? |
| 822 | zoom_bycxx . . $ zoom_by(ff1c6b8a68b21137). (me, 2.0); |
| 823 | } |
| 824 | static void gui_button_cb_zoomOutcxx . . $ gui_button_cb_zoomOut(c78456ead60f28be). (FunctionEditorcxx . . $ FunctionEditor# me, GuiButtonEventcxx . . $ GuiButtonEvent# /*event*/) { |
| 825 | do_zoomOutcxx . . $ do_zoomOut(8d3b84f45830d365). (me); |
| 826 | } |
| 827 | static void do_zoomToSelectioncxx . . $ do_zoomToSelection(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 828 | if (mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. > mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.) { |
| 829 | mycxx . . $ `melder/melder.h:44:9`! startZoomHistorycxx . . $ structFunctionEditor#startZoomHistory. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; // remember for Zoom Back |
| 830 | mycxx . . $ `melder/melder.h:44:9`! endZoomHistorycxx . . $ structFunctionEditor#endZoomHistory. = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; // remember for Zoom Back |
| 831 | zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (me, mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 832 | } |
| 833 | } |
| 834 | static void gui_button_cb_zoomToSelectioncxx . . $ gui_button_cb_zoomToSelection(c78456ead60f28be). (FunctionEditorcxx . . $ FunctionEditor# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) { |
| 835 | do_zoomToSelectioncxx . . $ do_zoomToSelection(8d3b84f45830d365). (me); |
| 836 | } |
| 837 | static void do_zoomBackcxx . . $ do_zoomBack(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 838 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., & mycxx . . $ `melder/melder.h:44:9`! startZoomHistorycxx . . $ structFunctionEditor#startZoomHistory., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 839 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., & mycxx . . $ `melder/melder.h:44:9`! endZoomHistorycxx . . $ structFunctionEditor#endZoomHistory., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 840 | if (mycxx . . $ `melder/melder.h:44:9`! endZoomHistorycxx . . $ structFunctionEditor#endZoomHistory. > mycxx . . $ `melder/melder.h:44:9`! startZoomHistorycxx . . $ structFunctionEditor#startZoomHistory.) |
| 841 | zoom_fromTocxx . . $ zoom_fromTo(1e2869b68c90543). (me, mycxx . . $ `melder/melder.h:44:9`! startZoomHistorycxx . . $ structFunctionEditor#startZoomHistory., mycxx . . $ `melder/melder.h:44:9`! endZoomHistorycxx . . $ structFunctionEditor#endZoomHistory.); |
| 842 | } |
| 843 | static void gui_button_cb_zoomBackcxx . . $ gui_button_cb_zoomBack(c78456ead60f28be). (FunctionEditorcxx . . $ FunctionEditor# me, GuiButtonEventcxx . . $ GuiButtonEvent# /* event */) { |
| 844 | do_zoomBackcxx . . $ do_zoomBack(8d3b84f45830d365). (me); |
| 845 | } |
| 846 | static void menu_cb_showAllcxx . . $ menu_cb_showAll(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 847 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 848 | do_showAllcxx . . $ do_showAll(8d3b84f45830d365). (me); |
| 849 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 850 | } |
| 851 | static void menu_cb_zoomIncxx . . $ menu_cb_zoomIn(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 852 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 853 | do_zoomIncxx . . $ do_zoomIn(8d3b84f45830d365). (me); |
| 854 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 855 | } |
| 856 | static void menu_cb_zoomOutcxx . . $ menu_cb_zoomOut(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 857 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 858 | do_zoomOutcxx . . $ do_zoomOut(8d3b84f45830d365). (me); |
| 859 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 860 | } |
| 861 | static void menu_cb_zoomToSelectioncxx . . $ menu_cb_zoomToSelection(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 862 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 863 | do_zoomToSelectioncxx . . $ do_zoomToSelection(8d3b84f45830d365). (me); |
| 864 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 865 | } |
| 866 | static void menu_cb_zoomBackcxx . . $ menu_cb_zoomBack(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 867 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 868 | do_zoomBackcxx . . $ do_zoomBack(8d3b84f45830d365). (me); |
| 869 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 870 | } |
| 871 | static void menu_cb_pageUpcxx . . $ menu_cb_pageUp(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 872 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 873 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of shift_by() |
| 874 | shift_bycxx . . $ shift_by(3bfebf5b635834ba). (me, -RELATIVE_PAGE_INCREMENTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/RELATIVE_PAGE_INCREMENT. * (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.), false); |
| 875 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 876 | } |
| 877 | static void menu_cb_pageDowncxx . . $ menu_cb_pageDown(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 878 | VOID_EDITORcxx . . $ `sys/EditorM.h:529:9`! |
| 879 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of shift_by() |
| 880 | shift_bycxx . . $ shift_by(3bfebf5b635834ba). (me, +RELATIVE_PAGE_INCREMENTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/RELATIVE_PAGE_INCREMENT. * (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.), false); |
| 881 | VOID_EDITOR_ENDcxx . . $ `sys/EditorM.h:530:9`! |
| 882 | } |
| 883 | |
| 884 | |
| 885 | #pragma mark - FunctionEditor Play menu |
| 886 | |
| 887 | static void PLAY_DATA__playcxx . . $ PLAY_DATA__play(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 888 | EDITOR_FORMcxx . . $ `sys/EditorM.h:33:9`! (U"Play", nullptr) |
| 889 | REALcxx . . $ `sys/EditorM.h:95:9`! (from, Melder_cat (U"From (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"0.0") |
| 890 | REALcxx . . $ `sys/EditorM.h:95:9`! (to, Melder_cat (U"To (", mycxx . . $ `melder/melder.h:44:9`! v_format_units_short(), U")"), U"1.0") |
| 891 | EDITOR_OKcxx . . $ `sys/EditorM.h:38:9`! |
| 892 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (from, mycxx . . $ `melder/melder.h:44:9`! startWindow) |
| 893 | SET_REALcxx . . $ `sys/EditorM.h:462:9`! (to, mycxx . . $ `melder/melder.h:44:9`! endWindow) |
| 894 | EDITOR_DOcxx . . $ `sys/EditorM.h:43:9`! |
| 895 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_IMPLICITcxx . . $ `melder/melder_audio.h:57:9`!); |
| 896 | mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (from, to); |
| 897 | EDITOR_ENDcxx . . $ `sys/EditorM.h:80:9`! |
| 898 | } |
| 899 | static void PLAY_DATA__playOrStopcxx . . $ PLAY_DATA__playOrStop(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 900 | PLAY_DATAcxx . . $ `sys/EditorM.h:535:9`! |
| 901 | if (MelderAudio_isPlayingcxx . . $ MelderAudio_isPlaying.) { |
| 902 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_EXPLICITcxx . . $ `melder/melder_audio.h:58:9`!); |
| 903 | } else if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.) { |
| 904 | mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 905 | } else { |
| 906 | if (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. == mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. && mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. > mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. && mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. < mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.) |
| 907 | mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); |
| 908 | else |
| 909 | mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); |
| 910 | } |
| 911 | PLAY_DATA_ENDcxx . . $ `sys/EditorM.h:537:9`! |
| 912 | } |
| 913 | static void PLAY_DATA__playWindowcxx . . $ PLAY_DATA__playWindow(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 914 | PLAY_DATAcxx . . $ `sys/EditorM.h:535:9`! |
| 915 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_IMPLICITcxx . . $ `melder/melder_audio.h:57:9`!); |
| 916 | mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); |
| 917 | PLAY_DATA_ENDcxx . . $ `sys/EditorM.h:537:9`! |
| 918 | } |
| 919 | static void PLAY_DATA__interruptPlayingcxx . . $ PLAY_DATA__interruptPlaying(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# me, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 920 | PLAY_DATAcxx . . $ `sys/EditorM.h:535:9`! |
| 921 | MelderAudio_stopPlayingcxx . . $ MelderAudio_stopPlaying(efaadfb7dc14930a). (MelderAudio_IMPLICITcxx . . $ `melder/melder_audio.h:57:9`!); |
| 922 | PLAY_DATA_ENDcxx . . $ `sys/EditorM.h:537:9`! |
| 923 | } |
| 924 | |
| 925 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_playcxx . . $ structFunctionEditor#v_createMenuItems_play(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) { |
| 926 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Audio:", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).); |
| 927 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Play...", |
| 928 | 1, PLAY_DATA__playcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 929 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Play or stop", |
| 930 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_TABcxx . . $ `sys/Gui.h:829:9`!, PLAY_DATA__playOrStopcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 931 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Play window", |
| 932 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_SHIFTcxx . . $ `sys/Gui.h:811:9`! | GuiMenu_TABcxx . . $ `sys/Gui.h:829:9`!, PLAY_DATA__playWindowcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 933 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Interrupt playing", |
| 934 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_ESCAPEcxx . . $ `sys/Gui.h:836:9`!, PLAY_DATA__interruptPlayingcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 935 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 936 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 937 | if (area) |
| 938 | area -> v_createMenuItems_playcxx . . $ structDataGui#v_createMenuItems_play(6ea9c8c6ea2f58a9). (menu); |
| 939 | } |
| 940 | } |
| 941 | |
| 942 | |
| 943 | #pragma mark - FunctionEditor GUI callbacks |
| 944 | |
| 945 | static void gui_cb_scrollcxx . . $ gui_cb_scroll(444c2440b36e7797). (FunctionEditorcxx . . $ FunctionEditor# me, GuiScrollBarEventcxx . . $ GuiScrollBarEvent# event) { |
| 946 | if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics.) |
| 947 | return; // ignore events during creation |
| 948 | const double value = GuiScrollBar_getValuecxx . . $ GuiScrollBar_getValue(fa861a4bcb1a88a7). (event -> scrollBarcxx . . $ structGuiScrollBarEvent#scrollBar.); |
| 949 | const double shift = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + (value - 1) * (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) / maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 950 | const bool shifted = ( shift != 0.0 ); |
| 951 | const double oldSliderSize = (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.) / (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) * maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. - 1.0; |
| 952 | const double newSliderSize = GuiScrollBar_getSliderSizecxx . . $ GuiScrollBar_getSliderSize(fa861a4bcb1a88a7). (event -> scrollBarcxx . . $ structGuiScrollBarEvent#scrollBar.); |
| 953 | bool zoomed = ( newSliderSize != oldSliderSize ); |
| 954 | #if ! cocoacxx . . $ `sys/Gui.h:35:10`! |
| 955 | zoomed = false; |
| 956 | #endif |
| 957 | if (shifted) { |
| 958 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. += shift; |
| 959 | if (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. < mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + 1e-12) |
| 960 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 961 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. += shift; |
| 962 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 963 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 964 | } |
| 965 | if (zoomed) { |
| 966 | const double zoom = (newSliderSize + 1) * (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) / maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue.; |
| 967 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. + zoom; |
| 968 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. > mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. - 1e-12) |
| 969 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 970 | } |
| 971 | if (shifted || zoomed) { |
| 972 | mycxx . . $ `melder/melder.h:44:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 973 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 974 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); // BUG: this could be superfluous, because the selection hasn't changed? |
| 975 | //updateScrollBar (me); // commented out, becaus it would be circular |
| 976 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 977 | if (! mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group. || ! mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).()) |
| 978 | return; |
| 979 | for (integercxx . . $ integer# i = 1; i <= THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.; i ++) { |
| 980 | if (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] && theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] != me) { |
| 981 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] -> startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 982 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] -> endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 983 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i] -> v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 984 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (theGroupMembers [i] -> startSelection)); // precondition of FunctionEditor_updateText() |
| 985 | FunctionEditor_updateTextcxx . . $ FunctionEditor_updateText(8d3b84f45830d365). (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i]); |
| 986 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i]); |
| 987 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [i]); |
| 988 | } |
| 989 | } |
| 990 | } |
| 991 | } |
| 992 | |
| 993 | static integercxx . . $ integer# findEmptySpotInGroupcxx . . $ findEmptySpotInGroup(da6335ded91d79c2). () { |
| 994 | integercxx . . $ integer# emptySpot = 1; |
| 995 | while (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [emptySpot]) |
| 996 | emptySpot ++; |
| 997 | return emptySpot; |
| 998 | } |
| 999 | |
| 1000 | static integercxx . . $ integer# findMeInGroupcxx . . $ findMeInGroup(17b6e3843a19bc26). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 1001 | integercxx . . $ integer# positionInGroup = 1; |
| 1002 | while (theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [positionInGroup] != me) |
| 1003 | positionInGroup ++; |
| 1004 | return positionInGroup; |
| 1005 | } |
| 1006 | |
| 1007 | static integercxx . . $ integer# findOtherGroupMembercxx . . $ findOtherGroupMember(17b6e3843a19bc26). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 1008 | integercxx . . $ integer# otherGroupMember = 1; |
| 1009 | while (! theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [otherGroupMember] || theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [otherGroupMember] == me) |
| 1010 | otherGroupMember ++; |
| 1011 | return otherGroupMember; |
| 1012 | } |
| 1013 | |
| 1014 | static void gui_checkbutton_cb_groupcxx . . $ gui_checkbutton_cb_group(b834378f4702eac4). (FunctionEditorcxx . . $ FunctionEditor# me, GuiCheckButtonEventcxx . . $ GuiCheckButtonEvent# /* event */) { |
| 1015 | mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group. = ! mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group.; // toggle |
| 1016 | if (mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group.) { |
| 1017 | const integercxx . . $ integer# emptySpot = findEmptySpotInGroupcxx . . $ findEmptySpotInGroup(da6335ded91d79c2). (); |
| 1018 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [emptySpot] = me; |
| 1019 | if (++ theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. == 1) { |
| 1020 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1021 | return; |
| 1022 | } |
| 1023 | const integercxx . . $ integer# otherGroupMember = findOtherGroupMembercxx . . $ findOtherGroupMember(17b6e3843a19bc26). (me); |
| 1024 | const FunctionEditorcxx . . $ FunctionEditor# she = theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [otherGroupMember]; |
| 1025 | /* |
| 1026 | Adapt my domain. |
| 1027 | */ |
| 1028 | Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., hercxx . . $ `melder/melder.h:48:9`! tmincxx . . $ structFunctionEditor#tmin.); |
| 1029 | Melder_clipLeftcxx . . $ Melder_clipLeft(6245cd023a7d1552). (hercxx . . $ `melder/melder.h:48:9`! tmaxcxx . . $ structFunctionEditor#tmax., & mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 1030 | /* |
| 1031 | Adapt my window. |
| 1032 | */ |
| 1033 | if (mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).()) { |
| 1034 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = hercxx . . $ `melder/melder.h:48:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 1035 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = hercxx . . $ `melder/melder.h:48:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 1036 | mycxx . . $ `melder/melder.h:44:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 1037 | } |
| 1038 | /* |
| 1039 | Adapt my selection. |
| 1040 | Or should I impose my selection on the others? Votes? |
| 1041 | */ |
| 1042 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = hercxx . . $ `melder/melder.h:48:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 1043 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = hercxx . . $ `melder/melder.h:48:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 1044 | /* |
| 1045 | Update me. |
| 1046 | */ |
| 1047 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1048 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1049 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (me); |
| 1050 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1051 | /* |
| 1052 | Adapt all the other windows. |
| 1053 | */ |
| 1054 | if (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. < hercxx . . $ `melder/melder.h:48:9`! tmincxx . . $ structFunctionEditor#tmin. || mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. > hercxx . . $ `melder/melder.h:48:9`! tmaxcxx . . $ structFunctionEditor#tmax.) { |
| 1055 | for (integercxx . . $ integer# imember = 1; imember <= THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.; imember ++) { |
| 1056 | FunctionEditorcxx . . $ FunctionEditor# you = theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [imember]; |
| 1057 | if (you && you != me) { |
| 1058 | /* |
| 1059 | Adapt your domain. |
| 1060 | */ |
| 1061 | Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& yourcxx . . $ `melder/melder.h:46:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.); |
| 1062 | Melder_clipLeftcxx . . $ Melder_clipLeft(6245cd023a7d1552). (mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax., & yourcxx . . $ `melder/melder.h:46:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 1063 | /* |
| 1064 | Adapt your window. |
| 1065 | */ |
| 1066 | if (mycxx . . $ `melder/melder.h:44:9`! classPref_synchronizedZoomAndScrollcxx . . $ structFunctionEditor#classPref_synchronizedZoomAndScroll(50ce9a9e25b4a850).()) { |
| 1067 | yourcxx . . $ `melder/melder.h:46:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.; |
| 1068 | yourcxx . . $ `melder/melder.h:46:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.; |
| 1069 | yourcxx . . $ `melder/melder.h:46:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 1070 | } |
| 1071 | /* |
| 1072 | Adapt your selection. |
| 1073 | Should already have been set equal earlier, but why not |
| 1074 | (to keep it compatible with the imposure suggested above). |
| 1075 | */ |
| 1076 | yourcxx . . $ `melder/melder.h:46:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; // probably void |
| 1077 | yourcxx . . $ `melder/melder.h:46:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; // probably void |
| 1078 | /* |
| 1079 | Update you. |
| 1080 | */ |
| 1081 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (yourcxx . . $ `melder/melder.h:46:9`! startSelection)); // precondition of FunctionEditor_updateText() |
| 1082 | FunctionEditor_updateTextcxx . . $ FunctionEditor_updateText(8d3b84f45830d365). (you); |
| 1083 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (you); |
| 1084 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (you); |
| 1085 | } |
| 1086 | } |
| 1087 | } |
| 1088 | } else { |
| 1089 | const integercxx . . $ integer# myLocationInGroup = findMeInGroupcxx . . $ findMeInGroup(17b6e3843a19bc26). (me); |
| 1090 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [myLocationInGroup] = nullptr; |
| 1091 | theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. --; |
| 1092 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1093 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1094 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); // for setting buttons in draw method |
| 1095 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (me, true, true); |
| 1096 | } |
| 1097 | } |
| 1098 | |
| 1099 | static void HELP__introcxx . . $ HELP__intro(d0ca5b9bd99ede37). (FunctionEditorcxx . . $ FunctionEditor# /* me */, EDITOR_ARGScxx . . $ `sys/EditorM.h:25:9`!) { |
| 1100 | HELPcxx . . $ `sys/EditorM.h:631:9`! (U"Intro") |
| 1101 | } |
| 1102 | |
| 1103 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). () { |
| 1104 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1105 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1106 | if (area) |
| 1107 | area -> v_updateTextcxx . . $ structFunctionArea#v_updateText(49f6e7a06ebc5aa8). (); |
| 1108 | } |
| 1109 | } |
| 1110 | |
| 1111 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_prefscxx . . $ structFunctionEditor#v_createMenuItems_prefs(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) { |
| 1112 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_createMenuItems_prefscxx . . $ structDataGui#v_createMenuItems_prefs(6ea9c8c6ea2f58a9). (menu); |
| 1113 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1114 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1115 | if (area) |
| 1116 | area -> v_createMenuItems_prefscxx . . $ structDataGui#v_createMenuItems_prefs(6ea9c8c6ea2f58a9). (menu); |
| 1117 | } |
| 1118 | } |
| 1119 | |
| 1120 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_savecxx . . $ structFunctionEditor#v_createMenuItems_save(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) { |
| 1121 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_createMenuItems_savecxx . . $ structDataGui#v_createMenuItems_save(6ea9c8c6ea2f58a9). (menu); |
| 1122 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1123 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1124 | if (area) |
| 1125 | area -> v_createMenuItems_savecxx . . $ structDataGui#v_createMenuItems_save(6ea9c8c6ea2f58a9). (menu); |
| 1126 | } |
| 1127 | } |
| 1128 | |
| 1129 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_editcxx . . $ structFunctionEditor#v_createMenuItems_edit(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) { |
| 1130 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_createMenuItems_editcxx . . $ structEditor#v_createMenuItems_edit(6ea9c8c6ea2f58a9). (menu); |
| 1131 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1132 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1133 | if (area) |
| 1134 | area -> v_createMenuItems_editcxx . . $ structDataGui#v_createMenuItems_edit(6ea9c8c6ea2f58a9). (menu); |
| 1135 | } |
| 1136 | } |
| 1137 | |
| 1138 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuscxx . . $ structFunctionEditor#v_createMenus(49f6e7a06ebc5aa8). () { |
| 1139 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_createMenuscxx . . $ structEditor#v_createMenus(49f6e7a06ebc5aa8). (); |
| 1140 | |
| 1141 | EditorMenucxx . . $ EditorMenu# domainMenu = Editor_addMenucxx . . $ Editor_addMenu(8b39ac34ca8e016f). (this, v_format_domaincxx . . $ structFunctionEditor#v_format_domain(1912f6684645c851). (), 0); // Time or Frequency |
| 1142 | |
| 1143 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Query visible part:", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).); |
| 1144 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get start of visible part", 1, QUERY_EDITOR_FOR_REAL__getStartOfVisiblePartcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1145 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get end of visible part", 1, QUERY_EDITOR_FOR_REAL__getEndOfVisiblePartcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1146 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get length of visible part", 1, QUERY_EDITOR_FOR_REAL__getLengthOfVisiblePartcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1147 | |
| 1148 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"- Set visible part:", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).); |
| 1149 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom and scroll settings...", 1, menu_cb_zoomAndScrollSettingscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1150 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom...", 1, menu_cb_zoomcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1151 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Show all", 'A' | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_showAllcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1152 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom in", 'I' | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_zoomIncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1153 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom out", 'O' | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_zoomOutcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1154 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom to selection", 'N' | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_zoomToSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1155 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Zoom back", 'B' | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_zoomBackcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1156 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Scroll page back", GuiMenu_PAGE_UPcxx . . $ `sys/Gui.h:834:9`! | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_pageUpcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1157 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Scroll page forward", GuiMenu_PAGE_DOWNcxx . . $ `sys/Gui.h:835:9`! | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, menu_cb_pageDowncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1158 | |
| 1159 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"- Query selection:", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).); |
| 1160 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get start of selection || Get begin of selection", |
| 1161 | 1, QUERY_EDITOR_FOR_REAL__getStartOfSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1162 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get cursor", |
| 1163 | GuiMenu_F6cxx . . $ `sys/Gui.h:842:9`! | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`!, QUERY_EDITOR_FOR_REAL__getCursorcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1164 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get end of selection", |
| 1165 | 1, QUERY_EDITOR_FOR_REAL__getEndOfSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1166 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Get length of selection || Get selection length", |
| 1167 | 1, QUERY_EDITOR_FOR_REAL__getLengthOfSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1168 | |
| 1169 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"- Set selection:", 0, nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112).); |
| 1170 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Select...", |
| 1171 | 1, menu_cb_selectcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1172 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Widen or shrink selection...", |
| 1173 | 1, menu_cb_widenOrShrinkSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1174 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move cursor to start of selection || Move cursor to begin of selection", |
| 1175 | 1, menu_cb_moveCursorToStartOfSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1176 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move cursor to end of selection", |
| 1177 | 1, menu_cb_moveCursorToEndOfSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1178 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move cursor to...", |
| 1179 | 1, menu_cb_moveCursorTocxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1180 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move cursor by...", |
| 1181 | 1, menu_cb_moveCursorBycxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1182 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move start of selection by... || Move begin of selection by...", |
| 1183 | 1, menu_cb_moveStartOfSelectionBycxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1184 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move end of selection by...", |
| 1185 | 1, menu_cb_moveEndOfSelectionBycxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1186 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Selection step settings...", |
| 1187 | 1, menu_cb_selectionStepSettingscxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1188 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Select earlier", |
| 1189 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_UP_ARROWcxx . . $ `sys/Gui.h:823:9`!, menu_cb_selectEarliercxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1190 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Select later", |
| 1191 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_DOWN_ARROWcxx . . $ `sys/Gui.h:824:9`!, menu_cb_selectLatercxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1192 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move start of selection left || Move begin of selection left", |
| 1193 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_SHIFTcxx . . $ `sys/Gui.h:811:9`! | GuiMenu_UP_ARROWcxx . . $ `sys/Gui.h:823:9`!, menu_cb_moveStartOfSelectionLeftcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1194 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move start of selection right || Move begin of selection right", |
| 1195 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_SHIFTcxx . . $ `sys/Gui.h:811:9`! | GuiMenu_DOWN_ARROWcxx . . $ `sys/Gui.h:824:9`!, menu_cb_moveStartOfSelectionRightcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1196 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move end of selection left", |
| 1197 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_COMMANDcxx . . $ `sys/Gui.h:812:9`! | GuiMenu_UP_ARROWcxx . . $ `sys/Gui.h:823:9`!, menu_cb_moveEndOfSelectionLeftcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1198 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (domainMenu, U"Move end of selection right", |
| 1199 | GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_COMMANDcxx . . $ `sys/Gui.h:812:9`! | GuiMenu_DOWN_ARROWcxx . . $ `sys/Gui.h:824:9`!, menu_cb_moveEndOfSelectionRightcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1200 | |
| 1201 | if (ourcxx . . $ `melder/melder.h:42:9`! v_hasPlayMenucxx . . $ structFunctionEditor#v_hasPlayMenu(c9857a73d68e59ba). ()) { |
| 1202 | ourcxx . . $ `melder/melder.h:42:9`! playMenucxx . . $ structEditor#playMenu. = Editor_addMenucxx . . $ Editor_addMenu(8b39ac34ca8e016f). (this, U"Play", 0); |
| 1203 | v_createMenuItems_playcxx . . $ structFunctionEditor#v_createMenuItems_play(6ea9c8c6ea2f58a9). (ourcxx . . $ `melder/melder.h:42:9`! playMenucxx . . $ structEditor#playMenu.); |
| 1204 | } |
| 1205 | |
| 1206 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1207 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1208 | if (area) |
| 1209 | area -> v_createMenuscxx . . $ structDataGui#v_createMenus(49f6e7a06ebc5aa8). (); |
| 1210 | } |
| 1211 | } |
| 1212 | |
| 1213 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_updateMenuItemscxx . . $ structFunctionEditor#v_updateMenuItems(49f6e7a06ebc5aa8). () { |
| 1214 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_updateMenuItemscxx . . $ structDataGui#v_updateMenuItems(49f6e7a06ebc5aa8). (); |
| 1215 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1216 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1217 | if (area) |
| 1218 | area -> v_updateMenuItemscxx . . $ structDataGui#v_updateMenuItems(49f6e7a06ebc5aa8). (); |
| 1219 | } |
| 1220 | } |
| 1221 | |
| 1222 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createMenuItems_helpcxx . . $ structFunctionEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) { |
| 1223 | FunctionEditor_Parentcxx . . $ FunctionEditor_Parent# :: v_createMenuItems_helpcxx . . $ structDataGui#v_createMenuItems_help(6ea9c8c6ea2f58a9). (menu); |
| 1224 | EditorMenu_addCommandcxx . . $ EditorMenu_addCommand(b3c50ad5ffa1d58a). (menu, U"Praat Intro", 0, HELP__introcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97).); |
| 1225 | } |
| 1226 | |
| 1227 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_drawcxx . . $ structFunctionEditor#v_draw(49f6e7a06ebc5aa8). () { |
| 1228 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1229 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1230 | if (area) |
| 1231 | FunctionArea_drawOnecxx . . $ FunctionArea_drawOne(88b39197b202d92f). (area); |
| 1232 | } |
| 1233 | } |
| 1234 | |
| 1235 | static void gui_drawingarea_cb_exposecxx . . $ gui_drawingarea_cb_expose(af420db515736843). (FunctionEditorcxx . . $ FunctionEditor# me, GuiDrawingArea_ExposeEventcxx . . $ GuiDrawingArea_ExposeEvent# /* event */) { |
| 1236 | if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics.) |
| 1237 | return; // could be the case in the very beginning |
| 1238 | if (! mycxx . . $ `melder/melder.h:44:9`! enableUpdatescxx . . $ structFunctionEditor#enableUpdates.) |
| 1239 | return; |
| 1240 | #ifdef WIN32 |
| 1241 | if (my duringPlay) { |
| 1242 | GraphicsScreen graphics = (GraphicsScreen) my graphics.get(); |
| 1243 | HDC foregroundContext = graphics -> d_gdiGraphicsContext; |
| 1244 | static HDC backgroundContext; |
| 1245 | if (! my backgroundIsUpToDate) { |
| 1246 | /* |
| 1247 | Draw into background. |
| 1248 | */ |
| 1249 | static HBITMAP backgroundBitmap; |
| 1250 | if (backgroundBitmap) |
| 1251 | DeleteObject (backgroundBitmap); |
| 1252 | if (backgroundContext) |
| 1253 | DeleteDC (backgroundContext); |
| 1254 | backgroundContext = CreateCompatibleDC (foregroundContext); |
| 1255 | backgroundBitmap = CreateCompatibleBitmap (foregroundContext, my drawingArea -> d_widget -> width, my drawingArea -> d_widget -> height); |
| 1256 | SelectObject (backgroundContext, backgroundBitmap); |
| 1257 | SetBkMode (backgroundContext, TRANSPARENT); // not the default! |
| 1258 | SelectPen (backgroundContext, GetStockPen (BLACK_PEN)); |
| 1259 | SelectBrush (backgroundContext, GetStockBrush (BLACK_BRUSH)); |
| 1260 | SetTextAlign (backgroundContext, TA_LEFT | TA_BASELINE | TA_NOUPDATECP); // baseline is not the default! |
| 1261 | graphics -> d_gdiGraphicsContext = backgroundContext; |
| 1262 | drawBackgroundAndData (me); |
| 1263 | graphics -> d_gdiGraphicsContext = foregroundContext; |
| 1264 | my backgroundIsUpToDate = true; |
| 1265 | } |
| 1266 | /* |
| 1267 | Copy to foreground. |
| 1268 | */ |
| 1269 | BitBlt (foregroundContext, 0, 0, my drawingArea -> d_widget -> width, my drawingArea -> d_widget -> height, backgroundContext, 0, 0, SRCCOPY); |
| 1270 | } else { |
| 1271 | my backgroundIsUpToDate = false; |
| 1272 | drawBackgroundAndData (me); |
| 1273 | } |
| 1274 | #else |
| 1275 | drawBackgroundAndDatacxx . . $ drawBackgroundAndData(8d3b84f45830d365). (me); |
| 1276 | #endif |
| 1277 | |
| 1278 | /* |
| 1279 | Draw the running cursor. |
| 1280 | */ |
| 1281 | if (mycxx . . $ `melder/melder.h:44:9`! duringPlaycxx . . $ structFunctionEditor#duringPlay.) { |
| 1282 | if (Melder_debugcxx . . $ Melder_debug. == 53) { |
| 1283 | static integercxx . . $ integer# numberOfRunningCursorsDrawn = 0; |
| 1284 | numberOfRunningCursorsDrawn += 1; |
| 1285 | Melder_casualcxx . . $ Melder_casual(6298c93241566110). (U"playing cursor ", numberOfRunningCursorsDrawn); |
| 1286 | } |
| 1287 | mycxx . . $ `melder/melder.h:44:9`! viewDataAsWorldByFractioncxx . . $ structFunctionEditor#viewDataAsWorldByFraction(83f5f38750778ac8). (); |
| 1288 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 1289 | Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 3.0); |
| 1290 | Graphics_xorOncxx . . $ Graphics_xorOn(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 1291 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! playCursorcxx . . $ structFunctionEditor#playCursor., 0.0, mycxx . . $ `melder/melder.h:44:9`! playCursorcxx . . $ structFunctionEditor#playCursor., 1.0); |
| 1292 | Graphics_xorOffcxx . . $ Graphics_xorOff(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1293 | Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0); |
| 1294 | } |
| 1295 | |
| 1296 | /* |
| 1297 | Draw the selection part. |
| 1298 | */ |
| 1299 | if (mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).()) { |
| 1300 | /* |
| 1301 | Draw closing box. |
| 1302 | */ |
| 1303 | mycxx . . $ `melder/melder.h:44:9`! viewAllAsPixelettescxx . . $ structFunctionEditor#viewAllAsPixelettes(83f5f38750778ac8). (); |
| 1304 | Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.0); |
| 1305 | const double left = mycxx . . $ `melder/melder.h:44:9`! width_pxltcxx . . $ structFunctionEditor#width_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. + 9.0, right = mycxx . . $ `melder/melder.h:44:9`! width_pxltcxx . . $ structFunctionEditor#width_pxlt. - 3.0; |
| 1306 | const double bottom = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. + 5.0, top = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - 5.0; |
| 1307 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_PINKcxx . . $ Melder_PINK.); |
| 1308 | Graphics_fillRectanglecxx . . $ Graphics_fillRectangle(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), left, right, bottom, top); |
| 1309 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_GREYcxx . . $ Melder_GREY.); |
| 1310 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), left + 2.0, bottom + 2.0, right - 2.0, top - 2.0); |
| 1311 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), left + 2.0, top - 2.0, right - 2.0, bottom + 2.0); |
| 1312 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLACKcxx . . $ Melder_BLACK.); |
| 1313 | /* |
| 1314 | Draw content. |
| 1315 | */ |
| 1316 | mycxx . . $ `melder/melder.h:44:9`! viewInnerSelectionViewerAsFractionByFractioncxx . . $ structFunctionEditor#viewInnerSelectionViewerAsFractionByFraction(83f5f38750778ac8). (); |
| 1317 | if (mycxx . . $ `melder/melder.h:44:9`! duringPlaycxx . . $ structFunctionEditor#duringPlay.) |
| 1318 | mycxx . . $ `melder/melder.h:44:9`! v_drawRealTimeSelectionViewercxx . . $ structFunctionEditor#v_drawRealTimeSelectionViewer(ba8836b59fb42830). (mycxx . . $ `melder/melder.h:44:9`! playCursorcxx . . $ structFunctionEditor#playCursor.); |
| 1319 | else |
| 1320 | mycxx . . $ `melder/melder.h:44:9`! v_drawSelectionViewercxx . . $ structFunctionEditor#v_drawSelectionViewer(49f6e7a06ebc5aa8). (); |
| 1321 | } |
| 1322 | |
| 1323 | /* |
| 1324 | Not really drawing, but until further notice we believe that updating the menu items |
| 1325 | (i.e. making them sensitive or insensitive, or checking or unchecking them) could be done as often as redrawing. |
| 1326 | */ |
| 1327 | mycxx . . $ `melder/melder.h:44:9`! v_updateMenuItemscxx . . $ structFunctionEditor#v_updateMenuItems(49f6e7a06ebc5aa8). (); |
| 1328 | } |
| 1329 | |
| 1330 | bool FunctionEditor_defaultMouseInWideDataViewcxx . . $ FunctionEditor_defaultMouseInWideDataView(f60eeae5fe5430ba). (FunctionEditorcxx . . $ FunctionEditor# me, GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double mouseTime) { |
| 1331 | mycxx . . $ `melder/melder.h:44:9`! viewDataAsWorldByFractioncxx . . $ structFunctionEditor#viewDataAsWorldByFraction(83f5f38750778ac8). (); |
| 1332 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mouseTime)); |
| 1333 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (mycxx . . $ `melder/melder.h:44:9`! startSelection <= mycxx . . $ `melder/melder.h:44:9`! endSelection); |
| 1334 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., & mouseTime, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); // WYSIWYG |
| 1335 | if (event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850).()) { |
| 1336 | /* |
| 1337 | Ignore any click that occurs during a drag, |
| 1338 | such as might occur when the user has both a mouse and a trackpad. |
| 1339 | */ |
| 1340 | if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime.)) |
| 1341 | return false; |
| 1342 | const double selectedMiddleTime = 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 1343 | const bool theyWantToExtendTheCurrentSelectionAtTheLeft = |
| 1344 | (event -> shiftKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#shiftKeyPressed. && mouseTime < selectedMiddleTime) || event -> isLeftBottomFunctionKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#isLeftBottomFunctionKeyPressed(50ce9a9e25b4a850).(); |
| 1345 | const bool theyWantToExtendTheCurrentSelectionAtTheRight = |
| 1346 | (event -> shiftKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#shiftKeyPressed. && mouseTime >= selectedMiddleTime) || event -> isRightBottomFunctionKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#isRightBottomFunctionKeyPressed(50ce9a9e25b4a850).(); |
| 1347 | if (theyWantToExtendTheCurrentSelectionAtTheLeft) { |
| 1348 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mouseTime; |
| 1349 | mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.; |
| 1350 | } else if (theyWantToExtendTheCurrentSelectionAtTheRight) { |
| 1351 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mouseTime; |
| 1352 | mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime. = mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection.; |
| 1353 | } else { |
| 1354 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mouseTime; |
| 1355 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = mouseTime; |
| 1356 | mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime. = mouseTime; |
| 1357 | } |
| 1358 | Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., & mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); |
| 1359 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! anchorTime)); |
| 1360 | } else if (event -> isDragcxx . . $ structGuiDrawingArea_MouseEvent#isDrag(50ce9a9e25b4a850).() || event -> isDropcxx . . $ structGuiDrawingArea_MouseEvent#isDrop(50ce9a9e25b4a850).()) { |
| 1361 | /* |
| 1362 | Ignore any drag or drop that happens after a descendant preempted the above click handling. |
| 1363 | */ |
| 1364 | if (isundefcxx . . $ isundef(f8197d536af80c96). (mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime.)) |
| 1365 | return false; |
| 1366 | if (! mycxx . . $ `melder/melder.h:44:9`! hasBeenDraggedBeyondVicinityRadiusAtLeastOncecxx . . $ structFunctionEditor#hasBeenDraggedBeyondVicinityRadiusAtLeastOnce.) { |
| 1367 | const double distanceToAnchor_mm = fabscxx . . $ fabs(fee4f1d22bc8e617). (Graphics_dxWCtoMMcxx . . $ Graphics_dxWCtoMM(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mouseTime - mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime.)); |
| 1368 | constexpr double vicinityRadius_mm = 1.0; |
| 1369 | if (distanceToAnchor_mm > vicinityRadius_mm) |
| 1370 | mycxx . . $ `melder/melder.h:44:9`! hasBeenDraggedBeyondVicinityRadiusAtLeastOncecxx . . $ structFunctionEditor#hasBeenDraggedBeyondVicinityRadiusAtLeastOnce. = true; |
| 1371 | } |
| 1372 | if (mycxx . . $ `melder/melder.h:44:9`! hasBeenDraggedBeyondVicinityRadiusAtLeastOncecxx . . $ structFunctionEditor#hasBeenDraggedBeyondVicinityRadiusAtLeastOnce.) { |
| 1373 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = stdcxx . . $ std/::mincxx . . $ std/min(2a338fce5842aa6a). (mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime., mouseTime); |
| 1374 | mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = stdcxx . . $ std/::maxcxx . . $ std/max(2a338fce5842aa6a). (mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime., mouseTime); |
| 1375 | } |
| 1376 | if (event -> isDropcxx . . $ structGuiDrawingArea_MouseEvent#isDrop(50ce9a9e25b4a850).()) { |
| 1377 | mycxx . . $ `melder/melder.h:44:9`! anchorTimecxx . . $ structFunctionEditor#anchorTime. = undefinedcxx . . $ undefined.; |
| 1378 | mycxx . . $ `melder/melder.h:44:9`! hasBeenDraggedBeyondVicinityRadiusAtLeastOncecxx . . $ structFunctionEditor#hasBeenDraggedBeyondVicinityRadiusAtLeastOnce. = false; |
| 1379 | } |
| 1380 | } |
| 1381 | return true; |
| 1382 | } |
| 1383 | |
| 1384 | bool structFunctionEditorcxx . . $ structFunctionEditor# :: v_mouseInWideDataViewcxx . . $ structFunctionEditor#v_mouseInWideDataView(3d5a26054778c78d). (GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double globalY_fraction) { |
| 1385 | bool result = false; |
| 1386 | if (event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850). ()) |
| 1387 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1388 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1389 | if (area) |
| 1390 | area -> isClickAnchorcxx . . $ structFunctionArea#isClickAnchor. = area -> y_fraction_globalIsInsidecxx . . $ structFunctionArea#y_fraction_globalIsInside(b32f3370ca1a96a1). (globalY_fraction); |
| 1391 | } |
| 1392 | {// scope |
| 1393 | integercxx . . $ integer# iarea = 1; |
| 1394 | for (; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1395 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1396 | if (area && area -> isClickAnchorcxx . . $ structFunctionArea#isClickAnchor.) { |
| 1397 | const double localY_fraction = area -> y_fraction_globalToLocalcxx . . $ structFunctionArea#y_fraction_globalToLocal(7e3a3c6b59947c6d). (globalY_fraction); |
| 1398 | FunctionArea_setViewportcxx . . $ FunctionArea_setViewport(e9e5ddf62bc86a1a). (area); // for Graphics_dxWCtoMM and the like |
| 1399 | result = area -> v_mousecxx . . $ structFunctionArea#v_mouse(3d5a26054778c78d). (event, x_world, localY_fraction); |
| 1400 | break; |
| 1401 | } |
| 1402 | } |
| 1403 | if (iarea > FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.) |
| 1404 | result = FunctionEditor_defaultMouseInWideDataViewcxx . . $ FunctionEditor_defaultMouseInWideDataView(f60eeae5fe5430ba). (this, event, x_world); |
| 1405 | } |
| 1406 | if (event -> isDropcxx . . $ structGuiDrawingArea_MouseEvent#isDrop(50ce9a9e25b4a850).()) { |
| 1407 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1408 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (ourcxx . . $ `melder/melder.h:42:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1409 | if (area) |
| 1410 | area -> isClickAnchorcxx . . $ structFunctionArea#isClickAnchor. = false; |
| 1411 | } |
| 1412 | } |
| 1413 | return result; |
| 1414 | } |
| 1415 | |
| 1416 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_clickSelectionViewercxx . . $ structFunctionEditor#v_clickSelectionViewer(bc12c9ec15586e6a). (double /* x_fraction */, double /* y_fraction */) { |
| 1417 | } |
| 1418 | |
| 1419 | static void gui_drawingarea_cb_mousecxx . . $ gui_drawingarea_cb_mouse(729a6672613510fc). (FunctionEditorcxx . . $ FunctionEditor# me, GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event) { |
| 1420 | if (! mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics.) |
| 1421 | return; // could be the case in the very beginning |
| 1422 | mycxx . . $ `melder/melder.h:44:9`! viewAllAsPixelettescxx . . $ structFunctionEditor#viewAllAsPixelettes(83f5f38750778ac8). (); |
| 1423 | double x_pxlt, y_pxlt; |
| 1424 | Graphics_DCtoWCcxx . . $ Graphics_DCtoWC(cb6c8e8090c77494). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), event -> xcxx . . $ structGuiDrawingArea_MouseEvent#x., event -> ycxx . . $ structGuiDrawingArea_MouseEvent#y., & x_pxlt, & y_pxlt); |
| 1425 | if (event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850).()) { |
| 1426 | if (mycxx . . $ `melder/melder.h:44:9`! v_hasSelectionViewercxx . . $ structFunctionEditor#v_hasSelectionViewer(c9857a73d68e59ba).() || mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).()) { |
| 1427 | const double left = mycxx . . $ `melder/melder.h:44:9`! width_pxltcxx . . $ structFunctionEditor#width_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. + 9.0, right = mycxx . . $ `melder/melder.h:44:9`! width_pxltcxx . . $ structFunctionEditor#width_pxlt. - 3.0; |
| 1428 | const double bottom = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - mycxx . . $ `melder/melder.h:44:9`! spacecxx . . $ structFunctionEditor#space. + 5.0, top = mycxx . . $ `melder/melder.h:44:9`! height_pxltcxx . . $ structFunctionEditor#height_pxlt. - 5.0; |
| 1429 | if (x_pxlt > left && x_pxlt < right && y_pxlt > bottom && y_pxlt < top) { |
| 1430 | mycxx . . $ `melder/melder.h:44:9`! setInstancePref_showSelectionViewercxx . . $ structFunctionEditor#setInstancePref_showSelectionViewer(b45ddcbc8423892c). (! mycxx . . $ `melder/melder.h:44:9`! instancePref_showSelectionViewercxx . . $ structFunctionEditor#instancePref_showSelectionViewer(50ce9a9e25b4a850).()); // toggle |
| 1431 | mycxx . . $ `melder/melder.h:44:9`! updateGeometrycxx . . $ structFunctionEditor#updateGeometry(3e454b8ccf442868). (GuiControl_getWidthcxx . . $ GuiControl_getWidth(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.), GuiControl_getHeightcxx . . $ GuiControl_getHeight(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.)); |
| 1432 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1433 | return; |
| 1434 | } |
| 1435 | } |
| 1436 | mycxx . . $ `melder/melder.h:44:9`! clickWasModifiedByShiftKeycxx . . $ structFunctionEditor#clickWasModifiedByShiftKey. = event -> shiftKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#shiftKeyPressed.; |
| 1437 | mycxx . . $ `melder/melder.h:44:9`! clickWasModifiedByOptionKeycxx . . $ structFunctionEditor#clickWasModifiedByOptionKey. = event -> optionKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#optionKeyPressed.; |
| 1438 | mycxx . . $ `melder/melder.h:44:9`! clickWasModifiedByCommandKeycxx . . $ structFunctionEditor#clickWasModifiedByCommandKey. = event -> commandKeyPressedcxx . . $ structGuiDrawingArea_MouseEvent#commandKeyPressed.; |
| 1439 | mycxx . . $ `melder/melder.h:44:9`! anchorIsInSelectionViewercxx . . $ structFunctionEditor#anchorIsInSelectionViewer. = mycxx . . $ `melder/melder.h:44:9`! isInSelectionViewercxx . . $ structFunctionEditor#isInSelectionViewer(b32f3370ca1a96a1). (x_pxlt); |
| 1440 | mycxx . . $ `melder/melder.h:44:9`! anchorIsInWideDataViewcxx . . $ structFunctionEditor#anchorIsInWideDataView. = ( y_pxlt > mycxx . . $ `melder/melder.h:44:9`! dataBottom_pxltcxx . . $ structFunctionEditor#dataBottom_pxlt(21b6c25e127938e2).() && y_pxlt < mycxx . . $ `melder/melder.h:44:9`! dataTop_pxltcxx . . $ structFunctionEditor#dataTop_pxlt(21b6c25e127938e2).() ); |
| 1441 | } |
| 1442 | if (mycxx . . $ `melder/melder.h:44:9`! anchorIsInSelectionViewercxx . . $ structFunctionEditor#anchorIsInSelectionViewer.) { |
| 1443 | mycxx . . $ `melder/melder.h:44:9`! viewInnerSelectionViewerAsFractionByFractioncxx . . $ structFunctionEditor#viewInnerSelectionViewerAsFractionByFraction(83f5f38750778ac8). (); |
| 1444 | double x_fraction, y_fraction; |
| 1445 | Graphics_DCtoWCcxx . . $ Graphics_DCtoWC(cb6c8e8090c77494). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), event -> xcxx . . $ structGuiDrawingArea_MouseEvent#x., event -> ycxx . . $ structGuiDrawingArea_MouseEvent#y., & x_fraction, & y_fraction); |
| 1446 | if (event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850).()) { |
| 1447 | mycxx . . $ `melder/melder.h:44:9`! v_clickSelectionViewercxx . . $ structFunctionEditor#v_clickSelectionViewer(bc12c9ec15586e6a). (x_fraction, y_fraction); |
| 1448 | //Melder_assert (isdefined (my startSelection)); // precondition of v_updateText() |
| 1449 | //my v_updateText (); |
| 1450 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1451 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (me, false, false); // TODO: why needed? |
| 1452 | } else; // no dragging (yet?) in any selection viewer |
| 1453 | } else if (mycxx . . $ `melder/melder.h:44:9`! anchorIsInWideDataViewcxx . . $ structFunctionEditor#anchorIsInWideDataView.) { |
| 1454 | mycxx . . $ `melder/melder.h:44:9`! viewDataAsWorldByFractioncxx . . $ structFunctionEditor#viewDataAsWorldByFraction(83f5f38750778ac8). (); |
| 1455 | double x_world, y_fraction; |
| 1456 | Graphics_DCtoWCcxx . . $ Graphics_DCtoWC(cb6c8e8090c77494). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), event -> xcxx . . $ structGuiDrawingArea_MouseEvent#x., event -> ycxx . . $ structGuiDrawingArea_MouseEvent#y., & x_world, & y_fraction); |
| 1457 | mycxx . . $ `melder/melder.h:44:9`! v_distributeAreascxx . . $ structFunctionEditor#v_distributeAreas(49f6e7a06ebc5aa8). (); |
| 1458 | mycxx . . $ `melder/melder.h:44:9`! v_mouseInWideDataViewcxx . . $ structFunctionEditor#v_mouseInWideDataView(3d5a26054778c78d). (event, x_world, y_fraction); // this can change the selection, but not (yet?) the window (last checked 2023-02-13) |
| 1459 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of FunctionEditor_selectionMarksChanged() |
| 1460 | FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (me); |
| 1461 | } else { // clicked outside signal region? Let us hear it |
| 1462 | try { |
| 1463 | if (event -> isClickcxx . . $ structGuiDrawingArea_MouseEvent#isClick(50ce9a9e25b4a850).()) { |
| 1464 | for (integercxx . . $ integer# i = 0; i < 8; i ++) { |
| 1465 | if (x_pxlt > mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. leftcxx . . $ structFunctionEditor#$anonymous_type_0#left. && x_pxlt < mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. rightcxx . . $ structFunctionEditor#$anonymous_type_0#right. && y_pxlt > mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. bottomcxx . . $ structFunctionEditor#$anonymous_type_0#bottom. && y_pxlt < mycxx . . $ `melder/melder.h:44:9`! rectcxx . . $ structFunctionEditor#rect. [i]. topcxx . . $ structFunctionEditor#$anonymous_type_0#top.) { |
| 1466 | switch (i) { |
| 1467 | case 0: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); break; |
| 1468 | case 1: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); break; |
| 1469 | case 2: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow.); break; |
| 1470 | case 3: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); break; |
| 1471 | case 4: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [1]); break; |
| 1472 | case 5: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [1], mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [2]); break; |
| 1473 | case 6: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [2], mycxx . . $ `melder/melder.h:44:9`! markercxx . . $ structFunctionEditor#marker. [3]); break; |
| 1474 | case 7: mycxx . . $ `melder/melder.h:44:9`! v_playcxx . . $ structFunctionEditor#v_play(bc12c9ec15586e6a). (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.); break; |
| 1475 | } |
| 1476 | } |
| 1477 | } |
| 1478 | } else; // no dragging in the play rectangles |
| 1479 | } catch (MelderErrorcxx . . $ MelderError#) { |
| 1480 | Melder_flushErrorcxx . . $ Melder_flushError(49f6e7a06ebc5aa8). (); |
| 1481 | } |
| 1482 | } |
| 1483 | } |
| 1484 | |
| 1485 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v_createChildrencxx . . $ structFunctionEditor#v_createChildren(49f6e7a06ebc5aa8). () { |
| 1486 | int x = BUTTON_Xcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_X.; |
| 1487 | |
| 1488 | /* |
| 1489 | Create zoom buttons. |
| 1490 | */ |
| 1491 | GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., x, x + BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1492 | U"all", gui_button_cb_showAllcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0); |
| 1493 | x += BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. + BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING.; |
| 1494 | GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., x, x + BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1495 | U"in", gui_button_cb_zoomIncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0); |
| 1496 | x += BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. + BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING.; |
| 1497 | GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., x, x + BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1498 | U"out", gui_button_cb_zoomOutcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0); |
| 1499 | x += BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. + BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING.; |
| 1500 | GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., x, x + BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1501 | U"sel", gui_button_cb_zoomToSelectioncxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0); |
| 1502 | x += BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. + BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING.; |
| 1503 | GuiButton_createShowncxx . . $ GuiButton_createShown(653ed9987c16d9c1). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., x, x + BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1504 | U"bak", gui_button_cb_zoomBackcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0); |
| 1505 | |
| 1506 | /* |
| 1507 | Create scroll bar. |
| 1508 | */ |
| 1509 | ourcxx . . $ `melder/melder.h:42:9`! scrollBarcxx . . $ structFunctionEditor#scrollBar. = GuiScrollBar_createShowncxx . . $ GuiScrollBar_createShown(571c696f46086cf0). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., |
| 1510 | x += BUTTON_WIDTHcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_WIDTH. + BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING., -80 - BUTTON_SPACINGcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/BUTTON_SPACING., -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, 0, |
| 1511 | 1, maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue., 1, maximumScrollBarValuecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/maximumScrollBarValue. - 1, 1, 1, |
| 1512 | gui_cb_scrollcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, GuiScrollBar_HORIZONTALcxx . . $ `sys/Gui.h:1053:9`!); |
| 1513 | |
| 1514 | /* |
| 1515 | Create Group button. |
| 1516 | */ |
| 1517 | ourcxx . . $ `melder/melder.h:42:9`! groupButtoncxx . . $ structFunctionEditor#groupButton. = GuiCheckButton_createShowncxx . . $ GuiCheckButton_createShown(623a0757f24fe0b2). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., -80, 0, -4 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, -4, |
| 1518 | U"Group", gui_checkbutton_cb_groupcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, group_equalDomaincxx . . $ group_equalDomain(828b76dce88fac). (ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin., ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.) ? GuiCheckButton_SETcxx . . $ `sys/Gui.h:503:9`! : 0); |
| 1519 | |
| 1520 | /* |
| 1521 | Create optional text field. |
| 1522 | */ |
| 1523 | if (ourcxx . . $ `melder/melder.h:42:9`! v_hasTextcxx . . $ structFunctionEditor#v_hasText(c9857a73d68e59ba). ()) { |
| 1524 | ourcxx . . $ `melder/melder.h:42:9`! textAreacxx . . $ structFunctionEditor#textArea. = GuiText_createShowncxx . . $ GuiText_createShown(8bcb1f2be7fc31ee). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., 0, 0, |
| 1525 | Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). (), |
| 1526 | Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). () + TEXT_HEIGHTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/TEXT_HEIGHT., |
| 1527 | GuiText_INKWRAPcxx . . $ `sys/Gui.h:1125:9`! | GuiText_SCROLLEDcxx . . $ `sys/Gui.h:1123:9`! |
| 1528 | ); |
| 1529 | #if gtkcxx . . $ `sys/Gui.h:33:10`! |
| 1530 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (ourcxx . . $ `melder/melder.h:42:9`! textArea -> d_widget); |
| 1531 | gtk_widget_grab_focus (GTK_WIDGETcxx . . $ `<external>/6031079988677191796/gtkwidget.h:58:9`! (ourcxx . . $ `melder/melder.h:42:9`! textArea -> d_widget)); // BUG: can hardly be correct (the text should grab the focus of the window, not the global focus) |
| 1532 | #elif cocoa |
| 1533 | Melder_assert ([(NSView *) our textArea -> d_widget window]); |
| 1534 | //[[(NSView *) our textArea -> d_widget window] setInitialFirstResponder: (NSView *) our textArea -> d_widget]; |
| 1535 | [[(NSView *) our textArea -> d_widget window] makeFirstResponder: (NSView *) our textArea -> d_widget]; |
| 1536 | #endif |
| 1537 | } |
| 1538 | |
| 1539 | /* |
| 1540 | Create drawing area. |
| 1541 | */ |
| 1542 | #if cocoacxx . . $ `sys/Gui.h:35:10`! |
| 1543 | int marginBetweenTextAndDrawingAreaToEnsureCorrectUnhighlighting = 3; |
| 1544 | #else |
| 1545 | int marginBetweenTextAndDrawingAreaToEnsureCorrectUnhighlighting = 0; |
| 1546 | #endif |
| 1547 | ourcxx . . $ `melder/melder.h:42:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea. = GuiDrawingArea_createShowncxx . . $ GuiDrawingArea_createShown(5a210e61ba6a237d). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., |
| 1548 | 0, 0, |
| 1549 | Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). () + ( ourcxx . . $ `melder/melder.h:42:9`! v_hasTextcxx . . $ structFunctionEditor#v_hasText(c9857a73d68e59ba). () ? TEXT_HEIGHTcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/TEXT_HEIGHT. + marginBetweenTextAndDrawingAreaToEnsureCorrectUnhighlighting : 0), -8 - Gui_PUSHBUTTON_HEIGHTcxx . . $ `sys/Gui.h:103:9`!, |
| 1550 | gui_drawingarea_cb_exposecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., gui_drawingarea_cb_mousecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., |
| 1551 | nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., gui_drawingarea_cb_resizecxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., gui_drawingarea_cb_zoomcxx . . $ MelderCallback#MelderCallback(aaa169a015c1cf97)., this, 0 |
| 1552 | ); |
| 1553 | GuiDrawingArea_setSwipablecxx . . $ GuiDrawingArea_setSwipable(7e7a359b55bf9e27). (ourcxx . . $ `melder/melder.h:42:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea., ourcxx . . $ `melder/melder.h:42:9`! scrollBarcxx . . $ structFunctionEditor#scrollBar., nullptr); |
| 1554 | } |
| 1555 | |
| 1556 | void structFunctionEditorcxx . . $ structFunctionEditor# :: v1_dataChangedcxx . . $ structFunctionEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) { |
| 1557 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (ourcxx . . $ `melder/melder.h:42:9`! function()); |
| 1558 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (Thing_isa (ourcxx . . $ `melder/melder.h:42:9`! function(), classFunction)); |
| 1559 | if (! ourcxx . . $ `melder/melder.h:42:9`! groupcxx . . $ structFunctionEditor#group.) { |
| 1560 | ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin. = ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionEditor#function(bc0cc0faa3cceeeb).() -> xmincxx . . $ structFunction#xmin.; |
| 1561 | ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax. = ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionEditor#function(bc0cc0faa3cceeeb).() -> xmaxcxx . . $ structFunction#xmax.; |
| 1562 | } |
| 1563 | if (ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow. < ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin. || ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow. > ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.) { |
| 1564 | ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 1565 | ourcxx . . $ `melder/melder.h:42:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 1566 | } |
| 1567 | if (ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow. < ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin. || ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow. > ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.) { |
| 1568 | ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 1569 | ourcxx . . $ `melder/melder.h:42:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 1570 | } |
| 1571 | if (ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow. >= ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow.) { |
| 1572 | ourcxx . . $ `melder/melder.h:42:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 1573 | ourcxx . . $ `melder/melder.h:42:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 1574 | ourcxx . . $ `melder/melder.h:42:9`! v_windowChangedcxx . . $ structFunctionEditor#v_windowChanged(49f6e7a06ebc5aa8). (); |
| 1575 | } |
| 1576 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin., & ourcxx . . $ `melder/melder.h:42:9`! startSelectioncxx . . $ structFunctionEditor#startSelection., ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 1577 | Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). (ourcxx . . $ `melder/melder.h:42:9`! tmincxx . . $ structFunctionEditor#tmin., & ourcxx . . $ `melder/melder.h:42:9`! endSelectioncxx . . $ structFunctionEditor#endSelection., ourcxx . . $ `melder/melder.h:42:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 1578 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (ourcxx . . $ `melder/melder.h:42:9`! startSelection)); // precondition of v_updateText() |
| 1579 | ourcxx . . $ `melder/melder.h:42:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1580 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (this); |
| 1581 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (this); |
| 1582 | //updateGroup (this, true, true); |
| 1583 | } |
| 1584 | |
| 1585 | int structFunctionEditorcxx . . $ structFunctionEditor# :: v_playCallbackcxx . . $ structFunctionEditor#v_playCallback(a93637906a4cc8d4). (int phase, double /* startTime */, double endTime, double currentTime) { |
| 1586 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (currentTime)); |
| 1587 | ourcxx . . $ `melder/melder.h:42:9`! playCursorcxx . . $ structFunctionEditor#playCursor. = currentTime; |
| 1588 | if (phase == 1) { |
| 1589 | ourcxx . . $ `melder/melder.h:42:9`! duringPlaycxx . . $ structFunctionEditor#duringPlay. = true; |
| 1590 | return 1; |
| 1591 | } |
| 1592 | if (phase == 3) { |
| 1593 | ourcxx . . $ `melder/melder.h:42:9`! duringPlaycxx . . $ structFunctionEditor#duringPlay. = false; |
| 1594 | if (currentTime < endTime && MelderAudio_stopWasExplicitcxx . . $ MelderAudio_stopWasExplicit(c9857a73d68e59ba). ()) { |
| 1595 | if (currentTime > ourcxx . . $ `melder/melder.h:42:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. && currentTime < ourcxx . . $ `melder/melder.h:42:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.) |
| 1596 | ourcxx . . $ `melder/melder.h:42:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = currentTime; |
| 1597 | else |
| 1598 | ourcxx . . $ `melder/melder.h:42:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = ourcxx . . $ `melder/melder.h:42:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = currentTime; |
| 1599 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (ourcxx . . $ `melder/melder.h:42:9`! startSelection)); // precondition of v_updateText() |
| 1600 | ourcxx . . $ `melder/melder.h:42:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1601 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (this, false, true); |
| 1602 | } |
| 1603 | } |
| 1604 | if (Melder_debugcxx . . $ Melder_debug. == 53) |
| 1605 | Melder_casualcxx . . $ Melder_casual(6298c93241566110). (U"draining"); |
| 1606 | Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (ourcxx . . $ `melder/melder.h:42:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); // note: without setting my backgroundIsUpToDate to false |
| 1607 | GuiShell_draincxx . . $ GuiShell_drain(429b5b6a2695f0d7). (ourcxx . . $ `melder/melder.h:42:9`! windowFormcxx . . $ structEditor#windowForm., false, true); // this may not be needed on all platforms (but on Windows it is, at least on 2020-09-21) |
| 1608 | return 1; |
| 1609 | } |
| 1610 | |
| 1611 | int theFunctionEditor_playCallbackcxx . . $ theFunctionEditor_playCallback(c95eeed177d4ccf8). (FunctionEditorcxx . . $ FunctionEditor# me, int phase, double startTime, double endTime, double currentTime) { |
| 1612 | return mycxx . . $ `melder/melder.h:44:9`! v_playCallbackcxx . . $ structFunctionEditor#v_playCallback(a93637906a4cc8d4). (phase, startTime, endTime, currentTime); |
| 1613 | } |
| 1614 | |
| 1615 | void FunctionEditor_initcxx . . $ FunctionEditor_init(719bc58b4917372e). (FunctionEditorcxx . . $ FunctionEditor# me, conststring32cxx . . $ conststring32# title, Functioncxx . . $ Function# data) { |
| 1616 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (data); |
| 1617 | Thing_castcxx . . $ `sys/Thing.h:246:9`! (Function, function, data); |
| 1618 | |
| 1619 | if (Melder_debugcxx . . $ Melder_debug. == 55) |
| 1620 | Melder_casualcxx . . $ Melder_casual(6298c93241566110). (Thing_messageNameAndAddresscxx . . $ Thing_messageNameAndAddress(fbb3dc34e3ef688d). (me), U" init"); |
| 1621 | mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. = function -> xmincxx . . $ structFunction#xmin.; // set before adding children (see group button) |
| 1622 | mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax. = function -> xmaxcxx . . $ structFunction#xmax.; |
| 1623 | Editor_initcxx . . $ Editor_init(13f379e38ac41ed6). (me, 0, 0, mycxx . . $ `melder/melder.h:44:9`! classPref_shellWidthcxx . . $ structEditor#classPref_shellWidth(455f465bc33b4cdf).(), mycxx . . $ `melder/melder.h:44:9`! classPref_shellHeightcxx . . $ structEditor#classPref_shellHeight(455f465bc33b4cdf).(), title, function); |
| 1624 | |
| 1625 | mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. = mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.; |
| 1626 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.; |
| 1627 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = 0.5 * (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin. + mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.); |
| 1628 | double maximumInitialLengthOfWindow = undefinedcxx . . $ undefined.; |
| 1629 | for (integercxx . . $ integer# iarea = 1; iarea <= FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAScxx . . $ FunctionEditor_MAXIMUM_NUMBER_OF_FUNCTION_AREAS.; iarea ++) { |
| 1630 | FunctionAreacxx . . $ FunctionArea# area = static_cast <FunctionAreacxx . . $ FunctionArea#> (mycxx . . $ `melder/melder.h:44:9`! functionAreascxx . . $ structFunctionEditor#functionAreas. [iarea].getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1631 | if (area) { |
| 1632 | const double areaMaximumInitialLengthOfWindow = area -> maximumInitialLengthOfWindowcxx . . $ structFunctionArea#maximumInitialLengthOfWindow(31fa7155c10fdd13).(); |
| 1633 | if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (areaMaximumInitialLengthOfWindow) && ! (areaMaximumInitialLengthOfWindow >= maximumInitialLengthOfWindow)) // NaN-safe |
| 1634 | maximumInitialLengthOfWindow = areaMaximumInitialLengthOfWindow; |
| 1635 | } |
| 1636 | } |
| 1637 | if (isdefinedcxx . . $ isdefined(f8197d536af80c96). (maximumInitialLengthOfWindow)) { |
| 1638 | if (mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. - mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. > maximumInitialLengthOfWindow) { |
| 1639 | mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. = mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. + maximumInitialLengthOfWindow; |
| 1640 | if (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. == mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin.) |
| 1641 | mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. = mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection. = 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow. + mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow.); |
| 1642 | } |
| 1643 | } |
| 1644 | |
| 1645 | #if motifcxx . . $ `sys/Gui.h:34:10`! |
| 1646 | Melder_assert (XtWindow (my drawingArea -> d_widget)); |
| 1647 | #endif |
| 1648 | mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). Graphics_create_xmdrawingareacxx . . $ Graphics_create_xmdrawingarea(51b1c75797a7dddf). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.); |
| 1649 | Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 12); |
| 1650 | |
| 1651 | mycxx . . $ `melder/melder.h:44:9`! updateGeometrycxx . . $ structFunctionEditor#updateGeometry(3e454b8ccf442868). (GuiControl_getWidthcxx . . $ GuiControl_getWidth(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.), GuiControl_getHeightcxx . . $ GuiControl_getHeight(1227891e76fac374). (mycxx . . $ `melder/melder.h:44:9`! drawingAreacxx . . $ structFunctionEditor#drawingArea.)); |
| 1652 | |
| 1653 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1654 | //my v_updateText (); // BUG: superfluous because of Editor_dataChanged below? and too early if function pointers not yet set? |
| 1655 | if (group_equalDomaincxx . . $ group_equalDomain(828b76dce88fac). (mycxx . . $ `melder/melder.h:44:9`! tmincxx . . $ structFunctionEditor#tmin., mycxx . . $ `melder/melder.h:44:9`! tmaxcxx . . $ structFunctionEditor#tmax.)) |
| 1656 | gui_checkbutton_cb_groupcxx . . $ gui_checkbutton_cb_group(b834378f4702eac4). (me, nullptr); // BUG: nullptr |
| 1657 | mycxx . . $ `melder/melder.h:44:9`! enableUpdatescxx . . $ structFunctionEditor#enableUpdates. = true; // BUG: explain why still needed |
| 1658 | |
| 1659 | Editor_dataChangedcxx . . $ Editor_dataChanged(27010ae97811c311). (me, me); // only to self, not to the other editors; BUG: should be in Editor_init? |
| 1660 | } |
| 1661 | |
| 1662 | void FunctionEditor_windowMarksChangedcxx . . $ FunctionEditor_windowMarksChanged(ce925ac19f5bbd22). (FunctionEditorcxx . . $ FunctionEditor# me, const bool selectionChanged) { |
| 1663 | if (selectionChanged) { |
| 1664 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1665 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1666 | } |
| 1667 | updateScrollBarcxx . . $ updateScrollBar(8d3b84f45830d365). (me); |
| 1668 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1669 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (me, true, selectionChanged); |
| 1670 | } |
| 1671 | void FunctionEditor_selectionMarksChangedcxx . . $ FunctionEditor_selectionMarksChanged(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 1672 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1673 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1674 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); |
| 1675 | updateGroupcxx . . $ updateGroup(21cfc61438744486). (me, false, true); |
| 1676 | } |
| 1677 | |
| 1678 | void FunctionEditor_updateTextcxx . . $ FunctionEditor_updateText(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 1679 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1680 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1681 | } |
| 1682 | |
| 1683 | void FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (FunctionEditorcxx . . $ FunctionEditor# me) { |
| 1684 | mycxx . . $ `melder/melder.h:44:9`! backgroundIsUpToDatecxx . . $ structFunctionEditor#backgroundIsUpToDate. = false; |
| 1685 | Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); |
| 1686 | } |
| 1687 | |
| 1688 | void FunctionEditor_enableUpdatescxx . . $ FunctionEditor_enableUpdates(ce925ac19f5bbd22). (FunctionEditorcxx . . $ FunctionEditor# me, bool enable) { |
| 1689 | mycxx . . $ `melder/melder.h:44:9`! enableUpdatescxx . . $ structFunctionEditor#enableUpdates. = enable; |
| 1690 | } |
| 1691 | |
| 1692 | void FunctionEditor_ungroupcxx . . $ FunctionEditor_ungroup(fde123624714e72). (Daatacxx . . $ Daata# data) { |
| 1693 | for (integercxx . . $ integer# ieditor = 1; ieditor <= THE_MAXIMUM_GROUP_SIZEcxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/THE_MAXIMUM_GROUP_SIZE.; ieditor ++) { |
| 1694 | const FunctionEditorcxx . . $ FunctionEditor# me = theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [ieditor]; |
| 1695 | if (me && mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group. && mycxx . . $ `melder/melder.h:44:9`! datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).() == data) { // BUG: this may not be precise enough, in case an editor is editing multiple objects |
| 1696 | mycxx . . $ `melder/melder.h:44:9`! groupcxx . . $ structFunctionEditor#group. = false; |
| 1697 | GuiCheckButton_setValuecxx . . $ GuiCheckButton_setValue(7c4273eb49c3ef26). (mycxx . . $ `melder/melder.h:44:9`! groupButtoncxx . . $ structFunctionEditor#groupButton., false); |
| 1698 | theGroupMemberscxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupMembers. [ieditor] = nullptr; |
| 1699 | theGroupSizecxx . . $ `$anonymous_namespace_foned/FunctionEditor.cpp`/theGroupSize. --; |
| 1700 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (isdefined (mycxx . . $ `melder/melder.h:44:9`! startSelection)); // precondition of v_updateText() |
| 1701 | mycxx . . $ `melder/melder.h:44:9`! v_updateTextcxx . . $ structFunctionEditor#v_updateText(49f6e7a06ebc5aa8). (); |
| 1702 | FunctionEditor_redrawcxx . . $ FunctionEditor_redraw(8d3b84f45830d365). (me); // for setting buttons in v_draw() method |
| 1703 | } |
| 1704 | } |
| 1705 | } |
| 1706 | |
| 1707 | void FunctionEditor_drawRangeMarkcxx . . $ FunctionEditor_drawRangeMark(6891a0eec242374c). (FunctionEditorcxx . . $ FunctionEditor# me, double yWC, conststring32cxx . . $ conststring32# yWC_string, conststring32cxx . . $ conststring32# units, int verticalAlignment) { |
| 1708 | static MelderStringcxx . . $ MelderString# text; |
| 1709 | MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& text, yWC_string, units); |
| 1710 | double textWidth = Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.stringcxx . . $ MelderString#string.) + Graphics_dxMMtoWCcxx . . $ Graphics_dxMMtoWC(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5); |
| 1711 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_BLUEcxx . . $ Melder_BLUE.); |
| 1712 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., yWC, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. + textWidth, yWC); |
| 1713 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, verticalAlignment); |
| 1714 | if (verticalAlignment == Graphics_BOTTOMcxx . . $ `sys/Graphics.h:252:9`!) |
| 1715 | yWC -= Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5); |
| 1716 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., yWC, text.stringcxx . . $ MelderString#string.); |
| 1717 | } |
| 1718 | |
| 1719 | void FunctionEditor_insertCursorFunctionValuecxx . . $ FunctionEditor_insertCursorFunctionValue(39eff85a52becdb4). (FunctionEditorcxx . . $ FunctionEditor# me, double yWC, conststring32cxx . . $ conststring32# yWC_string, conststring32cxx . . $ conststring32# units, double minimum, double maximum) { |
| 1720 | double textX = mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., textY = yWC; |
| 1721 | const bool tooHigh = ( Graphics_dyWCtoMMcxx . . $ Graphics_dyWCtoMM(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), maximum - textY) < 5.0 ); |
| 1722 | const bool tooLow = ( Graphics_dyWCtoMMcxx . . $ Graphics_dyWCtoMM(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), textY - minimum) < 5.0 ); |
| 1723 | if (yWC < minimum || yWC > maximum) |
| 1724 | return; |
| 1725 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_CYANcxx . . $ Melder_CYAN.); |
| 1726 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.99 * mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. + 0.01 * mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., yWC, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., yWC); |
| 1727 | Graphics_fillCircle_mmcxx . . $ Graphics_fillCircle_mm(8752bb7a78272ca7). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 0.5 * (mycxx . . $ `melder/melder.h:44:9`! startSelectioncxx . . $ structFunctionEditor#startSelection. + mycxx . . $ `melder/melder.h:44:9`! endSelectioncxx . . $ structFunctionEditor#endSelection.), yWC, 1.5); |
| 1728 | if (tooHigh) { |
| 1729 | if (tooLow) |
| 1730 | textY = 0.5 * (minimum + maximum); |
| 1731 | else |
| 1732 | textY = maximum - Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 5.0); |
| 1733 | } else if (tooLow) { |
| 1734 | textY = minimum + Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 5.0); |
| 1735 | } |
| 1736 | static MelderStringcxx . . $ MelderString# text; |
| 1737 | MelderString_copycxx . . $ MelderString_copy(65be51a793e0ff96). (& text, yWC_string, units); |
| 1738 | double textWidth = Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), text.stringcxx . . $ MelderString#string.); |
| 1739 | Graphics_fillCircle_mmcxx . . $ Graphics_fillCircle_mm(8752bb7a78272ca7). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow. + textWidth + Graphics_dxMMtoWCcxx . . $ Graphics_dxMMtoWC(f042c24bcd87f07e). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), 1.5), textY, 1.5); |
| 1740 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_REDcxx . . $ Melder_RED.); |
| 1741 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_LEFTcxx . . $ `sys/Graphics.h:249:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 1742 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), textX, textY, text.stringcxx . . $ MelderString#string.); |
| 1743 | } |
| 1744 | |
| 1745 | void FunctionEditor_drawHorizontalHaircxx . . $ FunctionEditor_drawHorizontalHair(9ee54d933d3f4330). (FunctionEditorcxx . . $ FunctionEditor# me, double yWC, conststring32cxx . . $ conststring32# yWC_string, conststring32cxx . . $ conststring32# units) { |
| 1746 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_REDcxx . . $ Melder_RED.); |
| 1747 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., yWC, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., yWC); |
| 1748 | Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_RIGHTcxx . . $ `sys/Graphics.h:251:9`!, Graphics_HALFcxx . . $ `sys/Graphics.h:253:9`!); |
| 1749 | Graphics_textcxx . . $ Graphics_text(bd267f534253e388). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., yWC, yWC_string, units); |
| 1750 | } |
| 1751 | |
| 1752 | void FunctionEditor_drawGridLinecxx . . $ FunctionEditor_drawGridLine(ff1c6b8a68b21137). (FunctionEditorcxx . . $ FunctionEditor# me, double yWC) { |
| 1753 | Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Melder_CYANcxx . . $ Melder_CYAN.); |
| 1754 | Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!); |
| 1755 | Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), mycxx . . $ `melder/melder.h:44:9`! startWindowcxx . . $ structFunctionEditor#startWindow., yWC, mycxx . . $ `melder/melder.h:44:9`! endWindowcxx . . $ structFunctionEditor#endWindow., yWC); |
| 1756 | Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (mycxx . . $ `melder/melder.h:44:9`! graphicscxx . . $ structFunctionEditor#graphics..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!); |
| 1757 | } |
| 1758 | |
| 1759 | /* End of file FunctionEditor.cpp */ |