Debian Codegraph @

sys/praat_picture.cpp

raw symbols SCIP
1 /* praat_picture.cpp
2 *
3 * Copyright (C) 1992-2025 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 "praatP.h"cxx . . $ `<file>/sys/praatP.h`/
20 #include "praatM.h"cxx . . $ `<file>/sys/praatM.h`/
21 #include "Picture.h"cxx . . $ `<file>/sys/Picture.h`/
22 #include "Printer.h"cxx . . $ `<file>/sys/Printer.h`/
23 #include "machine.h"cxx . . $ `<file>/sys/machine.h`/
24 #include "Formula.h"cxx . . $ `<file>/sys/Formula.h`/
25 #include "site.h"cxx . . $ `<file>/sys/site.h`/
26
27 #include "GuiP.h"cxx . . $ `<file>/sys/GuiP.h`/
28 #include "DemoEditor.h"cxx . . $ `<file>/sys/DemoEditor.h`/
29
30 #pragma mark - Saved settings
31
32 static bool praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport.;
33
34 void praat_picture_prefscxx . . $ praat_picture_prefs(49f6e7a06ebc5aa8). () {
35 Preferences_addEnumcxx . . $ `sys/Preferences.h:45:9`! (U"Picture.font", & theCurrentPraatPicture -> font, kGraphics_font, kGraphics_font::DEFAULT);
36 Preferences_addDoublecxx . . $ Preferences_addDouble(bd3f288232783655). (U"Picture.fontSize", & theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize., 10.0);
37 Preferences_addBoolcxx . . $ Preferences_addBool(c6ee9ad8f2803b57). (U"Picture.mouseSelectsInnerViewport", & praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport., false);
38 }
39
40 #pragma mark - Singletons
41
42 static autoPicturecxx . . $ autoPicture# praat_picturecxx . . $ praat_picture.;
43
44 /********** CALLBACKS OF THE PICTURE MENUS **********/
45
46 #pragma mark - Font menu: font part
47
48 static GuiMenuItemcxx . . $ GuiMenuItem# praatButton_fontscxx . . $ praatButton_fonts. [1 + (int) kGraphics_fontcxx . . $ kGraphics_font#::MAXcxx . . $ kGraphics_font#MAX.];
49
50 static void updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). () {
51 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
52 Melder_clipcxx . . $ Melder_clip(971c667ea412f82c). ((int) kGraphics_fontcxx . . $ kGraphics_font#::MINcxx . . $ kGraphics_font#MIN., (int *) & theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font., (int) kGraphics_fontcxx . . $ kGraphics_font#::MAXcxx . . $ kGraphics_font#MAX.);
53 for (int i = (int) kGraphics_fontcxx . . $ kGraphics_font#::MINcxx . . $ kGraphics_font#MIN.; i <= (int) kGraphics_fontcxx . . $ kGraphics_font#::MAXcxx . . $ kGraphics_font#MAX.; i ++)
54 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_fontscxx . . $ praatButton_fonts. [i], (int) theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. == i);
55 }
56 }
57 static void GRAPHICS_NONE__Timescxx . . $ GRAPHICS_NONE__Times(49f6e7a06ebc5aa8). ();
58 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_NONE__Times) {
59 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
60 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES.);
61 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
62 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
63 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
64 }
65 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_NONE__Helvetica) {
66 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
67 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = kGraphics_fontcxx . . $ kGraphics_font#::HELVETICAcxx . . $ kGraphics_font#HELVETICA.);
68 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
69 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
70 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
71 }
72 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_NONE__Palatino) {
73 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
74 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = kGraphics_fontcxx . . $ kGraphics_font#::PALATINOcxx . . $ kGraphics_font#PALATINO.);
75 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
76 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
77 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
78 }
79 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_NONE__Courier) {
80 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
81 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font. = kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER.);
82 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
83 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
84 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
85 }
86
87 #pragma mark - Font menu: size part
88
89 static GuiMenuItemcxx . . $ GuiMenuItem# praatButton_10cxx . . $ praatButton_10., praatButton_12cxx . . $ praatButton_12., praatButton_14cxx . . $ praatButton_14., praatButton_18cxx . . $ praatButton_18., praatButton_24cxx . . $ praatButton_24.;
90
91 static void updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). () {
92 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
93 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_10cxx . . $ praatButton_10., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. == 10.0);
94 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_12cxx . . $ praatButton_12., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. == 12.0);
95 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_14cxx . . $ praatButton_14., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. == 14.0);
96 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_18cxx . . $ praatButton_18., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. == 18.0);
97 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_24cxx . . $ praatButton_24., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. == 24.0);
98 }
99 }
100 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_10) {
101 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
102 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = 10.0);
103 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
104 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
105 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
106 }
107 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_12) {
108 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
109 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = 12.0);
110 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
111 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
112 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
113 }
114 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_14) {
115 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
116 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = 14.0);
117 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
118 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
119 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
120 }
121 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_18) {
122 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
123 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = 18.0);
124 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
125 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
126 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
127 }
128 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_24) {
129 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
130 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = 24.0);
131 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
132 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
133 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
134 }
135 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Font_size, U"Praat picture: Font size", U"Font menu") {
136 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (fontSize, U"Font size (points)", U"10")
137 OKcxx . . $ `sys/praatM.h:327:9`!
138 SET_REALcxx . . $ `sys/praatM.h:332:9`! (fontSize, (integer) theCurrentPraatPicture -> fontSize);
139 DOcxx . . $ `sys/praatM.h:354:9`!
140 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
141 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. = fontSize);
142 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
143 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
144 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
145 }
146
147 /*static void setFontSize_keepInnerViewport (int fontSize) {
148 double xmargin = praat_size * 4.2 / 72.0, ymargin = praat_size * 2.8 / 72.0;
149 if (xmargin > 0.4 * (x2NDC - x1NDC)) xmargin = 0.4 * (x2NDC - x1NDC);
150 if (ymargin > 0.4 * (y2NDC - y1NDC)) ymargin = 0.4 * (y2NDC - y1NDC);
151 x1NDC += xmargin;
152 x2NDC -= xmargin;
153 y1NDC += ymargin;
154 y2NDC -= ymargin;
155 xmargin = fontSize * 4.2 / 72.0, ymargin = fontSize * 2.8 / 72.0;
156 if (xmargin > 2 * (x2NDC - x1NDC)) xmargin = 2 * (x2NDC - x1NDC);
157 if (ymargin > 2 * (y2NDC - y1NDC)) ymargin = 2 * (y2NDC - y1NDC);
158 x1NDC -= xmargin;
159 x2NDC += xmargin;
160 y1NDC -= ymargin;
161 y2NDC += ymargin;
162 {
163 autoPraatPictureOpen picture;
164 Graphics_setFontSize (GRAPHICS, praat_size = fontSize);
165 }
166 Picture_setSelection (praat_picture.get(), x1NDC, x2NDC, y1NDC, y2NDC);
167 updateSizeMenu ();
168 }*/
169
170 #pragma mark - Select menu
171
172 static GuiMenuItemcxx . . $ GuiMenuItem# praatButton_innerViewportcxx . . $ praatButton_innerViewport., praatButton_outerViewportcxx . . $ praatButton_outerViewport.;
173
174 static void updateViewportMenucxx . . $ updateViewportMenu(49f6e7a06ebc5aa8). () {
175 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
176 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_innerViewportcxx . . $ praatButton_innerViewport., praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport. ? 1 : 0);
177 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_outerViewportcxx . . $ praatButton_outerViewport., praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport. ? 0 : 1);
178 }
179 }
180
181 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_MouseSelectsInnerViewport) {
182 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
183 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Mouse commands are not available inside pictures.");
184 {// scope
185 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
186 Picture_setMouseSelectsInnerViewportcxx . . $ Picture_setMouseSelectsInnerViewport(70425a64acc38f07). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport. = true);
187 }
188 updateViewportMenucxx . . $ updateViewportMenu(49f6e7a06ebc5aa8). ();
189 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
190 }
191
192 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_MouseSelectsOuterViewport) {
193 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
194 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Mouse commands are not available inside pictures.");
195 {// scope
196 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
197 Picture_setMouseSelectsInnerViewportcxx . . $ Picture_setMouseSelectsInnerViewport(70425a64acc38f07). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport. = false);
198 }
199 updateViewportMenucxx . . $ updateViewportMenu(49f6e7a06ebc5aa8). ();
200 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
201 }
202
203 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_SelectInnerViewport, U"Praat picture: Select inner viewport", U"Select inner viewport...") {
204 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"The viewport is the selected rectangle in the Picture window.")
205 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"It is where your next drawing will appear.")
206 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"The rectangle you select here will not include the margins.")
207 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"")
208 REALcxx . . $ `sys/praatM.h:92:9`! (left, U"left Horizontal range (inches)", U"0.0")
209 REALcxx . . $ `sys/praatM.h:92:9`! (right, U"right Horizontal range (inches)", U"6.0")
210 REALcxx . . $ `sys/praatM.h:92:9`! (top, U"left Vertical range (inches)", U"0.0")
211 REALcxx . . $ `sys/praatM.h:92:9`! (bottom, U"right Vertical range (inches)", U"6.0")
212 OKcxx . . $ `sys/praatM.h:327:9`!
213 double xmargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 4.2 / 72.0, ymargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 2.8 / 72.0;
214 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& ymargin, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC.));
215 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& xmargin, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC.));
216 SET_REALcxx . . $ `sys/praatM.h:332:9`! (left, theCurrentPraatPicture -> x1NDC + xmargin)
217 SET_REALcxx . . $ `sys/praatM.h:332:9`! (right, theCurrentPraatPicture -> x2NDC - xmargin)
218 SET_REALcxx . . $ `sys/praatM.h:332:9`! (top, Picture_HEIGHT - theCurrentPraatPicture -> y2NDC + ymargin)
219 SET_REALcxx . . $ `sys/praatM.h:332:9`! (bottom, Picture_HEIGHT - theCurrentPraatPicture -> y1NDC - ymargin)
220 DOcxx . . $ `sys/praatM.h:354:9`!
221 //Melder_require (praat_commandsWithExternalSideEffectsAreAllowed (), U"Viewport commands are not available inside manuals.");
222 double xmargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 4.2 / 72.0, ymargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 2.8 / 72.0;
223 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"1: xmargin ", xmargin, U" ymargin ", ymargin);
224 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
225 integercxx . . $ integer# x1DC, x2DC, y1DC, y2DC;
226 Graphics_inqWsViewportcxx . . $ Graphics_inqWsViewport(17f6d84cadd6c860). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1DC, & x2DC, & y1DC, & y2DC);
227 double x1wNDC, x2wNDC, y1wNDC, y2wNDC;
228 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1wNDC, & x2wNDC, & y1wNDC, & y2wNDC);
229 const double wDC = (x2DC - x1DC) / (x2wNDC - x1wNDC);
230 const double hDC = integer_abscxx . . $ integer_abs(8ce0d1b217db7fd1). (y2DC - y1DC) / (y2wNDC - y1wNDC);
231 xmargin *= Graphics_getResolutioncxx . . $ Graphics_getResolution(d4bbe1b9daaaf11b). (GRAPHICScxx . . $ `sys/praat.h:204:9`!) / wDC;
232 ymargin *= Graphics_getResolutioncxx . . $ Graphics_getResolution(d4bbe1b9daaaf11b). (GRAPHICScxx . . $ `sys/praat.h:204:9`!) / hDC;
233 }
234 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& xmargin, 2.0 * (right - left));
235 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& ymargin, 2.0 * (bottom - top));
236 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"2: xmargin ", xmargin, U" ymargin ", ymargin);
237 if (left == right)
238 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The left and right edges of the viewport cannot be equal.\nPlease change the horizontal range.");
239 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& left, & right);
240 if (top == bottom)
241 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The top and bottom edges of the viewport cannot be equal.\nPlease change the vertical range.");
242 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = left - xmargin;
243 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = right + xmargin;
244 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
245 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& top, & bottom);
246 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - bottom) - ymargin;
247 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - top) + ymargin;
248 Picture_setSelectioncxx . . $ Picture_setSelection(c185511737db1298). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
249 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
250 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
251 } else if (theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. != & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects.) { // in manual?
252 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& top, & bottom);
253 double x1wNDC, x2wNDC, y1wNDC, y2wNDC;
254 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1wNDC, & x2wNDC, & y1wNDC, & y2wNDC);
255 const double height_NDC = y2wNDC - y1wNDC;
256 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = height_NDC - bottom - ymargin;
257 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = height_NDC - top + ymargin;
258 } else {
259 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& bottom, & top);
260 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = bottom - ymargin;
261 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = top + ymargin;
262 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!,
263 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
264 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.
265 ); // to ensure that Demo_x() updates
266 }
267 tracecxx . . $ `melder/melder_debug.h:60:10`! (U"3:"
268 U" x1NDC ", theCurrentPraatPicture -> x1NDC,
269 U" x2NDC ", theCurrentPraatPicture -> x2NDC,
270 U" y1NDC ", theCurrentPraatPicture -> y1NDC,
271 U" y2NDC ", theCurrentPraatPicture -> y2NDC
272 );
273 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
274 }
275
276 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_SelectOuterViewport, U"Praat picture: Select outer viewport", U"Select outer viewport...") {
277 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"The viewport is the selected rectangle in the Picture window.")
278 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"It is where your next drawing will appear.")
279 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"The rectangle you select here will include the margins.")
280 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"")
281 REALcxx . . $ `sys/praatM.h:92:9`! (left, U"left Horizontal range (inches)", U"0.0")
282 REALcxx . . $ `sys/praatM.h:92:9`! (right, U"right Horizontal range (inches)", U"6.0")
283 REALcxx . . $ `sys/praatM.h:92:9`! (top, U"left Vertical range (inches)", U"0.0")
284 REALcxx . . $ `sys/praatM.h:92:9`! (bottom, U"right Vertical range (inches)", U"6.0")
285 OKcxx . . $ `sys/praatM.h:327:9`!
286 SET_REALcxx . . $ `sys/praatM.h:332:9`! (left, theCurrentPraatPicture -> x1NDC)
287 SET_REALcxx . . $ `sys/praatM.h:332:9`! (right, theCurrentPraatPicture -> x2NDC)
288 SET_REALcxx . . $ `sys/praatM.h:332:9`! (top, Picture_HEIGHT - theCurrentPraatPicture -> y2NDC)
289 SET_REALcxx . . $ `sys/praatM.h:332:9`! (bottom, Picture_HEIGHT - theCurrentPraatPicture -> y1NDC)
290 DOcxx . . $ `sys/praatM.h:354:9`!
291 //Melder_require (praat_commandsWithExternalSideEffectsAreAllowed (), U"Viewport commands are not available inside manuals.");
292 if (left == right)
293 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The left and right edges of the viewport cannot be equal.\nPlease change the horizontal range.");
294 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& left, & right);
295 if (top == bottom)
296 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The top and bottom edges of the viewport cannot be equal.\nPlease change the vertical range.");
297 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = left;
298 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = right;
299 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
300 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& top, & bottom);
301 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = Picture_HEIGHTcxx . . $ Picture_HEIGHT. - bottom;
302 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = Picture_HEIGHTcxx . . $ Picture_HEIGHT. - top;
303 Picture_setSelectioncxx . . $ Picture_setSelection(c185511737db1298). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
304 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
305 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
306 } else if (theCurrentPraatObjectscxx . . $ theCurrentPraatObjects. != & theForegroundPraatObjectscxx . . $ theForegroundPraatObjects.) { // in manual?
307 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& top, & bottom);
308 double x1wNDC, x2wNDC, y1wNDC, y2wNDC;
309 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1wNDC, & x2wNDC, & y1wNDC, & y2wNDC);
310 const double height_NDC = y2wNDC - y1wNDC;
311 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = height_NDC - bottom;
312 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = height_NDC - top;
313 } else {
314 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (& bottom, & top);
315 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = bottom;
316 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = top;
317 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!,
318 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
319 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.
320 ); // to ensure that Demo_x() updates
321 }
322 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
323 }
324
325 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_ViewportText, U"Praat picture: Viewport text", U"Viewport text...") {
326 CHOICExcxx . . $ `sys/praatM.h:221:9`! (horizontalAlignment, U"Horizontal alignment", 2, 0)
327 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"left")
328 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"centre")
329 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"right")
330 CHOICExcxx . . $ `sys/praatM.h:221:9`! (verticalAlignment, U"Vertical alignment", 2, 0)
331 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"bottom")
332 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"half")
333 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"top")
334 REALcxx . . $ `sys/praatM.h:92:9`! (rotation, U"Rotation (degrees)", U"0")
335 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 3)
336 OKcxx . . $ `sys/praatM.h:327:9`!
337 DOcxx . . $ `sys/praatM.h:354:9`!
338 double x1WC, x2WC, y1WC, y2WC;
339 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
340 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
341 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, 0, 1, 0, 1);
342 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, (kGraphics_horizontalAlignmentcxx . . $ kGraphics_horizontalAlignment#) horizontalAlignment, verticalAlignment);
343 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, rotation);
344 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalAlignment == 0 ? 0.0 : horizontalAlignment == 1 ? 0.5 : 1.0,
345 verticalAlignment == 0 ? 0.0 : verticalAlignment == 1 ? 0.5 : 1.0, text);
346 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, 0.0);
347 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, x1WC, x2WC, y1WC, y2WC);
348 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
349 }
350
351 #pragma mark - Pen menu
352
353 static GuiMenuItemcxx . . $ GuiMenuItem# praatButton_linescxx . . $ praatButton_lines. [4];
354 static GuiMenuItemcxx . . $ GuiMenuItem# praatButton_blackcxx . . $ praatButton_black., praatButton_whitecxx . . $ praatButton_white., praatButton_redcxx . . $ praatButton_red., praatButton_greencxx . . $ praatButton_green., praatButton_bluecxx . . $ praatButton_blue.,
355 praatButton_yellowcxx . . $ praatButton_yellow., praatButton_cyancxx . . $ praatButton_cyan., praatButton_magentacxx . . $ praatButton_magenta., praatButton_marooncxx . . $ praatButton_maroon., praatButton_limecxx . . $ praatButton_lime., praatButton_navycxx . . $ praatButton_navy.,
356 praatButton_tealcxx . . $ praatButton_teal., praatButton_purplecxx . . $ praatButton_purple., praatButton_olivecxx . . $ praatButton_olive., praatButton_pinkcxx . . $ praatButton_pink., praatButton_silvercxx . . $ praatButton_silver., praatButton_greycxx . . $ praatButton_grey.;
357
358 static void updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). () {
359 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
360 for (int i = Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!; i <= Graphics_DASHEDcxx . . $ `sys/Graphics.h:289:9`!; i ++)
361 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_linescxx . . $ praatButton_lines. [i], theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. == i);
362 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_blackcxx . . $ praatButton_black. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_BLACKcxx . . $ Melder_BLACK.));
363 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_whitecxx . . $ praatButton_white. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_WHITEcxx . . $ Melder_WHITE.));
364 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_redcxx . . $ praatButton_red. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_REDcxx . . $ Melder_RED.));
365 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_greencxx . . $ praatButton_green. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_GREENcxx . . $ Melder_GREEN.));
366 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_bluecxx . . $ praatButton_blue. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_BLUEcxx . . $ Melder_BLUE.));
367 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_yellowcxx . . $ praatButton_yellow. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_YELLOWcxx . . $ Melder_YELLOW.));
368 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_cyancxx . . $ praatButton_cyan. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_CYANcxx . . $ Melder_CYAN.));
369 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_magentacxx . . $ praatButton_magenta. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_MAGENTAcxx . . $ Melder_MAGENTA.));
370 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_marooncxx . . $ praatButton_maroon. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_MAROONcxx . . $ Melder_MAROON.));
371 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_limecxx . . $ praatButton_lime. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_LIMEcxx . . $ Melder_LIME.));
372 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_navycxx . . $ praatButton_navy. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_NAVYcxx . . $ Melder_NAVY.));
373 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_tealcxx . . $ praatButton_teal. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_TEALcxx . . $ Melder_TEAL.));
374 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_purplecxx . . $ praatButton_purple. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_PURPLEcxx . . $ Melder_PURPLE.));
375 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_olivecxx . . $ praatButton_olive. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_OLIVEcxx . . $ Melder_OLIVE.));
376 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_pinkcxx . . $ praatButton_pink. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_PINKcxx . . $ Melder_PINK.));
377 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_silvercxx . . $ praatButton_silver. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_SILVERcxx . . $ Melder_SILVER.));
378 GuiMenuItem_checkcxx . . $ GuiMenuItem_check(9c76b7451f460a69). (praatButton_greycxx . . $ praatButton_grey. , MelderColour_equalcxx . . $ MelderColour_equal(d84867a02c6595e6). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour., Melder_GREYcxx . . $ Melder_GREY.));
379 }
380 }
381
382 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Solid_line) {
383 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
384 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!);
385 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
386 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
387 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
388 }
389 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Dotted_line) {
390 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
391 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!);
392 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
393 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
394 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
395 }
396 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Dashed_line) {
397 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
398 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DASHEDcxx . . $ `sys/Graphics.h:289:9`!);
399 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
400 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
401 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
402 }
403 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Dashed_dotted_line) {
404 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
405 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DASHED_DOTTEDcxx . . $ `sys/Graphics.h:290:9`!);
406 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
407 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
408 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
409 }
410
411 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Line_width, U"Praat picture: Line width", nullptr) {
412 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (lineWidth, U"Line width", U"1.0")
413 OKcxx . . $ `sys/praatM.h:327:9`!
414 SET_REALcxx . . $ `sys/praatM.h:332:9`! (lineWidth, theCurrentPraatPicture -> lineWidth)
415 DOcxx . . $ `sys/praatM.h:354:9`!
416 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
417 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth. = lineWidth);
418 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
419 }
420
421 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Arrow_size, U"Praat picture: Arrow size", nullptr) {
422 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (arrowSize, U"Arrow size", U"1.0")
423 OKcxx . . $ `sys/praatM.h:327:9`!
424 SET_REALcxx . . $ `sys/praatM.h:332:9`! (arrowSize, theCurrentPraatPicture -> arrowSize)
425 DOcxx . . $ `sys/praatM.h:354:9`!
426 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
427 Graphics_setArrowSizecxx . . $ Graphics_setArrowSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize. = arrowSize);
428 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
429 }
430
431 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Speckle_size, U"Praat picture: Speckle size", nullptr) {
432 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"Here you determine the diameter (in millimetres)")
433 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"of the dots that are drawn by \"speckle\" commands.")
434 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (speckleSize, U"Speckle size (mm)", U"1.0")
435 OKcxx . . $ `sys/praatM.h:327:9`!
436 SET_REALcxx . . $ `sys/praatM.h:332:9`! (speckleSize, theCurrentPraatPicture -> speckleSize)
437 DOcxx . . $ `sys/praatM.h:354:9`!
438 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
439 Graphics_setSpeckleSizecxx . . $ Graphics_setSpeckleSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize. = speckleSize);
440 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
441 }
442
443 static void setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (MelderColourcxx . . $ MelderColour# colour) {
444 {// scope
445 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
446 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
447 }
448 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour. =cxx . . $ MelderColour#`operator=`(3ab3c3f6bc5cdda1). colour;
449 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
450 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
451 }
452 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Black) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_BLACKcxx . . $ Melder_BLACK.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
453 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_White) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_WHITEcxx . . $ Melder_WHITE.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
454 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Red) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_REDcxx . . $ Melder_RED.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
455 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Green) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_GREENcxx . . $ Melder_GREEN.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
456 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Blue) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_BLUEcxx . . $ Melder_BLUE.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
457 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Yellow) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_YELLOWcxx . . $ Melder_YELLOW.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
458 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Cyan) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_CYANcxx . . $ Melder_CYAN.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
459 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Magenta) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_MAGENTAcxx . . $ Melder_MAGENTA.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
460 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Maroon) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_MAROONcxx . . $ Melder_MAROON.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
461 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Lime) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_LIMEcxx . . $ Melder_LIME.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
462 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Navy) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_NAVYcxx . . $ Melder_NAVY.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
463 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Teal) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_TEALcxx . . $ Melder_TEAL.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
464 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Purple) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_PURPLEcxx . . $ Melder_PURPLE.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
465 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Olive) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_OLIVEcxx . . $ Melder_OLIVE.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
466 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Pink) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_PINKcxx . . $ Melder_PINK.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
467 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Silver) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_SILVERcxx . . $ Melder_SILVER.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
468 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Grey) { setColourcxx . . $ setColour(2dd9df8dc1ca3bd9). (Melder_GREYcxx . . $ Melder_GREY.); END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`! }
469
470 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Colour, U"Praat picture: Colour", nullptr) {
471 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.0")
472 OKcxx . . $ `sys/praatM.h:327:9`!
473 DOcxx . . $ `sys/praatM.h:354:9`!
474 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
475 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour. =cxx . . $ MelderColour#`operator=`(3ab3c3f6bc5cdda1). colour);
476 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
477 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
478 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
479 }
480
481 #pragma mark - File menu
482
483 FORM_READcxx . . $ `sys/praatM.h:419:9`! (GRAPHICS_Picture_readFromPraatPictureFile, U"Read picture from praat picture file", nullptr, false) {
484 Picture_readFromPraatPictureFilecxx . . $ Picture_readFromPraatPictureFile(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
485 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
486 }
487
488 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToEpsFile, U"Save picture as Encapsulated PostScript file", nullptr, U"praat.eps") {
489 Picture_writeToEpsFilecxx . . $ Picture_writeToEpsFile(c33c9fc5ccd3eeb5). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file, true, false);
490 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
491 }
492
493 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToFontlessEpsFile_xipa, U"Save as fontless EPS file", nullptr, U"praat.eps") {
494 Picture_writeToEpsFilecxx . . $ Picture_writeToEpsFile(c33c9fc5ccd3eeb5). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file, false, false);
495 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
496 }
497
498 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToFontlessEpsFile_silipa, U"Save as fontless EPS file", nullptr, U"praat.eps") {
499 Picture_writeToEpsFilecxx . . $ Picture_writeToEpsFile(c33c9fc5ccd3eeb5). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file, false, true);
500 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
501 }
502
503 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToPdfFile, U"Save as PDF file", nullptr, U"praat.pdf") {
504 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
505 Picture_writeToPdfFilecxx . . $ Picture_writeToPdfFile(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
506 } else {
507 try {
508 //autoPraatPictureOpen picture;
509 autoGraphicscxx . . $ autoGraphics# graphics = Graphics_create_pdffilecxx . . $ Graphics_create_pdffile(10428f15b15d8c5f). (file, 300, undefinedcxx . . $ undefined., 10.24, undefinedcxx . . $ undefined., 7.68);
510 Graphics_playcxx . . $ Graphics_play(381ee972040461e0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, graphics.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
511 } catch (MelderErrorcxx . . $ MelderError#) {
512 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Picture not written to PDF file ", file, U".");
513 }
514 }
515 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
516 }
517
518 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToPngFile_300, U"Save as PNG file", nullptr, U"praat.png") {
519 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
520 Picture_writeToPngFile_300cxx . . $ Picture_writeToPngFile_300(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
521 } else {
522 try {
523 autoGraphicscxx . . $ autoGraphics# graphics = Graphics_create_pngfilecxx . . $ Graphics_create_pngfile(10428f15b15d8c5f). (file, 300, 0.0, 10.24, 0.0, 7.68);
524 Graphics_playcxx . . $ Graphics_play(381ee972040461e0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, graphics.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
525 } catch (MelderErrorcxx . . $ MelderError#) {
526 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Picture not written to PNG file ", file, U".");
527 }
528 }
529 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
530 }
531
532 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToPngFile_600, U"Save as PNG file", nullptr, U"praat.png") {
533 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
534 Picture_writeToPngFile_600cxx . . $ Picture_writeToPngFile_600(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
535 } else {
536 try {
537 autoGraphicscxx . . $ autoGraphics# graphics = Graphics_create_pngfilecxx . . $ Graphics_create_pngfile(10428f15b15d8c5f). (file, 600, 0.0, 10.24, 0.0, 7.68);
538 Graphics_playcxx . . $ Graphics_play(381ee972040461e0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, graphics.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
539 } catch (MelderErrorcxx . . $ MelderError#) {
540 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Picture not written to PNG file ", file, U".");
541 }
542 }
543 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
544 }
545
546
547 FORM_SAVEcxx . . $ `sys/praatM.h:449:9`! (GRAPHICS_Picture_writeToPraatPictureFile, U"Save as Praat picture file", nullptr, U"praat.prapic") {
548 Picture_writeToPraatPictureFilecxx . . $ Picture_writeToPraatPictureFile(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
549 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
550 }
551
552 #ifdef macintosh
553 DIRECT (GRAPHICS_Page_setup) {
554 Printer_pageSetup ();
555 END_NO_NEW_DATA
556 }
557 #endif
558
559 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PostScript_settings, U"PostScript settings", U"PostScript settings...") {
560 #if defined (_WIN32)
561 BOOLEAN (allowDirectPostscript, U"Allow direct PostScript", true);
562 #endif
563 CHOICE_ENUMcxx . . $ `sys/praatM.h:249:9`! (kGraphicsPostscript_spots, greyResolution,
564 U"Grey resolution", kGraphicsPostscript_spots::DEFAULT)
565 #if defined (UNIXcxx . . $ `<built-in>:479:9`!)
566 CHOICE_ENUMcxx . . $ `sys/praatM.h:249:9`! (kGraphicsPostscript_paperSize, paperSize,
567 U"Paper size", kGraphicsPostscript_paperSize::DEFAULT)
568 CHOICE_ENUMcxx . . $ `sys/praatM.h:249:9`! (kGraphicsPostscript_orientation, orientation,
569 U"Orientation", kGraphicsPostscript_orientation::DEFAULT)
570 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (magnification, U"Magnification", U"1.0");
571 #if defined (linuxcxx . . $ `<built-in>:480:9`!)
572 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (printCommand, U"Print command", U"lpr %s", 4)
573 #else
574 TEXTFIELD (printCommand, U"Print command", U"lp -c %s", 4)
575 #endif
576 #endif
577 CHOICE_ENUMcxx . . $ `sys/praatM.h:249:9`! (kGraphicsPostscript_fontChoiceStrategy, fontChoiceStrategy,
578 U"Font choice strategy", kGraphicsPostscript_fontChoiceStrategy::DEFAULT)
579 OKcxx . . $ `sys/praatM.h:327:9`!
580 #if defined (_WIN32)
581 SET_BOOLEAN (allowDirectPostscript, thePrinter. allowDirectPostScript)
582 #endif
583 SET_ENUMcxx . . $ `sys/praatM.h:347:9`! (greyResolution, kGraphicsPostscript_spots, thePrinter. spots)
584 #if defined (UNIXcxx . . $ `<built-in>:479:9`!)
585 SET_ENUMcxx . . $ `sys/praatM.h:347:9`! (paperSize, kGraphicsPostscript_paperSize, thePrinter. paperSize)
586 SET_ENUMcxx . . $ `sys/praatM.h:347:9`! (orientation, kGraphicsPostscript_orientation, thePrinter. orientation)
587 SET_REALcxx . . $ `sys/praatM.h:332:9`! (magnification, thePrinter. magnification)
588 SET_STRINGcxx . . $ `sys/praatM.h:344:9`! (printCommand, Site_getPrintCommand ())
589 #endif
590 SET_ENUMcxx . . $ `sys/praatM.h:347:9`! (fontChoiceStrategy, kGraphicsPostscript_fontChoiceStrategy, thePrinter. fontChoiceStrategy)
591 DOcxx . . $ `sys/praatM.h:354:9`!
592 INFO_NONEcxx . . $ `sys/praatM.h:583:9`!
593 #if defined (_WIN32)
594 thePrinter. allowDirectPostScript = allowDirectPostscript;
595 #endif
596 thePrintercxx . . $ thePrinter.. spotscxx . . $ Printer#spots. = greyResolution;
597 #if defined (UNIXcxx . . $ `<built-in>:479:9`!)
598 thePrintercxx . . $ thePrinter.. paperSizecxx . . $ Printer#paperSize. = paperSize;
599 if (thePrintercxx . . $ thePrinter.. paperSizecxx . . $ Printer#paperSize. == kGraphicsPostscript_paperSizecxx . . $ kGraphicsPostscript_paperSize#::A3cxx . . $ kGraphicsPostscript_paperSize#A3.) {
600 thePrintercxx . . $ thePrinter.. paperWidthcxx . . $ Printer#paperWidth. = 842 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
601 thePrintercxx . . $ thePrinter.. paperHeightcxx . . $ Printer#paperHeight. = 1191 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
602 } else if (thePrintercxx . . $ thePrinter.. paperSizecxx . . $ Printer#paperSize. == kGraphicsPostscript_paperSizecxx . . $ kGraphicsPostscript_paperSize#::US_LETTERcxx . . $ kGraphicsPostscript_paperSize#US_LETTER.) {
603 thePrintercxx . . $ thePrinter.. paperWidthcxx . . $ Printer#paperWidth. = 612 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
604 thePrintercxx . . $ thePrinter.. paperHeightcxx . . $ Printer#paperHeight. = 792 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
605 } else {
606 thePrintercxx . . $ thePrinter.. paperWidthcxx . . $ Printer#paperWidth. = 595 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
607 thePrintercxx . . $ thePrinter.. paperHeightcxx . . $ Printer#paperHeight. = 842 * thePrintercxx . . $ thePrinter.. resolutioncxx . . $ Printer#resolution. / 72;
608 }
609 thePrintercxx . . $ thePrinter.. orientationcxx . . $ Printer#orientation. = orientation;
610 thePrintercxx . . $ thePrinter.. magnificationcxx . . $ Printer#magnification. = magnification;
611 Site_setPrintCommandcxx . . $ Site_setPrintCommand(ff00d524ab0355ec). (printCommand);
612 #endif
613 thePrintercxx . . $ thePrinter.. fontChoiceStrategycxx . . $ Printer#fontChoiceStrategy. = fontChoiceStrategy;
614 INFO_NONE_ENDcxx . . $ `sys/praatM.h:584:9`!
615 }
616
617 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Print) {
618 Picture_printcxx . . $ Picture_print(7c67b8e8e5971dca). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
619 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
620 }
621
622 #ifdef _WIN32
623 FORM_SAVE (GRAPHICS_Picture_writeToWindowsMetafile, U"Save as Windows metafile", nullptr, U"praat.emf") {
624 Picture_writeToWindowsMetafile (praat_picture.get(), file);
625 END_NO_NEW_DATA
626 }
627
628 #endif
629
630 #if defined (_WIN32) || defined (macintosh)
631 DIRECT (GRAPHICS_Copy_picture_to_clipboard) {
632 Picture_copyToClipboard (praat_picture.get());
633 END_NO_NEW_DATA
634 }
635 #endif
636
637 #pragma mark - Edit menu
638
639 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Undo) {
640 Graphics_undoGroupcxx . . $ Graphics_undoGroup(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
641 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
642 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
643 }
644
645 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Erase_all) {
646 //TRACE
647 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
648 tracecxx . . $ `melder/melder_debug.h:60:10`!(1);
649 Picture_erasecxx . . $ Picture_erase(7c67b8e8e5971dca). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()); // this kills the recording
650 } else {
651 tracecxx . . $ `melder/melder_debug.h:60:10`!(2);
652 Graphics_clearRecordingcxx . . $ Graphics_clearRecording(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
653 if (Demo_hasGraphicscxx . . $ Demo_hasGraphics(ce6516af4677a324). (GRAPHICScxx . . $ `sys/praat.h:204:9`!)) {
654 tracecxx . . $ `melder/melder_debug.h:60:10`! (3);
655 Graphics_clearWscxx . . $ Graphics_clearWs(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
656 }
657 }
658 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
659 }
660
661 #pragma mark - World menu
662
663 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Text, U"Praat picture: Text", U"Text...") {
664 REALcxx . . $ `sys/praatM.h:92:9`! (horizontalPosition, U"Horizontal position", U"0.0")
665 OPTIONMENU_ENUMcxx . . $ `sys/praatM.h:262:9`! (kGraphics_horizontalAlignment, horizontalAlignment,
666 U"Horizontal alignment", kGraphics_horizontalAlignment::LEFT)
667 REALcxx . . $ `sys/praatM.h:92:9`! (verticalPosition, U"Vertical position", U"0.0")
668 OPTIONMENUxcxx . . $ `sys/praatM.h:236:9`! (verticalAlignment, U"Vertical alignment", 2, 0)
669 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"bottom")
670 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"half")
671 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"top")
672 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 4)
673 OKcxx . . $ `sys/praatM.h:327:9`!
674 DOcxx . . $ `sys/praatM.h:354:9`!
675 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
676 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalAlignment, verticalAlignment);
677 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
678 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalPosition, verticalPosition, text);
679 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
680 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
681 }
682
683 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextSpecial, U"Praat picture: Text special", nullptr) {
684 REALcxx . . $ `sys/praatM.h:92:9`! (horizontalPosition, U"Horizontal position", U"0.0")
685 OPTIONMENU_ENUMcxx . . $ `sys/praatM.h:262:9`! (kGraphics_horizontalAlignment, horizontalAlignment,
686 U"Horizontal alignment", kGraphics_horizontalAlignment::LEFT)
687 REALcxx . . $ `sys/praatM.h:92:9`! (verticalPosition, U"Vertical position", U"0.0")
688 OPTIONMENUxcxx . . $ `sys/praatM.h:236:9`! (verticalAlignment, U"Vertical alignment", 2, 0)
689 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"bottom")
690 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"half")
691 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"top")
692 OPTIONMENU_ENUMcxx . . $ `sys/praatM.h:262:9`! (kGraphics_font, font, U"Font", kGraphics_font::DEFAULT)
693 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (fontSize, U"Font size", U"10")
694 SENTENCEcxx . . $ `sys/praatM.h:126:9`! (rotation, U"Rotation (degrees or dx;dy)", U"0")
695 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 4)
696 OKcxx . . $ `sys/praatM.h:327:9`!
697 DOcxx . . $ `sys/praatM.h:354:9`!
698 kGraphics_fontcxx . . $ kGraphics_font# currentFont = Graphics_inqFontcxx . . $ Graphics_inqFont(c011b18e9bbd50c8). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
699 const double currentSize = Graphics_inqFontSizecxx . . $ Graphics_inqFontSize(f906975acce41a59). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
700 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
701 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalAlignment, verticalAlignment);
702 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
703 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, (kGraphics_fontcxx . . $ kGraphics_font#) font);
704 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fontSize);
705 const char32cxx . . $ char32# *semicolon = str32chrcxx . . $ str32chr(328a9ede0fba853a). (rotation, ';');
706 if (semicolon) {
707 conststring32cxx . . $ conststring32# dx = rotation, dy = semicolon + 1;
708 Graphics_setTextRotation_vectorcxx . . $ Graphics_setTextRotation_vector(c84ba9158791aef6). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (dx), Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (dy));
709 } else {
710 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, Melder_atofcxx . . $ Melder_atof(13d725aae188c0cd). (rotation));
711 }
712 Graphics_textcxx . . $ Graphics_text(8e1820bb471fc8c8). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalPosition, verticalPosition, text);
713 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, currentFont);
714 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, currentSize);
715 Graphics_setTextRotationcxx . . $ Graphics_setTextRotation(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, 0.0);
716 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
717 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
718 }
719
720 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_RectangleText_MaximalFit, U"Praat picture: Rectangle text (maximal fit)", nullptr) {
721 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
722 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
723 OPTIONMENU_ENUMcxx . . $ `sys/praatM.h:262:9`! (kGraphics_horizontalAlignment, horizontalAlignment,
724 U"Horizontal alignment", kGraphics_horizontalAlignment::LEFT)
725 REALcxx . . $ `sys/praatM.h:92:9`! (minimumHorizontalMargin_in_textHeights, U"Minimal horizontal margin (in text heights)", U"0.10")
726 REALcxx . . $ `sys/praatM.h:92:9`! (minimumHorizontalMargin_mm, U"Minimal horizontal margin (mm)", U"0.5")
727 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
728 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
729 OPTIONMENUxcxx . . $ `sys/praatM.h:236:9`! (verticalAlignment, U"Vertical alignment", 2, 0)
730 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"bottom")
731 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"half")
732 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"top")
733 REALcxx . . $ `sys/praatM.h:92:9`! (minimumVerticalMargin_in_textHeights, U"Minimal vertical margin (in text heights)", U"0.18")
734 REALcxx . . $ `sys/praatM.h:92:9`! (minimumVerticalMargin_mm, U"Minimal vertical margin (mm)", U"0.25")
735 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 4)
736 OKcxx . . $ `sys/praatM.h:327:9`!
737 DOcxx . . $ `sys/praatM.h:354:9`!
738 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
739 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalAlignment, verticalAlignment);
740 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
741 Graphics_rectangleText_maximalFitcxx . . $ Graphics_rectangleText_maximalFit(b1509f86b4e96d1). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, minimumHorizontalMargin_in_textHeights, minimumHorizontalMargin_mm,
742 fromY, toY, minimumVerticalMargin_in_textHeights, minimumVerticalMargin_mm, text);
743 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
744 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
745 }
746
747 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_RectangleText_WrapAndTruncate, U"Praat picture: Rectangle text (wrap & truncate)", nullptr) {
748 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
749 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
750 OPTIONMENU_ENUMcxx . . $ `sys/praatM.h:262:9`! (kGraphics_horizontalAlignment, horizontalAlignment,
751 U"Horizontal alignment", kGraphics_horizontalAlignment::LEFT)
752 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
753 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
754 OPTIONMENUxcxx . . $ `sys/praatM.h:236:9`! (verticalAlignment, U"Vertical alignment", 2, 0)
755 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"bottom")
756 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"half")
757 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"top")
758 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 4)
759 OKcxx . . $ `sys/praatM.h:327:9`!
760 DOcxx . . $ `sys/praatM.h:354:9`!
761 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
762 Graphics_setTextAlignmentcxx . . $ Graphics_setTextAlignment(a697afee548943ae). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, horizontalAlignment, verticalAlignment);
763 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
764 Graphics_rectangleText_wrapAndTruncatecxx . . $ Graphics_rectangleText_wrapAndTruncate(fc0676218053a650). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY, text);
765 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
766 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
767 }
768
769 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawLine, U"Praat picture: Draw line", nullptr) {
770 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
771 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
772 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
773 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
774 OKcxx . . $ `sys/praatM.h:327:9`!
775 DOcxx . . $ `sys/praatM.h:354:9`!
776 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
777 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
778 Graphics_linecxx . . $ Graphics_line(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, fromY, toX, toY);
779 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
780 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
781 }
782
783 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawArrow, U"Praat picture: Draw arrow", nullptr) {
784 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
785 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
786 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
787 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
788 OKcxx . . $ `sys/praatM.h:327:9`!
789 DOcxx . . $ `sys/praatM.h:354:9`!
790 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
791 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
792 Graphics_arrowcxx . . $ Graphics_arrow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, fromY, toX, toY);
793 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
794 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
795 }
796
797 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawDoubleArrow, U"Praat picture: Draw double arrow", nullptr) {
798 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
799 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
800 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
801 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
802 OKcxx . . $ `sys/praatM.h:327:9`!
803 DOcxx . . $ `sys/praatM.h:354:9`!
804 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
805 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
806 Graphics_doubleArrowcxx . . $ Graphics_doubleArrow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, fromY, toX, toY);
807 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
808 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
809 }
810
811 Thing_definecxx . . $ `sys/Thing.h:60:9`! (PraatPictureFunction, Daata) {
812 // new data:
813 public:
814 double xmincxx . . $ structPraatPictureFunction#xmin., xmaxcxx . . $ structPraatPictureFunction#xmax., dxcxx . . $ structPraatPictureFunction#dx., x1cxx . . $ structPraatPictureFunction#x1.;
815 integercxx . . $ integer# nxcxx . . $ structPraatPictureFunction#nx.;
816 // overridden methods:
817 virtual bool v_hasGetXmincxx . . $ structPraatPictureFunction#v_hasGetXmin(50ce9a9e25b4a850). () const { return true; } virtual double v_getXmincxx . . $ structPraatPictureFunction#v_getXmin(21b6c25e127938e2). () const { return xmincxx . . $ structPraatPictureFunction#xmin.; }
818 virtual bool v_hasGetXmaxcxx . . $ structPraatPictureFunction#v_hasGetXmax(50ce9a9e25b4a850). () const { return true; } virtual double v_getXmaxcxx . . $ structPraatPictureFunction#v_getXmax(21b6c25e127938e2). () const { return xmaxcxx . . $ structPraatPictureFunction#xmax.; }
819 virtual bool v_hasGetNxcxx . . $ structPraatPictureFunction#v_hasGetNx(50ce9a9e25b4a850). () const { return true; } virtual double v_getNxcxx . . $ structPraatPictureFunction#v_getNx(21b6c25e127938e2). () const { return nxcxx . . $ structPraatPictureFunction#nx.; }
820 virtual bool v_hasGetDxcxx . . $ structPraatPictureFunction#v_hasGetDx(50ce9a9e25b4a850). () const { return true; } virtual double v_getDxcxx . . $ structPraatPictureFunction#v_getDx(21b6c25e127938e2). () const { return dxcxx . . $ structPraatPictureFunction#dx.; }
821 virtual bool v_hasGetXcxx . . $ structPraatPictureFunction#v_hasGetX(50ce9a9e25b4a850). () const { return true; } virtual double v_getXcxx . . $ structPraatPictureFunction#v_getX(9db9ea2d2e621dac). (integercxx . . $ integer# ix) const { return x1cxx . . $ structPraatPictureFunction#x1. + (ix - 1) * dxcxx . . $ structPraatPictureFunction#dx.; }
822 };
823 Thing_implementcxx . . $ `sys/Thing.h:65:9`! (PraatPictureFunction, Daata, 0);
824
825 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawFunction, U"Praat picture: Draw function", nullptr) {
826 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"This command assumes that the x and y axes")
827 COMMENTcxx . . $ `sys/praatM.h:136:9`! (U"have been set by a Draw command or by \"Axes...\".")
828 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
829 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"0.0 (= all)")
830 NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfHorizontalSteps, U"Number of horizontal steps", U"1000")
831 FORMULAcxx . . $ `sys/praatM.h:148:9`! (formula, U"Formula", U"x^2 - x^4")
832 OKcxx . . $ `sys/praatM.h:327:9`!
833 DOcxx . . $ `sys/praatM.h:354:9`!
834 if (numberOfHorizontalSteps < 2)
835 return;
836 double x1WC, x2WC, y1WC, y2WC;
837 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
838 if (fromX == toX) {
839 fromX = x1WC;
840 toX = x2WC;
841 }
842 autoVECcxx . . $ autoVEC# y = raw_VECcxx . . $ raw_VEC(e4395f764b859b1e). (numberOfHorizontalSteps);
843 autoPraatPictureFunctioncxx . . $ autoPraatPictureFunction# function = Thing_newcxx . . $ `sys/Thing.h:514:9`! (PraatPictureFunction);
844 function ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). xmincxx . . $ structPraatPictureFunction#xmin. = x1WC;
845 function ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). xmaxcxx . . $ structPraatPictureFunction#xmax. = x2WC;
846 function ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). nxcxx . . $ structPraatPictureFunction#nx. = numberOfHorizontalSteps;
847 function ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). x1cxx . . $ structPraatPictureFunction#x1. = fromX;
848 function ->cxx . . $ autoSomeThing#`operator->`(34d6acfd341ba7ab). dxcxx . . $ structPraatPictureFunction#dx. = (toX - fromX) / (numberOfHorizontalSteps - 1);
849 Formula_compilecxx . . $ Formula_compile(3f9bc12732facfd). (interpreter, function.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), formula, kFormula_EXPRESSION_TYPE_NUMERICcxx . . $ `sys/Formula.h:24:9`!, true);
850 Formula_Resultcxx . . $ Formula_Result# resultcxx . . $ Formula_Result#Formula_Result(49f6e7a06ebc5aa8).;
851 for (integercxx . . $ integer# i = 1; i <= numberOfHorizontalSteps; i ++) {
852 Formula_runcxx . . $ Formula_run(4cd939002183d562). (1, i, & result);
853 y [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).i] = result. numericResultcxx . . $ Formula_Result#numericResult.;
854 }
855 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
856 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
857 Graphics_functioncxx . . $ Graphics_function(1c6279e2c8b8beb1). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & y [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).0], 1, numberOfHorizontalSteps, fromX, toX);
858 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
859 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
860 }
861
862 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawRectangle, U"Praat picture: Draw rectangle", nullptr) {
863 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
864 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
865 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
866 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
867 OKcxx . . $ `sys/praatM.h:327:9`!
868 DOcxx . . $ `sys/praatM.h:354:9`!
869 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
870 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
871 Graphics_rectanglecxx . . $ Graphics_rectangle(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY);
872 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
873 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
874 }
875
876 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PaintRectangle, U"Praat picture: Paint rectangle", nullptr) {
877 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.5")
878 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
879 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
880 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
881 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
882 OKcxx . . $ `sys/praatM.h:327:9`!
883 DOcxx . . $ `sys/praatM.h:354:9`!
884 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
885 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
886 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
887 Graphics_fillRectanglecxx . . $ Graphics_fillRectangle(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY);
888 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
889 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
890 }
891
892 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawRoundedRectangle, U"Praat picture: Draw rounded rectangle", nullptr) {
893 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
894 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
895 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
896 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
897 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (radius, U"Radius (mm)", U"3.0")
898 OKcxx . . $ `sys/praatM.h:327:9`!
899 DOcxx . . $ `sys/praatM.h:354:9`!
900 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
901 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
902 Graphics_roundedRectanglecxx . . $ Graphics_roundedRectangle(9d9e8b5bd1d9d21f). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY, radius);
903 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
904 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
905 }
906
907 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PaintRoundedRectangle, U"Praat picture: Paint rounded rectangle", nullptr) {
908 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.5")
909 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
910 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
911 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
912 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
913 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (radius, U"Radius (mm)", U"3.0")
914 OKcxx . . $ `sys/praatM.h:327:9`!
915 DOcxx . . $ `sys/praatM.h:354:9`!
916 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
917 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
918 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
919 Graphics_fillRoundedRectanglecxx . . $ Graphics_fillRoundedRectangle(9d9e8b5bd1d9d21f). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY, radius);
920 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
921 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
922 }
923
924 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawArc, U"Praat picture: Draw arc", nullptr) {
925 REALcxx . . $ `sys/praatM.h:92:9`! (centreX, U"Centre x", U"0.0")
926 REALcxx . . $ `sys/praatM.h:92:9`! (centreY, U"Centre y", U"0.0")
927 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (radius, U"Radius (along x)", U"1.0")
928 REALcxx . . $ `sys/praatM.h:92:9`! (fromAngle, U"From angle (degrees)", U"0.0")
929 REALcxx . . $ `sys/praatM.h:92:9`! (toAngle, U"To angle (degrees)", U"90.0")
930 OKcxx . . $ `sys/praatM.h:327:9`!
931 DOcxx . . $ `sys/praatM.h:354:9`!
932 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
933 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
934 Graphics_arccxx . . $ Graphics_arc(9d9e8b5bd1d9d21f). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, centreX, centreY, radius, fromAngle, toAngle);
935 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
936 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
937 }
938
939 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawEllipse, U"Praat picture: Draw ellipse", nullptr) {
940 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
941 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
942 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
943 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
944 OKcxx . . $ `sys/praatM.h:327:9`!
945 DOcxx . . $ `sys/praatM.h:354:9`!
946 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
947 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
948 Graphics_ellipsecxx . . $ Graphics_ellipse(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY);
949 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
950 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
951 }
952
953 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PaintEllipse, U"Praat picture: Paint ellipse", nullptr) {
954 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.5")
955 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
956 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
957 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
958 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
959 OKcxx . . $ `sys/praatM.h:327:9`!
960 DOcxx . . $ `sys/praatM.h:354:9`!
961 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
962 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
963 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
964 Graphics_fillEllipsecxx . . $ Graphics_fillEllipse(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fromX, toX, fromY, toY);
965 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
966 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
967 }
968
969 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawCircle, U"Praat picture: Draw circle", nullptr) {
970 REALcxx . . $ `sys/praatM.h:92:9`! (centreX, U"Centre x", U"0.0")
971 REALcxx . . $ `sys/praatM.h:92:9`! (centreY, U"Centre y", U"0.0")
972 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (radius, U"Radius (along x)", U"1.0")
973 OKcxx . . $ `sys/praatM.h:327:9`!
974 DOcxx . . $ `sys/praatM.h:354:9`!
975 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
976 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
977 Graphics_circlecxx . . $ Graphics_circle(8752bb7a78272ca7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, centreX, centreY, radius);
978 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
979 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
980 }
981
982 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PaintCircle, U"Praat picture: Paint circle", nullptr) {
983 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.5")
984 REALcxx . . $ `sys/praatM.h:92:9`! (centreX, U"Centre x", U"0.0")
985 REALcxx . . $ `sys/praatM.h:92:9`! (centreY, U"Centre y", U"0.0")
986 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (radius, U"Radius (along x)", U"1.0")
987 OKcxx . . $ `sys/praatM.h:327:9`!
988 DOcxx . . $ `sys/praatM.h:354:9`!
989 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
990 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
991 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
992 Graphics_fillCirclecxx . . $ Graphics_fillCircle(8752bb7a78272ca7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, centreX, centreY, radius);
993 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
994 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
995 }
996
997 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_DrawCircle_mm, U"Praat picture: Draw circle (mm)", nullptr) {
998 REALcxx . . $ `sys/praatM.h:92:9`! (centreX, U"Centre x", U"0.0")
999 REALcxx . . $ `sys/praatM.h:92:9`! (centreY, U"Centre y", U"0.0")
1000 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (diameter, U"Diameter (mm)", U"5.0")
1001 OKcxx . . $ `sys/praatM.h:327:9`!
1002 DOcxx . . $ `sys/praatM.h:354:9`!
1003 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1004 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1005 Graphics_circle_mmcxx . . $ Graphics_circle_mm(8752bb7a78272ca7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, centreX, centreY, diameter);
1006 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1007 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1008 }
1009
1010 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PaintCircle_mm, U"Praat picture: Paint circle (mm)", nullptr) {
1011 COLOURcxx . . $ `sys/praatM.h:319:9`! (colour, U"Colour (0-1, name, or {r,g,b})", U"0.5")
1012 REALcxx . . $ `sys/praatM.h:92:9`! (centreX, U"Centre x", U"0.0")
1013 REALcxx . . $ `sys/praatM.h:92:9`! (centreY, U"Centre y", U"0.0")
1014 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (diameter, U"Diameter (mm)", U"5.0")
1015 OKcxx . . $ `sys/praatM.h:327:9`!
1016 DOcxx . . $ `sys/praatM.h:354:9`!
1017 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1018 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1019 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, colour);
1020 Graphics_fillCircle_mmcxx . . $ Graphics_fillCircle_mm(8752bb7a78272ca7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, centreX, centreY, diameter);
1021 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1022 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1023 }
1024
1025 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_InsertPictureFromFile, U"Praat picture: Insert picture from file", U"Insert picture from file...") {
1026 INFILEcxx . . $ `sys/praatM.h:152:9`! (fileName, U"File name", U"~/Desktop/paul.jpg")
1027 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
1028 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
1029 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
1030 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
1031 OKcxx . . $ `sys/praatM.h:327:9`!
1032 DOcxx . . $ `sys/praatM.h:354:9`!
1033 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1034 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1035 Graphics_imageFromFilecxx . . $ Graphics_imageFromFile(9b328aacbdc4d4bc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fileName, fromX, toX, fromY, toY);
1036 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1037 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1038 }
1039
1040 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_InsertPictureFromFile_embedded, U"Praat picture: Insert picture from file (embedded)", U"Insert picture from file (embedded)...") {
1041 INFILEcxx . . $ `sys/praatM.h:152:9`! (fileName, U"File name", U"~/Desktop/paul.jpg")
1042 REALcxx . . $ `sys/praatM.h:92:9`! (fromX, U"From x", U"0.0")
1043 REALcxx . . $ `sys/praatM.h:92:9`! (toX, U"To x", U"1.0")
1044 REALcxx . . $ `sys/praatM.h:92:9`! (fromY, U"From y", U"0.0")
1045 REALcxx . . $ `sys/praatM.h:92:9`! (toY, U"To y", U"1.0")
1046 OKcxx . . $ `sys/praatM.h:327:9`!
1047 DOcxx . . $ `sys/praatM.h:354:9`!
1048 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1049 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1050 Graphics_imageFromFile_embeddedcxx . . $ Graphics_imageFromFile_embedded(9b328aacbdc4d4bc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, fileName, fromX, toX, fromY, toY);
1051 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1052 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1053 }
1054
1055 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_Axes, U"Praat picture: Axes", U"Axes...") {
1056 REALcxx . . $ `sys/praatM.h:92:9`! (left, U"left Left and right", U"0.0")
1057 REALcxx . . $ `sys/praatM.h:92:9`! (right, U"right Left and right", U"1.0")
1058 REALcxx . . $ `sys/praatM.h:92:9`! (bottom, U"left Bottom and top", U"0.0")
1059 REALcxx . . $ `sys/praatM.h:92:9`! (top, U"right Bottom and top", U"1.0")
1060 OKcxx . . $ `sys/praatM.h:327:9`!
1061 double x1WC, x2WC, y1WC, y2WC;
1062 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1063 SET_REALcxx . . $ `sys/praatM.h:332:9`! (left, x1WC)
1064 SET_REALcxx . . $ `sys/praatM.h:332:9`! (right, x2WC)
1065 SET_REALcxx . . $ `sys/praatM.h:332:9`! (bottom, y1WC)
1066 SET_REALcxx . . $ `sys/praatM.h:332:9`! (top, y2WC)
1067 DOcxx . . $ `sys/praatM.h:354:9`!
1068 if (left == right)
1069 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Left and right should not be equal.");
1070 if (top == bottom)
1071 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"Top and bottom should not be equal.");
1072 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1073 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, left, right, bottom, top);
1074 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1075 }
1076
1077 #pragma mark - Margins menu
1078
1079 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_DrawInnerBox) {
1080 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1081 Graphics_drawInnerBoxcxx . . $ Graphics_drawInnerBox(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1082 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1083 }
1084
1085 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextLeft, U"Praat picture: Text left", U"Text left/right/top/bottom...") {
1086 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (farr, U"Far", true)
1087 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 3)
1088 OKcxx . . $ `sys/praatM.h:327:9`!
1089 DOcxx . . $ `sys/praatM.h:354:9`!
1090 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1091 Graphics_textLeftcxx . . $ Graphics_textLeft(48cf1f690ec61203). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, farr, text);
1092 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1093 }
1094
1095 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextRight, U"Praat picture: Text right", U"Text left/right/top/bottom...") {
1096 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (farr, U"Far", true)
1097 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 3)
1098 OKcxx . . $ `sys/praatM.h:327:9`!
1099 DOcxx . . $ `sys/praatM.h:354:9`!
1100 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1101 Graphics_textRightcxx . . $ Graphics_textRight(48cf1f690ec61203). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, farr, text);
1102 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1103 }
1104
1105 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextTop, U"Praat picture: Text top", U"Text left/right/top/bottom...") {
1106 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (farr, U"Far", true)
1107 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 3)
1108 OKcxx . . $ `sys/praatM.h:327:9`!
1109 DOcxx . . $ `sys/praatM.h:354:9`!
1110 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1111 Graphics_textTopcxx . . $ Graphics_textTop(48cf1f690ec61203). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, farr, text);
1112 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1113 }
1114
1115 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextBottom, U"Praat picture: Text bottom", U"Text left/right/top/bottom...") {
1116 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (farr, U"Far", true)
1117 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"", 3)
1118 OKcxx . . $ `sys/praatM.h:327:9`!
1119 DOcxx . . $ `sys/praatM.h:354:9`!
1120 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1121 Graphics_textBottomcxx . . $ Graphics_textBottom(48cf1f690ec61203). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, farr, text);
1122 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1123 }
1124
1125 #define FIELDS_MARKS_EVERYcxx . . $ `sys/praat_picture.cpp:1125:9`! \
1126 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (units, U"Units", U"1.0") \
1127 POSITIVEcxx . . $ `sys/praatM.h:104:9`! (distance, U"Distance", U"0.1") \
1128 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumbers, U"Write numbers", true) \
1129 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTicks, U"Draw ticks", true) \
1130 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLines, U"Draw dotted lines", true)
1131
1132 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksLeftEvery, U"Praat picture: Marks left every...", U"Marks left/right/top/bottom every...") {
1133 FIELDS_MARKS_EVERYcxx . . $ `sys/praat_picture.cpp:1125:9`!
1134 OKcxx . . $ `sys/praatM.h:327:9`!
1135 DOcxx . . $ `sys/praatM.h:354:9`!
1136 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1137 Graphics_marksLeftEverycxx . . $ Graphics_marksLeftEvery(d1b58b4f93ec67ea). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, units, distance, writeNumbers, drawTicks, drawDottedLines);
1138 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1139 }
1140
1141 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksRightEvery, U"Praat picture: Marks right every...", U"Marks left/right/top/bottom every...") {
1142 FIELDS_MARKS_EVERYcxx . . $ `sys/praat_picture.cpp:1125:9`!
1143 OKcxx . . $ `sys/praatM.h:327:9`!
1144 DOcxx . . $ `sys/praatM.h:354:9`!
1145 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1146 Graphics_marksRightEverycxx . . $ Graphics_marksRightEvery(d1b58b4f93ec67ea). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, units, distance, writeNumbers, drawTicks, drawDottedLines);
1147 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1148 }
1149
1150 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksBottomEvery, U"Praat picture: Marks bottom every...", U"Marks left/right/top/bottom every...") {
1151 FIELDS_MARKS_EVERYcxx . . $ `sys/praat_picture.cpp:1125:9`!
1152 OKcxx . . $ `sys/praatM.h:327:9`!
1153 DOcxx . . $ `sys/praatM.h:354:9`!
1154 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1155 Graphics_marksBottomEverycxx . . $ Graphics_marksBottomEvery(d1b58b4f93ec67ea). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, units, distance, writeNumbers, drawTicks, drawDottedLines);
1156 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1157 }
1158
1159 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksTopEvery, U"Praat picture: Marks top every...", U"Marks left/right/top/bottom every...") {
1160 FIELDS_MARKS_EVERYcxx . . $ `sys/praat_picture.cpp:1125:9`!
1161 OKcxx . . $ `sys/praatM.h:327:9`!
1162 DOcxx . . $ `sys/praatM.h:354:9`!
1163 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1164 Graphics_marksTopEverycxx . . $ Graphics_marksTopEvery(d1b58b4f93ec67ea). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, units, distance, writeNumbers, drawTicks, drawDottedLines);
1165 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1166 }
1167
1168 #define FIELDS_MARKScxx . . $ `sys/praat_picture.cpp:1168:9`! \
1169 NATURALcxx . . $ `sys/praatM.h:120:9`! (numberOfMarks, U"Number of marks", U"6") \
1170 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumbers, U"Write numbers", true) \
1171 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTicks, U"Draw ticks", true) \
1172 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLines, U"Draw dotted lines", true)
1173
1174 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksLeft, U"Praat picture: Marks left", U"Marks left/right/top/bottom...") {
1175 FIELDS_MARKScxx . . $ `sys/praat_picture.cpp:1168:9`!
1176 OKcxx . . $ `sys/praatM.h:327:9`!
1177 DOcxx . . $ `sys/praatM.h:354:9`!
1178 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1179 if (numberOfMarks < 2)
1180 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The number of marks should be at least 2.");
1181 Graphics_marksLeftcxx . . $ Graphics_marksLeft(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, numberOfMarks, writeNumbers, drawTicks, drawDottedLines);
1182 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1183 }
1184
1185 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksRight, U"Praat picture: Marks right", U"Marks left/right/top/bottom...") {
1186 FIELDS_MARKScxx . . $ `sys/praat_picture.cpp:1168:9`!
1187 OKcxx . . $ `sys/praatM.h:327:9`!
1188 DOcxx . . $ `sys/praatM.h:354:9`!
1189 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1190 if (numberOfMarks < 2)
1191 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The number of marks should be at least 2.");
1192 Graphics_marksRightcxx . . $ Graphics_marksRight(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, numberOfMarks, writeNumbers, drawTicks, drawDottedLines);
1193 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1194 }
1195
1196 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksBottom, U"Praat picture: Marks bottom", U"Marks left/right/top/bottom...") {
1197 FIELDS_MARKScxx . . $ `sys/praat_picture.cpp:1168:9`!
1198 OKcxx . . $ `sys/praatM.h:327:9`!
1199 DOcxx . . $ `sys/praatM.h:354:9`!
1200 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1201 if (numberOfMarks < 2)
1202 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The number of marks should be at least 2.");
1203 Graphics_marksBottomcxx . . $ Graphics_marksBottom(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, numberOfMarks, writeNumbers, drawTicks, drawDottedLines);
1204 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1205 }
1206
1207 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_MarksTop, U"Praat picture: Marks top", U"Marks left/right/top/bottom...") {
1208 FIELDS_MARKScxx . . $ `sys/praat_picture.cpp:1168:9`!
1209 OKcxx . . $ `sys/praatM.h:327:9`!
1210 DOcxx . . $ `sys/praatM.h:354:9`!
1211 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1212 if (numberOfMarks < 2)
1213 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"The number of marks should be at least 2.");
1214 Graphics_marksTopcxx . . $ Graphics_marksTop(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, numberOfMarks, writeNumbers, drawTicks, drawDottedLines);
1215 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1216 }
1217
1218 #define FIELDS_MARKS_LOGARITHMICcxx . . $ `sys/praat_picture.cpp:1218:9`! \
1219 NATURALcxx . . $ `sys/praatM.h:120:9`! (marksPerDecade, U"Marks per decade", U"3") \
1220 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumbers, U"Write numbers", true) \
1221 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTicks, U"Draw ticks", true) \
1222 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLines, U"Draw dotted lines", true)
1223
1224 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_LogarithmicMarksLeft, U"Praat picture: Logarithmic marks left", U"Logarithmic marks left/right/top/bottom...") {
1225 FIELDS_MARKS_LOGARITHMICcxx . . $ `sys/praat_picture.cpp:1218:9`!
1226 OKcxx . . $ `sys/praatM.h:327:9`!
1227 DOcxx . . $ `sys/praatM.h:354:9`!
1228 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1229 Graphics_marksLeftLogarithmiccxx . . $ Graphics_marksLeftLogarithmic(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, marksPerDecade, writeNumbers, drawTicks, drawDottedLines);
1230 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1231 }
1232
1233 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_LogarithmicMarksRight, U"Praat picture: Logarithmic marks right", U"Logarithmic marks left/right/top/bottom...") {
1234 FIELDS_MARKS_LOGARITHMICcxx . . $ `sys/praat_picture.cpp:1218:9`!
1235 OKcxx . . $ `sys/praatM.h:327:9`!
1236 DOcxx . . $ `sys/praatM.h:354:9`!
1237 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1238 Graphics_marksRightLogarithmiccxx . . $ Graphics_marksRightLogarithmic(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, marksPerDecade, writeNumbers, drawTicks, drawDottedLines);
1239 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1240 }
1241
1242 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_LogarithmicMarksBottom, U"Praat picture: Logarithmic marks bottom", U"Logarithmic marks left/right/top/bottom...") {
1243 FIELDS_MARKS_LOGARITHMICcxx . . $ `sys/praat_picture.cpp:1218:9`!
1244 OKcxx . . $ `sys/praatM.h:327:9`!
1245 DOcxx . . $ `sys/praatM.h:354:9`!
1246 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1247 Graphics_marksBottomLogarithmiccxx . . $ Graphics_marksBottomLogarithmic(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, marksPerDecade, writeNumbers, drawTicks, drawDottedLines);
1248 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1249 }
1250
1251 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_LogarithmicMarksTop, U"Praat picture: Logarithmic marks top", U"Logarithmic marks left/right/top/bottom...") {
1252 FIELDS_MARKS_LOGARITHMICcxx . . $ `sys/praat_picture.cpp:1218:9`!
1253 OKcxx . . $ `sys/praatM.h:327:9`!
1254 DOcxx . . $ `sys/praatM.h:354:9`!
1255 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1256 Graphics_marksTopLogarithmiccxx . . $ Graphics_marksTopLogarithmic(c3a11a8a55b243ff). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, marksPerDecade, writeNumbers, drawTicks, drawDottedLines);
1257 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1258 }
1259
1260 static void sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (double *x1WC, double *x2WC, double *y1WC, double *y2WC) {
1261 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (x1WC, x2WC);
1262 Melder_sortcxx . . $ Melder_sort(80e3bfca93a78d58). (y1WC, y2WC);
1263 }
1264
1265 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneMarkLeft, U"Praat picture: One mark left", U"One mark left/right/top/bottom...") {
1266 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"0.0")
1267 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", true)
1268 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", true)
1269 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", true)
1270 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1271 OKcxx . . $ `sys/praatM.h:327:9`!
1272 DOcxx . . $ `sys/praatM.h:354:9`!
1273 double x1WC, x2WC, y1WC, y2WC;
1274 {// scope
1275 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1276 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1277 }
1278 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1279 const double dy = 0.2 * (y2WC - y1WC);
1280 if (position < y1WC - dy || position > y2WC + dy)
1281 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", y1WC, U" and ", y2WC, U".");
1282 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1283 Graphics_markLeftcxx . . $ Graphics_markLeft(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1284 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1285 }
1286
1287 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneMarkRight, U"Praat picture: One mark right", U"One mark left/right/top/bottom...") {
1288 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"0.0")
1289 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", true)
1290 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", true)
1291 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", true)
1292 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1293 OKcxx . . $ `sys/praatM.h:327:9`!
1294 DOcxx . . $ `sys/praatM.h:354:9`!
1295 double x1WC, x2WC, y1WC, y2WC;
1296 {// scope
1297 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1298 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1299 }
1300 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1301 const double dy = 0.2 * (y2WC - y1WC);
1302 if (position < y1WC - dy || position > y2WC + dy)
1303 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", y1WC, U" and ", y2WC, U".");
1304 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1305 Graphics_markRightcxx . . $ Graphics_markRight(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1306 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1307 }
1308
1309 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneMarkTop, U"Praat picture: One mark top", U"One mark left/right/top/bottom...") {
1310 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"0.0")
1311 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", true)
1312 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", true)
1313 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", true)
1314 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1315 OKcxx . . $ `sys/praatM.h:327:9`!
1316 DOcxx . . $ `sys/praatM.h:354:9`!
1317 double x1WC, x2WC, y1WC, y2WC;
1318 {// scope
1319 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).; // WHY?
1320 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1321 }
1322 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1323 const double dx = 0.2 * (x2WC - x1WC);
1324 if (position < x1WC - dx || position > x2WC + dx)
1325 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", x1WC, U" and ", x2WC, U".");
1326 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1327 Graphics_markTopcxx . . $ Graphics_markTop(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1328 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1329 }
1330
1331 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneMarkBottom, U"Praat picture: One mark bottom", U"One mark left/right/top/bottom...") {
1332 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"0.0")
1333 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", true)
1334 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", true)
1335 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", true)
1336 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1337 OKcxx . . $ `sys/praatM.h:327:9`!
1338 DOcxx . . $ `sys/praatM.h:354:9`!
1339 double x1WC, x2WC, y1WC, y2WC;
1340 {// scope
1341 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1342 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1343 }
1344 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1345 const double dx = 0.2 * (x2WC - x1WC);
1346 if (position < x1WC - dx || position > x2WC + dx)
1347 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", x1WC, U" and ", x2WC, U".");
1348 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1349 Graphics_markBottomcxx . . $ Graphics_markBottom(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1350 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1351 }
1352
1353 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneLogarithmicMarkLeft, U"Praat picture: One logarithmic mark left", U"One logarithmic mark left/right/top/bottom...") {
1354 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"1.0")
1355 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", 1)
1356 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", 1)
1357 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", 1)
1358 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1359 OKcxx . . $ `sys/praatM.h:327:9`!
1360 DOcxx . . $ `sys/praatM.h:354:9`!
1361 double x1WC, x2WC, y1WC, y2WC;
1362 {// scope
1363 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1364 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1365 }
1366 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1367 const double dy = 0.2 * (y2WC - y1WC);
1368 if (position < powcxx . . $ pow(9454dda30a4b8335). (10, y1WC - dy) || position > powcxx . . $ pow(9454dda30a4b8335). (10, y2WC + dy))
1369 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", pow (10, y1WC), U" and ", pow (10, y2WC), U".");
1370 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1371 Graphics_markLeftLogarithmiccxx . . $ Graphics_markLeftLogarithmic(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1372 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1373 }
1374
1375 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneLogarithmicMarkRight, U"Praat picture: One logarithmic mark right", U"One logarithmic mark left/right/top/bottom...") {
1376 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"1.0")
1377 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", 1)
1378 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", 1)
1379 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", 1)
1380 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1381 OKcxx . . $ `sys/praatM.h:327:9`!
1382 DOcxx . . $ `sys/praatM.h:354:9`!
1383 double x1WC, x2WC, y1WC, y2WC;
1384 {// scope
1385 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1386 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1387 }
1388 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1389 const double dy = 0.2 * (y2WC - y1WC);
1390 if (position < powcxx . . $ pow(9454dda30a4b8335). (10, y1WC - dy) || position > powcxx . . $ pow(9454dda30a4b8335). (10, y2WC + dy))
1391 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", pow (10, y1WC), U" and ", pow (10, y2WC), U".");
1392 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1393 Graphics_markRightLogarithmiccxx . . $ Graphics_markRightLogarithmic(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1394 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1395 }
1396
1397 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneLogarithmicMarkTop, U"Praat picture: One logarithmic mark top", U"One logarithmic mark left/right/top/bottom...") {
1398 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"1.0")
1399 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", 1)
1400 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", 1)
1401 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", 1)
1402 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1403 OKcxx . . $ `sys/praatM.h:327:9`!
1404 DOcxx . . $ `sys/praatM.h:354:9`!
1405 double x1WC, x2WC, y1WC, y2WC;
1406 {// scope
1407 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1408 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1409 }
1410 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1411 const double dx = 0.2 * (x2WC - x1WC);
1412 if (position < powcxx . . $ pow(9454dda30a4b8335). (10, x1WC - dx) || position > powcxx . . $ pow(9454dda30a4b8335). (10, x2WC + dx))
1413 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", pow (10, x1WC), U" and ", pow (10, x2WC), U".");
1414 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1415 Graphics_markTopLogarithmiccxx . . $ Graphics_markTopLogarithmic(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1416 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1417 }
1418
1419 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_OneLogarithmicMarkBottom, U"Praat picture: One logarithmic mark bottom", U"One logarithmic mark left/right/top/bottom...") {
1420 REALcxx . . $ `sys/praatM.h:92:9`! (position, U"Position", U"1.0")
1421 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (writeNumber, U"Write number", 1)
1422 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawTick, U"Draw tick", 1)
1423 BOOLEANcxx . . $ `sys/praatM.h:130:9`! (drawDottedLine, U"Draw dotted line", 1)
1424 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Draw text", U"", 3)
1425 OKcxx . . $ `sys/praatM.h:327:9`!
1426 DOcxx . . $ `sys/praatM.h:354:9`!
1427 double x1WC, x2WC, y1WC, y2WC;
1428 {// scope
1429 autoPraatPictureOpencxx . . $ autoPraatPictureOpen# picturecxx . . $ autoPraatPictureOpen#autoPraatPictureOpen(49f6e7a06ebc5aa8).;
1430 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1431 }
1432 sortBoundingBoxcxx . . $ sortBoundingBox(dec26d86168e59a). (& x1WC, & x2WC, & y1WC, & y2WC);
1433 const double dx = 0.2 * (x2WC - x1WC);
1434 if (position < powcxx . . $ pow(9454dda30a4b8335). (10, x1WC - dx) || position > powcxx . . $ pow(9454dda30a4b8335). (10, x2WC + dx))
1435 Melder_throwcxx . . $ `melder/melder_error.h:77:9`! (U"\"Position\" must be between ", pow (10, x1WC), U" and ", pow (10, x2WC), U".");
1436 GRAPHICS_NONEcxx . . $ `sys/praatM.h:692:9`!
1437 Graphics_markBottomLogarithmiccxx . . $ Graphics_markBottomLogarithmic(e82cc8dc402e8bd7). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, position, writeNumber, drawTick, drawDottedLine, text);
1438 GRAPHICS_NONE_ENDcxx . . $ `sys/praatM.h:694:9`!
1439 }
1440
1441 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_HorizontalMmToWorldCoordinates, U"Compute horizontal distance in world coordinates", nullptr) {
1442 REALcxx . . $ `sys/praatM.h:92:9`! (distance, U"Distance (mm)", U"10.0")
1443 OKcxx . . $ `sys/praatM.h:327:9`!
1444 DOcxx . . $ `sys/praatM.h:354:9`!
1445 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1446 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1447 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
1448 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1449 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1450 const double result = Graphics_dxMMtoWCcxx . . $ Graphics_dxMMtoWC(f042c24bcd87f07e). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, distance);
1451 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1452 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" (world coordinates)");
1453 }
1454
1455 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_HorizontalWorldCoordinatesToMm, U"Compute horizontal distance in millimetres", nullptr) {
1456 REALcxx . . $ `sys/praatM.h:92:9`! (distance, U"Distance (wc)", U"0.1")
1457 OKcxx . . $ `sys/praatM.h:327:9`!
1458 DOcxx . . $ `sys/praatM.h:354:9`!
1459 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`! // TODO: do we need autoPraatPictureOpen for any of these?
1460 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1461 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
1462 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1463 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1464 const double result = Graphics_dxWCtoMMcxx . . $ Graphics_dxWCtoMM(f042c24bcd87f07e). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, distance);
1465 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1466 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" mm")
1467 }
1468
1469 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_VerticalMmToWorldCoordinates, U"Compute vertical distance in world coordinates", nullptr) {
1470 REALcxx . . $ `sys/praatM.h:92:9`! (distance, U"Distance (mm)", U"10.0")
1471 OKcxx . . $ `sys/praatM.h:327:9`!
1472 DOcxx . . $ `sys/praatM.h:354:9`!
1473 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1474 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1475 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1476 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1477 const double result = Graphics_dyMMtoWCcxx . . $ Graphics_dyMMtoWC(f042c24bcd87f07e). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, distance);
1478 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1479 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" (world coordinates)")
1480 }
1481
1482 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_VerticalWorldCoordinatesToMm, U"Compute vertical distance in millimetres", nullptr) {
1483 REALcxx . . $ `sys/praatM.h:92:9`! (distance, U"Distance (wc)", U"1.0")
1484 OKcxx . . $ `sys/praatM.h:327:9`!
1485 DOcxx . . $ `sys/praatM.h:354:9`!
1486 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1487 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1488 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1489 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1490 const double result = Graphics_dyWCtoMMcxx . . $ Graphics_dyWCtoMM(f042c24bcd87f07e). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, distance);
1491 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1492 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" mm")
1493 }
1494
1495 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextWidth_worldCoordinates, U"Text width in world coordinates", nullptr) {
1496 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"Hello world", 3)
1497 OKcxx . . $ `sys/praatM.h:327:9`!
1498 DOcxx . . $ `sys/praatM.h:354:9`!
1499 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1500 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1501 const double result = Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, text);
1502 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1503 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" (world coordinates)")
1504 }
1505
1506 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_TextWidth_mm, U"Text width in millimetres", nullptr) {
1507 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"Hello world", 3)
1508 OKcxx . . $ `sys/praatM.h:327:9`!
1509 DOcxx . . $ `sys/praatM.h:354:9`!
1510 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1511 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font.);
1512 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1513 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1514 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1515 const double result = Graphics_dxWCtoMMcxx . . $ Graphics_dxWCtoMM(f042c24bcd87f07e). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, Graphics_textWidthcxx . . $ Graphics_textWidth(c49f17072ec643bd). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, text));
1516 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1517 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" mm")
1518 }
1519
1520 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PostScriptTextWidth_worldCoordinates, U"PostScript text width in world coordinates", nullptr) {
1521 CHOICExcxx . . $ `sys/praatM.h:221:9`! (phoneticFont, U"Phonetic font", 1, 0)
1522 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"XIPA")
1523 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"SILIPA")
1524 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"Hello world", 3)
1525 OKcxx . . $ `sys/praatM.h:327:9`!
1526 DOcxx . . $ `sys/praatM.h:354:9`!
1527 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1528 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font.);
1529 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1530 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1531 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1532 const double result = Graphics_textWidth_pscxx . . $ Graphics_textWidth_ps(e28a56f5afea616d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, text, phoneticFont);
1533 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1534 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" (world coordinates)")
1535 }
1536
1537
1538 FORMcxx . . $ `sys/praatM.h:79:9`! (GRAPHICS_PostScriptTextWidth_mm, U"PostScript text width in millimetres", nullptr) {
1539 CHOICExcxx . . $ `sys/praatM.h:221:9`! (phoneticFont, U"Phonetic font", 1, 0)
1540 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"XIPA")
1541 OPTIONcxx . . $ `sys/praatM.h:246:9`! (U"SILIPA")
1542 TEXTFIELDcxx . . $ `sys/praatM.h:144:9`! (text, U"Text", U"Hello world", 3)
1543 OKcxx . . $ `sys/praatM.h:327:9`!
1544 DOcxx . . $ `sys/praatM.h:354:9`!
1545 QUERY_GRAPHICS_FOR_REALcxx . . $ `sys/praatM.h:823:9`!
1546 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font.);
1547 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1548 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1549 Graphics_setInnercxx . . $ Graphics_setInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1550 const double result = Graphics_textWidth_ps_mmcxx . . $ Graphics_textWidth_ps_mm(e28a56f5afea616d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, text, phoneticFont);
1551 Graphics_unsetInnercxx . . $ Graphics_unsetInner(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1552 QUERY_GRAPHICS_FOR_REAL_ENDcxx . . $ `sys/praatM.h:824:9`! (U" mm")
1553 }
1554
1555 #pragma mark - Help menu
1556
1557 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_PraatIntro_picture) { HELPcxx . . $ `sys/praatM.h:616:9`! (U"Intro") }
1558 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_SearchManual_Picture) { Melder_searchcxx . . $ Melder_search(49f6e7a06ebc5aa8). (); END_WITH_NEW_DATAcxx . . $ `sys/praatM.h:394:9`! }
1559 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_PictureWindowHelp) { HELPcxx . . $ `sys/praatM.h:616:9`! (U"Picture window") }
1560 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_AboutSpecialSymbols) { HELPcxx . . $ `sys/praatM.h:616:9`! (U"Special symbols") }
1561 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_AboutTextStyles) { HELPcxx . . $ `sys/praatM.h:616:9`! (U"Text styles") }
1562 DIRECTcxx . . $ `sys/praatM.h:412:9`! (HELP_PhoneticSymbols) { HELPcxx . . $ `sys/praatM.h:616:9`! (U"Phonetic symbols") }
1563 DIRECTcxx . . $ `sys/praatM.h:412:9`! (GRAPHICS_Picture_settings_report) {
1564 INFO_NONEcxx . . $ `sys/praatM.h:583:9`!
1565 MelderInfo_opencxx . . $ MelderInfo_open(49f6e7a06ebc5aa8). ();
1566 const conststring32cxx . . $ conststring32# units = ( theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. ? U" inches" : U"" );
1567 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Outer viewport left: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., units);
1568 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Outer viewport right: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC., units);
1569 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Outer viewport top: ",
1570 ( theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. ?
1571 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. :
1572 Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.) ,
1573 units
1574 );
1575 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Outer viewport bottom: ",
1576 ( theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. ?
1577 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. :
1578 Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. ),
1579 units
1580 );
1581 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Font size: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize., U" points");
1582 double xmargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 4.2 / 72.0;
1583 double ymargin = theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize. * 2.8 / 72.0;
1584 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.) {
1585 integercxx . . $ integer# x1DC, x2DC, y1DC, y2DC;
1586 Graphics_inqWsViewportcxx . . $ Graphics_inqWsViewport(17f6d84cadd6c860). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1DC, & x2DC, & y1DC, & y2DC);
1587 double x1wNDC, x2wNDC, y1wNDC, y2wNDC;
1588 Graphics_inqWsWindowcxx . . $ Graphics_inqWsWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1wNDC, & x2wNDC, & y1wNDC, & y2wNDC);
1589 double wDC = (x2DC - x1DC) / (x2wNDC - x1wNDC);
1590 double hDC = integer_abscxx . . $ integer_abs(8ce0d1b217db7fd1). (y2DC - y1DC) / (y2wNDC - y1wNDC);
1591 xmargin *= Graphics_getResolutioncxx . . $ Graphics_getResolution(d4bbe1b9daaaf11b). (GRAPHICScxx . . $ `sys/praat.h:204:9`!) / wDC;
1592 ymargin *= Graphics_getResolutioncxx . . $ Graphics_getResolution(d4bbe1b9daaaf11b). (GRAPHICScxx . . $ `sys/praat.h:204:9`!) / hDC;
1593 }
1594 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& ymargin, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC.));
1595 Melder_clipRightcxx . . $ Melder_clipRight(5b63ce711df1ade7). (& xmargin, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC.));
1596 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Inner viewport left: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. + xmargin, units);
1597 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Inner viewport right: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. - xmargin, units);
1598 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Inner viewport top: ",
1599 ( theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. ?
1600 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. + ymargin :
1601 Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. + ymargin ),
1602 units
1603 );
1604 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Inner viewport bottom: ",
1605 ( theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. ?
1606 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. - ymargin :
1607 Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. - ymargin ),
1608 units
1609 );
1610 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Font: ", kGraphics_font_getTextcxx . . $ kGraphics_font_getText(d24a1e0f071d30ac). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font.));
1611 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Line type: ",
1612 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. == Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`! ? U"Solid" :
1613 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. == Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`! ? U"Dotted" :
1614 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. == Graphics_DASHEDcxx . . $ `sys/Graphics.h:289:9`! ? U"Dashed" :
1615 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. == Graphics_DASHED_DOTTEDcxx . . $ `sys/Graphics.h:290:9`! ? U"Dashed-dotted" :
1616 U"(unknown)"
1617 );
1618 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Line width: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth.);
1619 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Arrow size: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize.);
1620 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Speckle size: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize.);
1621 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Colour: ", MelderColour_namecxx . . $ MelderColour_name(7dfff7c3df3cd0ae). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour.));
1622 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Red: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour.. redcxx . . $ MelderColour#red.);
1623 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Green: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour.. greencxx . . $ MelderColour#green.);
1624 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Blue: ", theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour.. bluecxx . . $ MelderColour#blue.);
1625 double x1WC, x2WC, y1WC, y2WC;
1626 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1627 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Axis left: ", x1WC);
1628 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Axis right: ", x2WC);
1629 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Axis bottom: ", y1WC);
1630 MelderInfo_writeLinecxx . . $ MelderInfo_writeLine(3eb398314feba58b). (U"Axis top: ", y2WC);
1631 MelderInfo_closecxx . . $ MelderInfo_close(49f6e7a06ebc5aa8). ();
1632 INFO_NONE_ENDcxx . . $ `sys/praatM.h:584:9`!
1633 }
1634
1635 #pragma mark - Event callbacks
1636
1637 static void cb_selectionChangedcxx . . $ cb_selectionChanged(b62a887b3b790f85). (Picturecxx . . $ Picture# p, void * /* closure */,
1638 double selx1, double selx2, double sely1, double sely2)
1639 /* The user selected a new viewport in the picture window. */
1640 {
1641 Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (p == praat_picture.get());
1642 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = selx1;
1643 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = selx2;
1644 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = sely1;
1645 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = sely2;
1646 if (praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport.) {
1647 const double fontSize = Graphics_inqFontSizecxx . . $ Graphics_inqFontSize(f906975acce41a59). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1648 const double xmargin = Melder_clippedRightcxx . . $ Melder_clippedRight(f80f7d6260b3ee3a). (fontSize * 4.2 / 72.0, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC.));
1649 const double ymargin = Melder_clippedRightcxx . . $ Melder_clippedRight(f80f7d6260b3ee3a). (fontSize * 2.8 / 72.0, 0.4 * (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC.));
1650 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U"\nSelect inner viewport: ");
1651 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. + xmargin));
1652 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1653 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. - xmargin));
1654 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1655 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. + ymargin));
1656 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1657 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. - ymargin));
1658 } else {
1659 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U"\nSelect outer viewport: ");
1660 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC.));
1661 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1662 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.));
1663 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1664 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.));
1665 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (U", ");
1666 UiHistory_writecxx . . $ UiHistory_write(ff00d524ab0355ec). (Melder_singlecxx . . $ Melder_single(f05d861d9dbec9b2). (Picture_HEIGHTcxx . . $ Picture_HEIGHT. - theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC.));
1667 }
1668 }
1669
1670 #pragma mark - Public functions
1671
1672 static GuiWindowcxx . . $ GuiWindow# thePictureWindowcxx . . $ thePictureWindow.;
1673
1674 static GuiMenucxx . . $ GuiMenu# fileMenucxx . . $ fileMenu., editMenucxx . . $ editMenu., marginsMenucxx . . $ marginsMenu., worldMenucxx . . $ worldMenu., selectMenucxx . . $ selectMenu., fontMenucxx . . $ fontMenu., penMenucxx . . $ penMenu., helpMenucxx . . $ helpMenu.;
1675
1676 GuiMenucxx . . $ GuiMenu# praat_picture_resolveMenucxx . . $ praat_picture_resolveMenu(b07c1ab83d47ef20). (conststring32cxx . . $ conststring32# menu) {
1677 return
1678 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"File") ? fileMenucxx . . $ fileMenu. :
1679 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Edit") ? editMenucxx . . $ editMenu. :
1680 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Margins") ? marginsMenucxx . . $ marginsMenu. :
1681 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"World") ? worldMenucxx . . $ worldMenu. :
1682 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Select") ? selectMenucxx . . $ selectMenu. :
1683 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Font") ? fontMenucxx . . $ fontMenu. :
1684 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Pen") ? penMenucxx . . $ penMenu. :
1685 str32equcxx . . $ `melder/melder_str32.h:122:9`! (menu, U"Help") ? helpMenucxx . . $ helpMenu. :
1686 editMenucxx . . $ editMenu.; // default
1687 }
1688
1689 void praat_picture_exitcxx . . $ praat_picture_exit(49f6e7a06ebc5aa8). () {
1690 praat_picturecxx . . $ praat_picture.. resetcxx . . $ autoSomeThing#reset(ced63f7c635d850d).();
1691 }
1692
1693 void praat_picture_opencxx . . $ praat_picture_open(49f6e7a06ebc5aa8). () {
1694 Graphics_markGroupcxx . . $ Graphics_markGroup(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!); // we start a group of graphics output here
1695 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. == & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture. && ! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
1696 #if gtkcxx . . $ `sys/Gui.h:33:10`!
1697 gtk_window_present (GTK_WINDOWcxx . . $ `<external>/3777575239456597881/gtkwindow.h:40:9`! (thePictureWindow -> d_gtkWindow));
1698 #elif motif
1699 XtMapWidget (thePictureWindow -> d_xmShell);
1700 XMapRaised (XtDisplay (thePictureWindow -> d_xmShell), XtWindow (thePictureWindow -> d_xmShell));
1701 #elif cocoa
1702 GuiThing_show (thePictureWindow);
1703 #endif
1704 }
1705 /*
1706 Obsolete comment (noticed 2023-04-05):
1707 Foregoing drawing routines may have changed some of the output attributes
1708 that can be set by the user.
1709 Make sure that they have the right values before every drawing.
1710 This is especially necessary after an 'erase picture':
1711 the output attributes that were set by the user before the 'erase'
1712 must be recorded before copying to a PostScript file.
1713 */
1714 Graphics_setFontcxx . . $ Graphics_setFont(f6e617e53e6c04dc). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontcxx . . $ structPraatPicture#font.);
1715 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.);
1716 Graphics_setLineTypecxx . . $ Graphics_setLineType(9abe41586e87648d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType.);
1717 Graphics_setLineWidthcxx . . $ Graphics_setLineWidth(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth.);
1718 Graphics_setArrowSizecxx . . $ Graphics_setArrowSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize.);
1719 Graphics_setSpeckleSizecxx . . $ Graphics_setSpeckleSize(2514a1c07b6be5e2). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize.);
1720 Graphics_setColourcxx . . $ Graphics_setColour(eb47b9513d3f4721). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour.);
1721
1722 Graphics_setViewportcxx . . $ Graphics_setViewport(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC.,
1723 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC.);
1724 /* The following will dump the axes to the PostScript file after Erase all. BUG: should be somewhere else. */
1725 double x1WC, x2WC, y1WC, y2WC;
1726 Graphics_inqWindowcxx . . $ Graphics_inqWindow(962850f2031ce0d0). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, & x1WC, & x2WC, & y1WC, & y2WC);
1727 Graphics_setWindowcxx . . $ Graphics_setWindow(72bdb7937dbb13da). (GRAPHICScxx . . $ `sys/praat.h:204:9`!, x1WC, x2WC, y1WC, y2WC);
1728 }
1729
1730 void praat_picture_closecxx . . $ praat_picture_close(49f6e7a06ebc5aa8). () {
1731 if (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. != & theForegroundPraatPicturecxx . . $ theForegroundPraatPicture.)
1732 return;
1733 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.)
1734 Graphics_updateWscxx . . $ Graphics_updateWs(2d838ed765120c5d). (GRAPHICScxx . . $ `sys/praat.h:204:9`!);
1735 }
1736
1737 Graphicscxx . . $ Graphics# praat_picture_datagui_opencxx . . $ praat_picture_datagui_open(fd9aabc8505e6f7b). (bool eraseFirst) {
1738 if (eraseFirst)
1739 Picture_erasecxx . . $ Picture_erase(7c67b8e8e5971dca). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).());
1740 praat_picture_opencxx . . $ praat_picture_open(49f6e7a06ebc5aa8). ();
1741 return GRAPHICScxx . . $ `sys/praat.h:204:9`!;
1742 }
1743
1744 void praat_picture_datagui_closecxx . . $ praat_picture_datagui_close(49f6e7a06ebc5aa8). () {
1745 praat_picture_closecxx . . $ praat_picture_close(49f6e7a06ebc5aa8). ();
1746 }
1747
1748 DIRECTcxx . . $ `sys/praatM.h:412:9`! (menu_cb_quit) {
1749 Gui_runQuitApplicationCallbackcxx . . $ Gui_runQuitApplicationCallback(49f6e7a06ebc5aa8). ();
1750 END_NO_NEW_DATAcxx . . $ `sys/praatM.h:404:9`!
1751 }
1752
1753 static autoDaatacxx . . $ autoDaata# pictureRecognizercxx . . $ pictureRecognizer(c32780b24c371669). (integercxx . . $ integer# nread, const char *header, MelderFilecxx . . $ MelderFile# file) {
1754 if (nread < 2)
1755 return autoDaatacxx . . $ autoSomeThing#autoSomeThing(49f6e7a06ebc5aa8). ();
1756 if (strnequcxx . . $ `melder/melder_string32.h:70:9`! (header, "PraatPicture", 12)) {
1757 Picture_readFromPraatPictureFilecxx . . $ Picture_readFromPraatPictureFile(1b125f360715d06e). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), file);
1758 return Thing_newcxx . . $ `sys/Thing.h:514:9`! (Daata); // a dummy
1759 }
1760 return autoDaatacxx . . $ autoSomeThing#autoSomeThing(49f6e7a06ebc5aa8). ();
1761 }
1762
1763 void praat_picture_initcxx . . $ praat_picture_init(b45ddcbc8423892c). (bool showPictureWindowAtStartUp) {
1764 GuiScrolledWindowcxx . . $ GuiScrolledWindow# scrollWindow;
1765 GuiDrawingAreacxx . . $ GuiDrawingArea# drawingArea = nullptr;
1766 int margin, width, height, resolution, x, y;
1767 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineTypecxx . . $ structPraatPicture#lineType. = Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!;
1768 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> colourcxx . . $ structPraatPicture#colour. =cxx . . $ MelderColour#`operator=`(3ab3c3f6bc5cdda1). Melder_BLACKcxx . . $ Melder_BLACK.;
1769 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> lineWidthcxx . . $ structPraatPicture#lineWidth. = 1.0;
1770 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> arrowSizecxx . . $ structPraatPicture#arrowSize. = 1.0;
1771 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> speckleSizecxx . . $ structPraatPicture#speckleSize. = 1.0;
1772 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x1NDCcxx . . $ structPraatPicture#x1NDC. = 0.0;
1773 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> x2NDCcxx . . $ structPraatPicture#x2NDC. = 6.0;
1774 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y1NDCcxx . . $ structPraatPicture#y1NDC. = Picture_HEIGHTcxx . . $ Picture_HEIGHT. - 4.0;
1775 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> y2NDCcxx . . $ structPraatPicture#y2NDC. = Picture_HEIGHTcxx . . $ Picture_HEIGHT.;
1776
1777 Data_recognizeFileTypecxx . . $ Data_recognizeFileType(7ed4186908013b3d). (pictureRecognizercxx . . $ pictureRecognizer(c32780b24c371669).);
1778
1779 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
1780 double screenX, screenY, screenWidth, screenHeight;
1781 Gui_getWindowPositioningBoundscxx . . $ Gui_getWindowPositioningBounds(dec26d86168e59a). (& screenX, & screenY, & screenWidth, & screenHeight);
1782 resolution = Gui_getResolutioncxx . . $ Gui_getResolution(dedf1e9b1c614a07). (nullptr);
1783 #if defined (macintosh)
1784 margin = 2;
1785 width = 6 * resolution + 20;
1786 height = Machine_getMenuBarBottom () + 9 * resolution + 24;
1787 x = screenX + screenWidth - width - 14;
1788 y = screenY + 0;
1789 width += margin * 2;
1790 #elif defined (_WIN32)
1791 margin = 2;
1792 width = 6 * resolution + 22;
1793 height = 9 * resolution + 24;
1794 x = screenX + screenWidth - width - 17;
1795 y = screenY + 0;
1796 #else
1797 margin = 0;
1798 width = 6 * resolution + 30;
1799 height = width * 3 / 2 + Machine_getTitleBarHeightcxx . . $ Machine_getTitleBarHeight(b126dc7c1de90089). ();
1800 x = screenX + screenWidth - width - 10;
1801 y = screenY + 0;
1802 width += margin * 2;
1803 #endif
1804 thePictureWindowcxx . . $ thePictureWindow. = GuiWindow_createcxx . . $ GuiWindow_create(f24bfc1968593561). (x, y, width, height, 400, 200, Melder_catcxx . . $ Melder_cat(7fbf27f4d367f442). (Melder_upperCaseAppNamecxx . . $ Melder_upperCaseAppName(1912f6684645c851).(), U" Picture"), nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptr, 0);
1805 GuiWindow_addMenuBarcxx . . $ GuiWindow_addMenuBar(20efc9fbfef198b1). (thePictureWindowcxx . . $ thePictureWindow.);
1806 }
1807 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
1808 fileMenucxx . . $ fileMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"File", 0);
1809 editMenucxx . . $ editMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Edit", 0);
1810 marginsMenucxx . . $ marginsMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Margins", 0);
1811 worldMenucxx . . $ worldMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"World", 0);
1812 selectMenucxx . . $ selectMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Select", 0);
1813 penMenucxx . . $ penMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Pen", 0);
1814 fontMenucxx . . $ fontMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Font", 0);
1815 helpMenucxx . . $ helpMenu. = GuiMenu_createInWindowcxx . . $ GuiMenu_createInWindow(cfd6777f6dee287d). (thePictureWindowcxx . . $ thePictureWindow., U"Help", 0);
1816 }
1817
1818 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Picture info || Picture settings report",
1819 nullptr, 0, GRAPHICS_Picture_settings_report); // alternative GuiMenu_DEPRECATED_2007
1820 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"-- save --", nullptr, 0, nullptr);
1821 #if defined (macintosh) || defined (UNIXcxx . . $ `<built-in>:479:9`!)
1822 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as PDF file... || Write to PDF file...",
1823 nullptr, 'S', GRAPHICS_Picture_writeToPdfFile); // alternative GuiMenu_DEPRECATED_2011
1824 #endif
1825 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as 300-dpi PNG file...",
1826 nullptr, 0, GRAPHICS_Picture_writeToPngFile_300);
1827 #if defined (_WIN32)
1828 praat_addMenuCommand (U"Picture", U"File", U"Save as 600-dpi PNG file...",
1829 nullptr, 'S', GRAPHICS_Picture_writeToPngFile_600);
1830 #endif
1831 #if defined (macintosh) || defined (UNIXcxx . . $ `<built-in>:479:9`!)
1832 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as 600-dpi PNG file...",
1833 nullptr, 0, GRAPHICS_Picture_writeToPngFile_600);
1834 #endif
1835 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as EPS file", nullptr, 0, nullptr);
1836 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"PostScript settings...",
1837 nullptr, GuiMenu_DEPTH_1cxx . . $ `sys/Gui.h:862:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_PostScript_settings);
1838 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as EPS file... || Write to EPS file...",
1839 nullptr, 1, GRAPHICS_Picture_writeToEpsFile); // alternative GuiMenu_DEPRECATED_2011
1840 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as fontless EPS file (XIPA)... || Write to fontless EPS file (XIPA)...",
1841 nullptr, 1, GRAPHICS_Picture_writeToFontlessEpsFile_xipa); // alternative GuiMenu_DEPRECATED_2011
1842 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as fontless EPS file (SILIPA)... || Write to fontless EPS file (SILIPA)...",
1843 nullptr, 1, GRAPHICS_Picture_writeToFontlessEpsFile_silipa); // alternative GuiMenu_DEPRECATED_2011
1844 #ifdef _WIN32
1845 praat_addMenuCommand (U"Picture", U"File", U"Save as Windows metafile... || Write to Windows metafile...",
1846 nullptr, 0, GRAPHICS_Picture_writeToWindowsMetafile); // alternative GuiMenu_DEPRECATED_2011
1847 #endif
1848 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"-- praat picture file --", nullptr, 0, nullptr);
1849 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Read from praat picture file...",
1850 nullptr, 0, GRAPHICS_Picture_readFromPraatPictureFile);
1851 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Save as praat picture file... || Write to praat picture file...",
1852 nullptr, 0, GRAPHICS_Picture_writeToPraatPictureFile); // alternative GuiMenu_DEPRECATED_2011
1853 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"-- print --", nullptr, 0, nullptr);
1854 #if defined (macintosh)
1855 praat_addMenuCommand (U"Picture", U"File", U"Page setup...",
1856 nullptr, GuiMenu_NO_API, GRAPHICS_Page_setup);
1857 #endif
1858 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"Print...", nullptr, 'P' | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_Print);
1859 #ifndef macintosh
1860 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", U"-- close --", nullptr, 0, nullptr);
1861 //praat_addMenuCommand (U"Picture", U"File", U"Close", nullptr, 'W', menu_cb_close);
1862 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"File", Melder_cat (U"Quit ", Melder_upperCaseAppName (), U" || Quit"), nullptr, 'Q', menu_cb_quit);
1863 #endif
1864
1865 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Edit", U"Undo", nullptr, 'Z' | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_Undo);
1866 #if defined (macintosh) || defined (_WIN32)
1867 praat_addMenuCommand (U"Picture", U"Edit", U"-- clipboard --", nullptr, 0, nullptr);
1868 praat_addMenuCommand (U"Picture", U"Edit", U"Copy to clipboard", nullptr, 'C' | GuiMenu_NO_API, GRAPHICS_Copy_picture_to_clipboard);
1869 #endif
1870 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Edit", U"-- erase --", nullptr, 0, nullptr);
1871 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Edit", U"Erase all", nullptr, 'E', GRAPHICS_Erase_all);
1872
1873 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Draw inner box", nullptr, 0, GRAPHICS_DrawInnerBox);
1874 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"-- text --", nullptr, 0, nullptr);
1875 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Text left...", nullptr, 0, GRAPHICS_TextLeft);
1876 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Text right...", nullptr, 0, GRAPHICS_TextRight);
1877 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Text top...", nullptr, 0, GRAPHICS_TextTop);
1878 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Text bottom...", nullptr, 0, GRAPHICS_TextBottom);
1879 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"-- marks every --", nullptr, 0, nullptr);
1880 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks left every...", nullptr, 0, GRAPHICS_MarksLeftEvery);
1881 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks right every...", nullptr, 0, GRAPHICS_MarksRightEvery);
1882 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks bottom every...", nullptr, 0, GRAPHICS_MarksBottomEvery);
1883 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks top every...", nullptr, 0, GRAPHICS_MarksTopEvery);
1884 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"-- one mark --", nullptr, 0, nullptr);
1885 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One mark left...", nullptr, 0, GRAPHICS_OneMarkLeft);
1886 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One mark right...", nullptr, 0, GRAPHICS_OneMarkRight);
1887 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One mark bottom...", nullptr, 0, GRAPHICS_OneMarkBottom);
1888 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One mark top...", nullptr, 0, GRAPHICS_OneMarkTop);
1889 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"-- marks --", nullptr, 0, nullptr);
1890 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks", nullptr, 0, nullptr);
1891 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks left...", nullptr, 1, GRAPHICS_MarksLeft);
1892 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks right...", nullptr, 1, GRAPHICS_MarksRight);
1893 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks bottom...", nullptr, 1, GRAPHICS_MarksBottom);
1894 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Marks top...", nullptr, 1, GRAPHICS_MarksTop);
1895 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Logarithmic marks", nullptr, 0, nullptr);
1896 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Logarithmic marks left...", nullptr, 1, GRAPHICS_LogarithmicMarksLeft);
1897 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Logarithmic marks right...", nullptr, 1, GRAPHICS_LogarithmicMarksRight);
1898 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Logarithmic marks bottom...", nullptr, 1, GRAPHICS_LogarithmicMarksBottom);
1899 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Logarithmic marks top...", nullptr, 1, GRAPHICS_LogarithmicMarksTop);
1900 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One logarithmic mark", nullptr, 0, nullptr);
1901 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One logarithmic mark left...", nullptr, 1, GRAPHICS_OneLogarithmicMarkLeft);
1902 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One logarithmic mark right...", nullptr, 1, GRAPHICS_OneLogarithmicMarkRight);
1903 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One logarithmic mark bottom...", nullptr, 1, GRAPHICS_OneLogarithmicMarkBottom);
1904 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"One logarithmic mark top...", nullptr, 1, GRAPHICS_OneLogarithmicMarkTop);
1905 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"-- axes --", nullptr, 0, nullptr);
1906 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Margins", U"Axes...", nullptr, 0, GRAPHICS_Axes);
1907
1908 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Text...", nullptr, 0, GRAPHICS_Text);
1909 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Text special...", nullptr, 0, GRAPHICS_TextSpecial);
1910 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Rectangle text (maximal fit)...", nullptr, 0, GRAPHICS_RectangleText_MaximalFit);
1911 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Rectangle text (wrap & truncate)...", nullptr, 0, GRAPHICS_RectangleText_WrapAndTruncate);
1912 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- line --", nullptr, 0, nullptr);
1913 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw line...", nullptr, 0, GRAPHICS_DrawLine);
1914 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw arrow...", nullptr, 0, GRAPHICS_DrawArrow);
1915 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw two-way arrow...", nullptr, 0, GRAPHICS_DrawDoubleArrow);
1916 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- function --", nullptr, 0, nullptr);
1917 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw function...", nullptr, 0, GRAPHICS_DrawFunction);
1918 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- rectangle --", nullptr, 0, nullptr);
1919 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw rectangle...", nullptr, 0, GRAPHICS_DrawRectangle);
1920 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Paint rectangle...", nullptr, 0, GRAPHICS_PaintRectangle);
1921 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw rounded rectangle...", nullptr, 0, GRAPHICS_DrawRoundedRectangle);
1922 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Paint rounded rectangle...", nullptr, 0, GRAPHICS_PaintRoundedRectangle);
1923 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- arc --", nullptr, 0, nullptr);
1924 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw arc...", nullptr, 0, GRAPHICS_DrawArc);
1925 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw ellipse...", nullptr, 0, GRAPHICS_DrawEllipse);
1926 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Paint ellipse...", nullptr, 0, GRAPHICS_PaintEllipse);
1927 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw circle...", nullptr, 0, GRAPHICS_DrawCircle);
1928 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Paint circle...", nullptr, 0, GRAPHICS_PaintCircle);
1929 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Draw circle (mm)...", nullptr, 0, GRAPHICS_DrawCircle_mm);
1930 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Paint circle (mm)...", nullptr, 0, GRAPHICS_PaintCircle_mm);
1931 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- picture --", nullptr, 0, nullptr);
1932 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Insert picture from file...", nullptr, 0, GRAPHICS_InsertPictureFromFile);
1933 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Insert picture from file (embedded)...", nullptr, 0, GRAPHICS_InsertPictureFromFile_embedded);
1934 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- axes --", nullptr, 0, nullptr);
1935 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Axes...", nullptr, 0, GRAPHICS_Axes);
1936 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Measure", nullptr, 0, nullptr);
1937 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Horizontal mm to world coordinates... || Horizontal mm to wc...",
1938 nullptr, 1, GRAPHICS_HorizontalMmToWorldCoordinates); // alternative GuiMenu_DEPRECATED_2016
1939 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Horizontal world coordinates to mm... || Horizontal wc to mm...",
1940 nullptr, 1, GRAPHICS_HorizontalWorldCoordinatesToMm);
1941 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Vertical mm to world coordinates... || Vertical mm to wc...",
1942 nullptr, 1, GRAPHICS_VerticalMmToWorldCoordinates);
1943 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Vertical world coordinates to mm... || Vertical wc to mm...",
1944 nullptr, 1, GRAPHICS_VerticalWorldCoordinatesToMm);
1945 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"-- text measure --", nullptr, 1, nullptr);
1946 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Text width (world coordinates)... || Text width (wc)...",
1947 nullptr, 1, GRAPHICS_TextWidth_worldCoordinates);
1948 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"Text width (mm)...",
1949 nullptr, 1, GRAPHICS_TextWidth_mm);
1950 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"PostScript text width (world coordinates)... || PostScript text width (wc)...",
1951 nullptr, 1, GRAPHICS_PostScriptTextWidth_worldCoordinates); // alternative GuiMenu_DEPRECATED_2016
1952 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"World", U"PostScript text width (mm)...",
1953 nullptr, 1, GRAPHICS_PostScriptTextWidth_mm);
1954
1955 praatButton_innerViewportcxx . . $ praatButton_innerViewport. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select",
1956 U"Mouse selects inner viewport", nullptr, GuiMenu_RADIO_FIRSTcxx . . $ `sys/Gui.h:857:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_MouseSelectsInnerViewport);
1957 praatButton_outerViewportcxx . . $ praatButton_outerViewport. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select",
1958 U"Mouse selects outer viewport", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_MouseSelectsOuterViewport);
1959 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select", U"-- select --", nullptr, 0, nullptr);
1960 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select", U"Select inner viewport...",
1961 nullptr, 0, GRAPHICS_SelectInnerViewport);
1962 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select", U"Select outer viewport... || Viewport...",
1963 nullptr, 0, GRAPHICS_SelectOuterViewport);
1964 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select", U"-- viewport drawing --", nullptr, 0, nullptr);
1965 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Select", U"Viewport text...",
1966 nullptr, 0, GRAPHICS_ViewportText);
1967
1968 praatButton_linescxx . . $ praatButton_lines. [Graphics_DRAWNcxx . . $ `sys/Graphics.h:287:9`!] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen",
1969 U"Solid line", nullptr, GuiMenu_RADIO_FIRSTcxx . . $ `sys/Gui.h:857:9`!, GRAPHICS_Solid_line);
1970 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen",
1971 U"Plain line", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`! | GuiMenu_DEPRECATED_2006cxx . . $ `sys/Gui.h:876:9`!, GRAPHICS_Solid_line);
1972 praatButton_linescxx . . $ praatButton_lines. [Graphics_DOTTEDcxx . . $ `sys/Graphics.h:288:9`!] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen",
1973 U"Dotted line", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_Dotted_line);
1974 praatButton_linescxx . . $ praatButton_lines. [Graphics_DASHEDcxx . . $ `sys/Graphics.h:289:9`!] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen",
1975 U"Dashed line", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_Dashed_line);
1976 praatButton_linescxx . . $ praatButton_lines. [Graphics_DASHED_DOTTEDcxx . . $ `sys/Graphics.h:290:9`!] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen",
1977 U"Dashed-dotted line", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_Dashed_dotted_line);
1978 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"-- line width --", nullptr, 0, nullptr);
1979 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Line width...", nullptr, 0, GRAPHICS_Line_width);
1980 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Arrow size...", nullptr, 0, GRAPHICS_Arrow_size);
1981 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Speckle size...", nullptr, 0, GRAPHICS_Speckle_size);
1982 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"-- colour --", nullptr, 0, nullptr);
1983 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Colour...", nullptr, 0, GRAPHICS_Colour);
1984 praatButton_blackcxx . . $ praatButton_black. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Black", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Black);
1985 praatButton_whitecxx . . $ praatButton_white. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"White", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_White);
1986 praatButton_redcxx . . $ praatButton_red. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Red", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Red);
1987 praatButton_greencxx . . $ praatButton_green. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Green", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Green);
1988 praatButton_bluecxx . . $ praatButton_blue. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Blue", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Blue);
1989 praatButton_yellowcxx . . $ praatButton_yellow. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Yellow", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Yellow);
1990 praatButton_cyancxx . . $ praatButton_cyan. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Cyan", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Cyan);
1991 praatButton_magentacxx . . $ praatButton_magenta. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Magenta", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Magenta);
1992 praatButton_marooncxx . . $ praatButton_maroon. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Maroon", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Maroon);
1993 praatButton_limecxx . . $ praatButton_lime. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Lime", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Lime);
1994 praatButton_navycxx . . $ praatButton_navy. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Navy", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Navy);
1995 praatButton_tealcxx . . $ praatButton_teal. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Teal", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Teal);
1996 praatButton_purplecxx . . $ praatButton_purple. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Purple", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Purple);
1997 praatButton_olivecxx . . $ praatButton_olive. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Olive", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Olive);
1998 praatButton_pinkcxx . . $ praatButton_pink. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Pink", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Pink);
1999 praatButton_silvercxx . . $ praatButton_silver. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Silver", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Silver);
2000 praatButton_greycxx . . $ praatButton_grey. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Pen", U"Grey", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`!, GRAPHICS_Grey);
2001
2002 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"Font size...", nullptr, 0, GRAPHICS_Font_size);
2003 praatButton_10cxx . . $ praatButton_10. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"10", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_10);
2004 praatButton_12cxx . . $ praatButton_12. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"12", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_12);
2005 praatButton_14cxx . . $ praatButton_14. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"14", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_14);
2006 praatButton_18cxx . . $ praatButton_18. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"18", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_18);
2007 praatButton_24cxx . . $ praatButton_24. = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"24", nullptr, GuiMenu_CHECKBUTTONcxx . . $ `sys/Gui.h:853:9`! | GuiMenu_NO_APIcxx . . $ `sys/Gui.h:871:9`!, GRAPHICS_24);
2008 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font", U"-- font ---", nullptr, 0, nullptr);
2009 praatButton_fontscxx . . $ praatButton_fonts. [(int) kGraphics_fontcxx . . $ kGraphics_font#::TIMEScxx . . $ kGraphics_font#TIMES.] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font",
2010 U"Times", nullptr, GuiMenu_RADIO_FIRSTcxx . . $ `sys/Gui.h:857:9`!, GRAPHICS_NONE__Times);
2011 praatButton_fontscxx . . $ praatButton_fonts. [(int) kGraphics_fontcxx . . $ kGraphics_font#::HELVETICAcxx . . $ kGraphics_font#HELVETICA.] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font",
2012 U"Helvetica", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_NONE__Helvetica);
2013 praatButton_fontscxx . . $ praatButton_fonts. [(int) kGraphics_fontcxx . . $ kGraphics_font#::PALATINOcxx . . $ kGraphics_font#PALATINO.] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font",
2014 U"Palatino", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_NONE__Palatino);
2015 praatButton_fontscxx . . $ praatButton_fonts. [(int) kGraphics_fontcxx . . $ kGraphics_font#::COURIERcxx . . $ kGraphics_font#COURIER.] = praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Font",
2016 U"Courier", nullptr, GuiMenu_RADIO_NEXTcxx . . $ `sys/Gui.h:858:9`!, GRAPHICS_NONE__Courier);
2017
2018 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"Praat Intro", nullptr, 0, HELP_PraatIntro_picture);
2019 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"Picture window help", nullptr, '?', HELP_PictureWindowHelp);
2020 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"-- text formatting help --", nullptr, 0, nullptr);
2021 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"About special symbols", nullptr, 0, HELP_AboutSpecialSymbols);
2022 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"About text styles", nullptr, 0, HELP_AboutTextStyles);
2023 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"Phonetic symbols", nullptr, 0, HELP_PhoneticSymbols);
2024 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help", U"-- manual --", nullptr, 0, nullptr);
2025 praat_addMenuCommandcxx . . $ `sys/praat.h:116:9`! (U"Picture", U"Help",
2026 Melder_cat (U"Search ", Melder_upperCaseAppName(), U" manual..."),
2027 nullptr, 'M', HELP_SearchManual_Picture);
2028
2029 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.) {
2030 width = resolution * Picture_WIDTHcxx . . $ Picture_WIDTH.;
2031 height = resolution * Picture_HEIGHTcxx . . $ Picture_HEIGHT.;
2032 scrollWindow = GuiScrolledWindow_createShowncxx . . $ GuiScrolledWindow_createShown(b656dcfd6320237e). (thePictureWindowcxx . . $ thePictureWindow., margin, 0, Machine_getMenuBarBottomcxx . . $ Machine_getMenuBarBottom(b126dc7c1de90089). () + margin, 0, 1, 1, 0);
2033 drawingArea = GuiDrawingArea_createShowncxx . . $ GuiDrawingArea_createShown(90010d40394de761). (scrollWindow, width, height,
2034 nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptrcxx . . $ MelderCallback#MelderCallback(fc624d2cd197112)., nullptr, 0);
2035 GuiThing_showcxx . . $ GuiThing_show(20e88c25f0ba841). (thePictureWindowcxx . . $ thePictureWindow.);
2036 }
2037
2038 // TODO: Paul: deze moet VOOR de update functies anders krijgen die void_me 0x0
2039 praat_picturecxx . . $ praat_picture. =cxx . . $ autoSomeThing#`operator=`(80cc59814f7161e8). Picture_createcxx . . $ Picture_create(536635984768e764). (drawingArea, ! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch.);
2040 // READ THIS!
2041 Picture_setSelectionChangedCallbackcxx . . $ Picture_setSelectionChangedCallback(aeaca41c654adde8). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), cb_selectionChangedcxx . . $ cb_selectionChanged(b62a887b3b790f85)., nullptr);
2042 theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> graphicscxx . . $ structPraatPicture#graphics. = static_cast<Graphicscxx . . $ Graphics#> (Picture_peekGraphicscxx . . $ Picture_peekGraphics(ef69ca22fe2c9ea5). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).()));
2043
2044 updatePenMenucxx . . $ updatePenMenu(49f6e7a06ebc5aa8). ();
2045 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
2046 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
2047 updateViewportMenucxx . . $ updateViewportMenu(49f6e7a06ebc5aa8). ();
2048
2049 if (! theCurrentPraatApplicationcxx . . $ theCurrentPraatApplication. -> batchcxx . . $ structPraatApplication#batch. && ! showPictureWindowAtStartUp) {
2050 #if gtkcxx . . $ `sys/Gui.h:33:10`!
2051 gtk_widget_hide (GTK_WIDGETcxx . . $ `<external>/6031079988677191796/gtkwidget.h:58:9`! (thePictureWindow -> d_gtkWindow));
2052 #elif motif
2053 ShowWindow (thePictureWindow -> d_xmShell -> window, SW_HIDE);
2054 #elif cocoa
2055 GuiThing_hide (thePictureWindow);
2056 #endif
2057 }
2058 }
2059
2060 void praat_picture_prefsChangedcxx . . $ praat_picture_prefsChanged(49f6e7a06ebc5aa8). () {
2061 updateFontMenucxx . . $ updateFontMenu(49f6e7a06ebc5aa8). ();
2062 updateSizeMenucxx . . $ updateSizeMenu(49f6e7a06ebc5aa8). ();
2063 updateViewportMenucxx . . $ updateViewportMenu(49f6e7a06ebc5aa8). ();
2064 Graphics_setFontSizecxx . . $ Graphics_setFontSize(2514a1c07b6be5e2). (theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> graphicscxx . . $ structPraatPicture#graphics., theCurrentPraatPicturecxx . . $ theCurrentPraatPicture. -> fontSizecxx . . $ structPraatPicture#fontSize.); // so that the thickness of the selection rectangle is correct
2065 Picture_setMouseSelectsInnerViewportcxx . . $ Picture_setMouseSelectsInnerViewport(70425a64acc38f07). (praat_picturecxx . . $ praat_picture..getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), praat_mouseSelectsInnerViewportcxx . . $ praat_mouseSelectsInnerViewport.);
2066 }
2067
2068 /* End of file praat_picture.cpp */