| 1 | #cxx . . $ `<file>/foned/TextGridArea.h`/ifndef _TextGridArea_h_ |
| 2 | #define _TextGridArea_h_cxx . . $ `foned/TextGridArea.h:2:9`! |
| 3 | /* TextGridArea.h |
| 4 | * |
| 5 | * Copyright (C) 1992-2005,2007-2022 Paul Boersma |
| 6 | * |
| 7 | * This code is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or (at |
| 10 | * your option) any later version. |
| 11 | * |
| 12 | * This code is distributed in the hope that it will be useful, but |
| 13 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 15 | * See the GNU General Public License for more details. |
| 16 | * |
| 17 | * You should have received a copy of the GNU General Public License |
| 18 | * along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 19 | */ |
| 20 | |
| 21 | #include "FunctionArea.h"cxx . . $ `<file>/foned/FunctionArea.h`/ |
| 22 | #include "TextGrid.h"cxx . . $ `<file>/fon/TextGrid.h`/ |
| 23 | #include "SpellingChecker.h"cxx . . $ `<file>/fon/SpellingChecker.h`/ |
| 24 | #include "Preferences.h"cxx . . $ `<file>/sys/Preferences.h`/ |
| 25 | |
| 26 | #include "TextGridArea_enums.h"cxx . . $ `<file>/foned/TextGridArea_enums.h`/ |
| 27 | |
| 28 | Thing_declarecxx . . $ theClassInfo_SoundArea. (SoundArea); |
| 29 | Thing_declarecxx . . $ SoundAnalysisAreaHandle# (SoundAnalysisArea); |
| 30 | |
| 31 | Thing_definecxx . . $ structTextGridArea# (TextGridArea, FunctionArea) { |
| 32 | TextGridcxx . . $ TextGrid# textGridcxx . . $ structTextGridArea#textGrid(fcfb4af0a9ec1dbb).() const { return static_cast <TextGridcxx . . $ TextGrid#> (ourcxx . . $ `melder/melder.h:42:9`! functioncxx . . $ structFunctionArea#function(8985a8e07d4255bd).()); } |
| 33 | SoundAreacxx . . $ SoundArea# borrowedSoundAreacxx . . $ structTextGridArea#borrowedSoundArea. = nullptr; |
| 34 | SoundAnalysisAreacxx . . $ SoundAnalysisArea# borrowedSoundAnalysisAreacxx . . $ structTextGridArea#borrowedSoundAnalysisArea. = nullptr; |
| 35 | |
| 36 | integercxx . . $ integer# selectedTiercxx . . $ structTextGridArea#selectedTier. = 1; |
| 37 | bool suppressRedrawcxx . . $ structTextGridArea#suppressRedraw., suppressTextCursorJumpcxx . . $ structTextGridArea#suppressTextCursorJump.; |
| 38 | autostring32cxx . . $ autostring32# findStringcxx . . $ structTextGridArea#findString.; |
| 39 | SpellingCheckercxx . . $ SpellingChecker# spellingCheckercxx . . $ structTextGridArea#spellingChecker.; |
| 40 | |
| 41 | private: |
| 42 | void v_specializedHighlightBackgroundcxx . . $ structTextGridArea#v_specializedHighlightBackground(83f5f38750778ac8). () const |
| 43 | override; |
| 44 | |
| 45 | private: |
| 46 | /* only in v_mouse: */ |
| 47 | double anchorTimecxx . . $ structTextGridArea#anchorTime. = undefinedcxx . . $ undefined.; |
| 48 | integercxx . . $ integer# clickedLeftBoundarycxx . . $ structTextGridArea#clickedLeftBoundary. = 0; |
| 49 | double leftDraggingBoundarycxx . . $ structTextGridArea#leftDraggingBoundary. = undefinedcxx . . $ undefined., rightDraggingBoundarycxx . . $ structTextGridArea#rightDraggingBoundary. = undefinedcxx . . $ undefined.; // initial dragging range |
| 50 | double draggingTimecxx . . $ structTextGridArea#draggingTime. = undefinedcxx . . $ undefined.; |
| 51 | autoBOOLVECcxx . . $ autoBOOLVEC# draggingTierscxx . . $ structTextGridArea#draggingTiers.; |
| 52 | bool hasBeenDraggedBeyondVicinityRadiusAtLeastOncecxx . . $ structTextGridArea#hasBeenDraggedBeyondVicinityRadiusAtLeastOnce. = false; |
| 53 | public: |
| 54 | void v1_infocxx . . $ structTextGridArea#v1_info(49f6e7a06ebc5aa8). () |
| 55 | override; |
| 56 | void v_drawInsidecxx . . $ structTextGridArea#v_drawInside(49f6e7a06ebc5aa8). () |
| 57 | override; |
| 58 | bool v_mousecxx . . $ structTextGridArea#v_mouse(3d5a26054778c78d). (GuiDrawingArea_MouseEventcxx . . $ GuiDrawingArea_MouseEvent# event, double x_world, double localY_fraction) |
| 59 | override; |
| 60 | GuiMenuItemcxx . . $ GuiMenuItem# extractSelectedTextGridPreserveTimesButtoncxx . . $ structTextGridArea#extractSelectedTextGridPreserveTimesButton., extractSelectedTextGridTimeFromZeroButtoncxx . . $ structTextGridArea#extractSelectedTextGridTimeFromZeroButton.; |
| 61 | void v_createMenuItems_savecxx . . $ structTextGridArea#v_createMenuItems_save(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) |
| 62 | override; |
| 63 | void v_createMenuItems_editcxx . . $ structTextGridArea#v_createMenuItems_edit(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) |
| 64 | override; |
| 65 | void v_createMenuscxx . . $ structTextGridArea#v_createMenus(49f6e7a06ebc5aa8). () |
| 66 | override; |
| 67 | void v_updateMenuItemscxx . . $ structTextGridArea#v_updateMenuItems(49f6e7a06ebc5aa8). () |
| 68 | override; |
| 69 | double maximumInitialLengthOfWindowcxx . . $ structTextGridArea#maximumInitialLengthOfWindow(31fa7155c10fdd13). () override { |
| 70 | return 30.0; |
| 71 | } |
| 72 | void v_updateTextcxx . . $ structTextGridArea#v_updateText(49f6e7a06ebc5aa8). () override; |
| 73 | |
| 74 | #include "TextGridArea_prefs.h"cxx . . $ `<file>/foned/TextGridArea_prefs.h`/ |
| 75 | }; |
| 76 | |
| 77 | DEFINE_FunctionArea_createcxx . . $ autoSomeThing#static_cast_move(8f979c7064dbabcf). (TextGridArea, TextGrid) |
| 78 | |
| 79 | void TextGridArea_drawSelectionViewercxx . . $ TextGridArea_drawSelectionViewer(2e1574b2e91b5572). (TextGridAreacxx . . $ TextGridArea# me); |
| 80 | void TextGridArea_clickSelectionViewercxx . . $ TextGridArea_clickSelectionViewer(1c925e44836ddbf6). (TextGridAreacxx . . $ TextGridArea# me, double x_fraction, double y_fraction); |
| 81 | |
| 82 | /* End of file TextGridArea.h */ |
| 83 | #endif |