| 1 | #cxx . . $ `<file>/sys/TextEditor.h`/ifndef _TextEditor_h_ |
| 2 | #define _TextEditor_h_cxx . . $ `sys/TextEditor.h:2:9`! |
| 3 | /* TextEditor.h |
| 4 | * |
| 5 | * Copyright (C) 1997-2011,2012,2013,2015,2016,2018,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 "Editor.h"cxx . . $ `<file>/sys/Editor.h`/ |
| 22 | |
| 23 | Thing_definecxx . . $ ClassInfo# (TextEditor, Editor) { |
| 24 | structMelderFilecxx . . $ structMelderFile# filecxx . . $ structTextEditor#file.; |
| 25 | GuiTextcxx . . $ GuiText# textWidgetcxx . . $ structTextEditor#textWidget.; |
| 26 | autoUiFormcxx . . $ autoUiForm# openDialogcxx . . $ structTextEditor#openDialog., saveDialogcxx . . $ structTextEditor#saveDialog.; |
| 27 | bool dirtycxx . . $ structTextEditor#dirty.; |
| 28 | GuiDialogcxx . . $ GuiDialog# dirtyNewDialogcxx . . $ structTextEditor#dirtyNewDialog., dirtyOpenDialogcxx . . $ structTextEditor#dirtyOpenDialog., dirtyReopenDialogcxx . . $ structTextEditor#dirtyReopenDialog., dirtyCloseDialogcxx . . $ structTextEditor#dirtyCloseDialog.; |
| 29 | GuiMenuItemcxx . . $ GuiMenuItem# fontSizeButton_10cxx . . $ structTextEditor#fontSizeButton_10., fontSizeButton_12cxx . . $ structTextEditor#fontSizeButton_12., fontSizeButton_14cxx . . $ structTextEditor#fontSizeButton_14., fontSizeButton_18cxx . . $ structTextEditor#fontSizeButton_18., fontSizeButton_24cxx . . $ structTextEditor#fontSizeButton_24.; |
| 30 | |
| 31 | void v9_destroycxx . . $ structTextEditor#v9_destroy(ced63f7c635d850d). () noexcept |
| 32 | override; |
| 33 | void v_nameChangedcxx . . $ structTextEditor#v_nameChanged(49f6e7a06ebc5aa8). () |
| 34 | override; |
| 35 | void v_goAwaycxx . . $ structTextEditor#v_goAway(49f6e7a06ebc5aa8). () |
| 36 | override; |
| 37 | void v_createChildrencxx . . $ structTextEditor#v_createChildren(49f6e7a06ebc5aa8). () |
| 38 | override; |
| 39 | void v_createMenuscxx . . $ structTextEditor#v_createMenus(49f6e7a06ebc5aa8). () |
| 40 | override; |
| 41 | bool v_canReportSettingscxx . . $ structTextEditor#v_canReportSettings(c9857a73d68e59ba). () |
| 42 | override { return false; } |
| 43 | |
| 44 | virtual bool v_fileBasedcxx . . $ structTextEditor#v_fileBased(50ce9a9e25b4a850). () const { return true; }; // if true, have New, Open..., Save; if false, have Clear |
| 45 | virtual conststring32cxx . . $ conststring32# v_extensioncxx . . $ structTextEditor#v_extension(d608cbfe2b610d03). () const { return U".txt"; } |
| 46 | virtual void v_clearcxx . . $ structTextEditor#v_clear(49f6e7a06ebc5aa8). () { } |
| 47 | |
| 48 | #include "TextEditor_prefs.h"cxx . . $ `<file>/sys/TextEditor_prefs.h`/ |
| 49 | }; |
| 50 | |
| 51 | void TextEditor_initcxx . . $ TextEditor_init(9ba39b4797eb5880). (TextEditorcxx . . $ TextEditor# me, |
| 52 | conststring32cxx . . $ conststring32# initialText |
| 53 | ); |
| 54 | autoTextEditorcxx . . $ autoTextEditor# TextEditor_createcxx . . $ TextEditor_create(7d6280c58e2fee76). ( |
| 55 | conststring32cxx . . $ conststring32# initialText // may be null |
| 56 | ); |
| 57 | |
| 58 | void TextEditor_showOpencxx . . $ TextEditor_showOpen(22283699a15c80c8). (TextEditorcxx . . $ TextEditor# me); |
| 59 | |
| 60 | /* End of file TextEditor.h */ |
| 61 | #endif |