Debian Codegraph @

sys/DataGui.cpp

raw symbols SCIP
1 /* DataGui.cpp
2 *
3 * Copyright (C) 1992-2024 Paul Boersma, 2008 Stefan de Konink, 2010 Franz Brausse
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 2 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 "DataGui.h"cxx . . $ `<file>/sys/DataGui.h`/
20 #include "ScriptEditor.h"cxx . . $ `<file>/sys/ScriptEditor.h`/
21 #include "EditorM.h"cxx . . $ `<file>/sys/EditorM.h`/
22
23 #include "enums_getText.h"cxx . . $ `<file>/melder/enums_getText.h`/
24 #include "DataGui_enums.h"cxx . . $ `<file>/sys/DataGui_enums.h`/
25 #include "enums_getValue.h"cxx . . $ `<file>/melder/enums_getValue.h`/
26 #include "DataGui_enums.h"cxx . . $ `<file>/sys/DataGui_enums.h`/
27
28 Thing_implement_pureVirtualcxx . . $ `sys/Thing.h:70:9`! (DataGui, Thing, 0);
29
30 #include "Prefs_define.h"cxx . . $ `<file>/sys/Prefs_define.h`/
31 #include "DataGui_prefs.h"cxx . . $ `<file>/sys/DataGui_prefs.h`/
32 #include "Prefs_install.h"cxx . . $ `<file>/sys/Prefs_install.h`/
33 #include "DataGui_prefs.h"cxx . . $ `<file>/sys/DataGui_prefs.h`/
34 #include "Prefs_copyToInstance.h"cxx . . $ `<file>/sys/Prefs_copyToInstance.h`/
35 #include "DataGui_prefs.h"cxx . . $ `<file>/sys/DataGui_prefs.h`/
36
37 BOOLEAN_VARIABLEcxx . . $ `sys/EditorM.h:222:9`! (v_form_pictureWindow__eraseFirst)
38 void structDataGuicxx . . $ structDataGui# :: v_form_pictureWindowcxx . . $ structDataGui#v_form_pictureWindow(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) {
39 COMMENTcxx . . $ `sys/EditorM.h:237:9`! (U"Picture window:")
40 BOOLEAN_FIELDcxx . . $ `sys/EditorM.h:225:9`! (v_form_pictureWindow__eraseFirst, U"Erase first", true)
41 }
42 void structDataGuicxx . . $ structDataGui# :: v_ok_pictureWindowcxx . . $ structDataGui#v_ok_pictureWindow(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) {
43 SET_BOOLEANcxx . . $ `sys/EditorM.h:471:9`! (v_form_pictureWindow__eraseFirst, ourcxx . . $ `melder/melder.h:42:9`! instancePref_picture_eraseFirst())
44 }
45 void structDataGuicxx . . $ structDataGui# :: v_do_pictureWindowcxx . . $ structDataGui#v_do_pictureWindow(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# /* cmd */) {
46 ourcxx . . $ `melder/melder.h:42:9`! setInstancePref_picture_eraseFirstcxx . . $ structDataGui#setInstancePref_picture_eraseFirst(b45ddcbc8423892c). (v_form_pictureWindow__eraseFirstcxx . . $ v_form_pictureWindow__eraseFirst.);
47 }
48
49 OPTIONMENU_ENUM_VARIABLEcxx . . $ `sys/EditorM.h:411:9`! (kDataGui_writeNameAtTop, v_form_pictureMargins__writeNameAtTop)
50 void structDataGuicxx . . $ structDataGui# :: v_form_pictureMarginscxx . . $ structDataGui#v_form_pictureMargins(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) {
51 COMMENTcxx . . $ `sys/EditorM.h:237:9`! (U"Margins:")
52 OPTIONMENU_ENUM_FIELDcxx . . $ `sys/EditorM.h:414:9`! (kDataGui_writeNameAtTop, v_form_pictureMargins__writeNameAtTop,
53 U"Write name at top", kDataGui_writeNameAtTop::DEFAULT)
54 }
55 void structDataGuicxx . . $ structDataGui# :: v_ok_pictureMarginscxx . . $ structDataGui#v_ok_pictureMargins(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# cmd) {
56 SET_ENUMcxx . . $ `sys/EditorM.h:480:9`! (v_form_pictureMargins__writeNameAtTop, kDataGui_writeNameAtTop, ourcxx . . $ `melder/melder.h:42:9`! classPref_picture_writeNameAtTop())
57 }
58 void structDataGuicxx . . $ structDataGui# :: v_do_pictureMarginscxx . . $ structDataGui#v_do_pictureMargins(2b98fae8e13abb61). (EditorCommandcxx . . $ EditorCommand# /* cmd */) {
59 ourcxx . . $ `melder/melder.h:42:9`! setClassPref_picture_writeNameAtTopcxx . . $ structDataGui#setClassPref_picture_writeNameAtTop(9fa208f5cc1c9fdf). (v_form_pictureMargins__writeNameAtTopcxx . . $ v_form_pictureMargins__writeNameAtTop.);
60 }
61
62 /*
63 The following definitions cannot directly refer to existing Melder colours such as Melder_WHITE,
64 because that might lead to an initialization race.
65 Therefore, all of these definitions have to invoke their own MelderColour initialization.
66 */
67 MelderColourcxx . . $ MelderColour#
68 DataGuiColour_WINDOW_BACKGROUNDcxx . . $ DataGuiColour_WINDOW_BACKGROUND. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (0.95, 0.95, 0.90), // cream
69 DataGuiColour_AREA_BACKGROUNDcxx . . $ DataGuiColour_AREA_BACKGROUND. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (1.0, 1.0, 1.0), // whitish; DON'T REPLACE with Melder_WHITE
70 DataGuiColour_EDITABLEcxx . . $ DataGuiColour_EDITABLE. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (0.0, 0.4, 0.5), // greenish blue (almost teal)
71 DataGuiColour_EDITABLE_FRAMEcxx . . $ DataGuiColour_EDITABLE_FRAME. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (0.0, 0.8, 1.0), // same hue as the lines
72 DataGuiColour_EDITABLE_SELECTEDcxx . . $ DataGuiColour_EDITABLE_SELECTED. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (0.75, 0.35, 0.0), // orangy
73 DataGuiColour_NONEDITABLEcxx . . $ DataGuiColour_NONEDITABLE. = MelderColourcxx . . $ MelderColour# (0.25), // dark grey
74 DataGuiColour_NONEDITABLE_FRAMEcxx . . $ DataGuiColour_NONEDITABLE_FRAME. = MelderColourcxx . . $ MelderColour# (0.85), // same hue as the lines; DON'T REPLACE with Melder_SILVER
75 DataGuiColour_NONEDITABLE_SELECTEDcxx . . $ DataGuiColour_NONEDITABLE_SELECTED. = MelderColourcxx . . $ MelderColour#MelderColour(98dd472ac7e5c3d4). (0.8, 0.0, 0.0); // reddish
76
77 void DataGui_openPraatPicturecxx . . $ DataGui_openPraatPicture(4c5cf9f1c6ae526). (DataGuicxx . . $ DataGui# me) {
78 mycxx . . $ `melder/melder.h:44:9`! _pictureGraphicscxx . . $ structDataGui#_pictureGraphics. = praat_picture_datagui_opencxx . . $ praat_picture_datagui_open(fd9aabc8505e6f7b). (mycxx . . $ `melder/melder.h:44:9`! instancePref_picture_eraseFirstcxx . . $ structDataGui#instancePref_picture_eraseFirst(50ce9a9e25b4a850).());
79 }
80 void DataGui_closePraatPicturecxx . . $ DataGui_closePraatPicture(4c5cf9f1c6ae526). (DataGuicxx . . $ DataGui# me) {
81 const Daatacxx . . $ Daata# theDataWhoseNameWeMayWantToWriteAtTheTop = mycxx . . $ `melder/melder.h:44:9`! bosscxx . . $ structDataGui#boss(ebca83c96e4202ef).() -> datacxx . . $ structDataGui#data(e8441e10bf3a9c6e).();
82 // same as the title of the window (may not be precise, if we are editing two objects at a time)
83 if (theDataWhoseNameWeMayWantToWriteAtTheTop && mycxx . . $ `melder/melder.h:44:9`! classPref_picture_writeNameAtTopcxx . . $ structDataGui#classPref_picture_writeNameAtTop(8c6b01f81e4601cb).() != kDataGui_writeNameAtTop::NO_) {
84 Graphics_setNumberSignIsBoldcxx . . $ Graphics_setNumberSignIsBold(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), false);
85 Graphics_setPercentSignIsItaliccxx . . $ Graphics_setPercentSignIsItalic(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), false);
86 Graphics_setCircumflexIsSuperscriptcxx . . $ Graphics_setCircumflexIsSuperscript(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), false);
87 Graphics_setUnderscoreIsSubscriptcxx . . $ Graphics_setUnderscoreIsSubscript(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), false);
88 Graphics_textTopcxx . . $ Graphics_textTop(48cf1f690ec61203). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(),
89 mycxx . . $ `melder/melder.h:44:9`! classPref_picture_writeNameAtTopcxx . . $ structDataGui#classPref_picture_writeNameAtTop(8c6b01f81e4601cb).() == kDataGui_writeNameAtTop::FAR_,
90 theDataWhoseNameWeMayWantToWriteAtTheTop -> namecxx . . $ structThing#name..getcxx . . $ _autostring#get(5a2a78a048fb49a8).()
91 );
92 Graphics_setNumberSignIsBoldcxx . . $ Graphics_setNumberSignIsBold(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), true);
93 Graphics_setPercentSignIsItaliccxx . . $ Graphics_setPercentSignIsItalic(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), true);
94 Graphics_setCircumflexIsSuperscriptcxx . . $ Graphics_setCircumflexIsSuperscript(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), true);
95 Graphics_setUnderscoreIsSubscriptcxx . . $ Graphics_setUnderscoreIsSubscript(b5ae742079ad918c). (mycxx . . $ `melder/melder.h:44:9`! pictureGraphicscxx . . $ structDataGui#pictureGraphics(5af6864da672d398).(), true);
96 }
97 praat_picture_datagui_closecxx . . $ praat_picture_datagui_close(49f6e7a06ebc5aa8). ();
98 }
99
100 /* End of file DataGui.cpp */