| 1 | #cxx . . $ `<file>/sys/DataEditor.h`/ifndef _DataEditor_h_ |
| 2 | #define _DataEditor_h_cxx . . $ `sys/DataEditor.h:2:9`! |
| 3 | /* DataEditor.h |
| 4 | * |
| 5 | * Copyright (C) 1995-2012,2014-2018,2022,2023 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 "ScriptEditor.h"cxx . . $ `<file>/sys/ScriptEditor.h`/ |
| 22 | |
| 23 | Thing_declarecxx . . $ SomeThingHandle# (DataSubEditor); |
| 24 | Thing_declarecxx . . $ VectorEditorHandle# (VectorEditor); |
| 25 | Thing_declarecxx . . $ MatrixEditorHandle# (MatrixEditor); |
| 26 | Thing_declarecxx . . $ StructEditor# (StructEditor); |
| 27 | Thing_declarecxx . . $ ClassEditorHandle# (ClassEditor); |
| 28 | Thing_declarecxx . . $ autoDataEditor# (DataEditor); |
| 29 | |
| 30 | typedef struct structDataSubEditor_FieldDatacxx . . $ structDataSubEditor_FieldData# { |
| 31 | GuiLabelcxx . . $ GuiLabel# labelcxx . . $ structDataSubEditor_FieldData#label.; |
| 32 | GuiButtoncxx . . $ GuiButton# buttoncxx . . $ structDataSubEditor_FieldData#button.; |
| 33 | GuiTextcxx . . $ GuiText# textcxx . . $ structDataSubEditor_FieldData#text.; |
| 34 | void *addresscxx . . $ structDataSubEditor_FieldData#address.; |
| 35 | Data_Descriptioncxx . . $ Data_Description# descriptioncxx . . $ structDataSubEditor_FieldData#description.; |
| 36 | integercxx . . $ integer# minimumcxx . . $ structDataSubEditor_FieldData#minimum., maximumcxx . . $ structDataSubEditor_FieldData#maximum., min2cxx . . $ structDataSubEditor_FieldData#min2., max2cxx . . $ structDataSubEditor_FieldData#max2.; |
| 37 | autostring32cxx . . $ autostring32# historycxx . . $ structDataSubEditor_FieldData#history.; // the full prefix of the members |
| 38 | int rankcxx . . $ structDataSubEditor_FieldData#rank.; // should the button open a StructEditor (0) or VectorEditor (1) or MatrixEditor (2) ? |
| 39 | int ycxx . . $ structDataSubEditor_FieldData#y.; |
| 40 | } *DataSubEditor_FieldDatacxx . . $ DataSubEditor_FieldData#; |
| 41 | |
| 42 | #define kDataSubEditor_MAXNUM_ROWScxx . . $ `sys/DataEditor.h:42:9`! 12 |
| 43 | |
| 44 | Thing_definecxx . . $ classDataSubEditor. (DataSubEditor, Editor) { |
| 45 | DataEditorcxx . . $ DataEditor# rootcxx . . $ structDataSubEditor#root.; |
| 46 | void *d_addresscxx . . $ structDataSubEditor#d_address.; |
| 47 | Data_Descriptioncxx . . $ Data_Description# d_descriptioncxx . . $ structDataSubEditor#d_description.; |
| 48 | GuiScrollBarcxx . . $ GuiScrollBar# d_scrollBarcxx . . $ structDataSubEditor#d_scrollBar.; |
| 49 | int d_irowcxx . . $ structDataSubEditor#d_irow., d_topFieldcxx . . $ structDataSubEditor#d_topField., d_numberOfFieldscxx . . $ structDataSubEditor#d_numberOfFields.; |
| 50 | struct structDataSubEditor_FieldDatacxx . . $ structDataSubEditor_FieldData# d_fieldDatacxx . . $ structDataSubEditor#d_fieldData. [1 + kDataSubEditor_MAXNUM_ROWScxx . . $ `sys/DataEditor.h:42:9`!]; |
| 51 | |
| 52 | void v9_destroycxx . . $ structDataSubEditor#v9_destroy(ced63f7c635d850d). () noexcept |
| 53 | override; |
| 54 | bool v_scriptablecxx . . $ structDataSubEditor#v_scriptable(c9857a73d68e59ba). () |
| 55 | override { return false; } |
| 56 | void v_createChildrencxx . . $ structDataSubEditor#v_createChildren(49f6e7a06ebc5aa8). () |
| 57 | override; |
| 58 | void v_createMenuItems_helpcxx . . $ structDataSubEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) |
| 59 | override; |
| 60 | |
| 61 | virtual integercxx . . $ integer# v_countFieldscxx . . $ structDataSubEditor#v_countFields(da6335ded91d79c2). () { return 0; } |
| 62 | virtual void v_showMemberscxx . . $ structDataSubEditor#v_showMembers(49f6e7a06ebc5aa8). () { } |
| 63 | }; |
| 64 | |
| 65 | Thing_definecxx . . $ VectorEditor_Parent# (VectorEditor, DataSubEditor) { |
| 66 | integercxx . . $ integer# d_minimumcxx . . $ structVectorEditor#d_minimum., d_maximumcxx . . $ structVectorEditor#d_maximum.; |
| 67 | |
| 68 | integercxx . . $ integer# v_countFieldscxx . . $ structVectorEditor#v_countFields(da6335ded91d79c2). () |
| 69 | override; |
| 70 | void v_showMemberscxx . . $ structVectorEditor#v_showMembers(49f6e7a06ebc5aa8). () |
| 71 | override; |
| 72 | }; |
| 73 | |
| 74 | Thing_definecxx . . $ MatrixEditor# (MatrixEditor, DataSubEditor) { |
| 75 | integercxx . . $ integer# d_minimumcxx . . $ structMatrixEditor#d_minimum., d_maximumcxx . . $ structMatrixEditor#d_maximum., d_min2cxx . . $ structMatrixEditor#d_min2., d_max2cxx . . $ structMatrixEditor#d_max2.; |
| 76 | |
| 77 | integercxx . . $ integer# v_countFieldscxx . . $ structMatrixEditor#v_countFields(da6335ded91d79c2). () |
| 78 | override; |
| 79 | void v_showMemberscxx . . $ structMatrixEditor#v_showMembers(49f6e7a06ebc5aa8). () |
| 80 | override; |
| 81 | }; |
| 82 | |
| 83 | Thing_definecxx . . $ StructEditorHandle# (StructEditor, DataSubEditor) { |
| 84 | integercxx . . $ integer# v_countFieldscxx . . $ structStructEditor#v_countFields(da6335ded91d79c2). () |
| 85 | override; |
| 86 | void v_showMemberscxx . . $ structStructEditor#v_showMembers(49f6e7a06ebc5aa8). () |
| 87 | override; |
| 88 | }; |
| 89 | |
| 90 | Thing_definecxx . . $ mutableClassEditor# (ClassEditor, StructEditor) { |
| 91 | void v_showMemberscxx . . $ structClassEditor#v_showMembers(49f6e7a06ebc5aa8). () |
| 92 | override; |
| 93 | }; |
| 94 | |
| 95 | Thing_definecxx . . $ DataEditor# (DataEditor, ClassEditor) { |
| 96 | CollectionOfcxx . . $ CollectionOf# <structDataSubEditorcxx . . $ structDataSubEditor#> childrencxx . . $ structDataEditor#children.; |
| 97 | |
| 98 | void v9_destroycxx . . $ structDataEditor#v9_destroy(ced63f7c635d850d). () noexcept |
| 99 | override; |
| 100 | void v1_dataChangedcxx . . $ structDataEditor#v1_dataChanged(c0154a85f79216c7). (Editorcxx . . $ Editor# sender) |
| 101 | override; |
| 102 | }; |
| 103 | |
| 104 | autoDataEditorcxx . . $ autoDataEditor# DataEditor_createcxx . . $ DataEditor_create(5c508204efd4b98). (conststring32cxx . . $ conststring32# title, Daatacxx . . $ Daata# data); |
| 105 | |
| 106 | /* End of file DataEditor.h */ |
| 107 | #endif |