| 1 | #cxx . . $ `<file>/sys/NotebookEditor.h`/ifndef _NotebookEditor_h_ |
| 2 | #define _NotebookEditor_h_cxx . . $ `sys/NotebookEditor.h:2:9`! |
| 3 | /* NotebookEditor.h |
| 4 | * |
| 5 | * Copyright (C) 2023,2026 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 3 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 "ManPages.h"cxx . . $ `<file>/sys/ManPages.h`/ |
| 22 | #include "Notebook.h"cxx . . $ `<file>/sys/Notebook.h`/ |
| 23 | #include "TextEditor.h"cxx . . $ `<file>/sys/TextEditor.h`/ |
| 24 | #include "Interpreter.h"cxx . . $ `<file>/sys/Interpreter.h`/ |
| 25 | |
| 26 | Thing_definecxx . . $ structNotebookEditor# (NotebookEditor, TextEditor) { |
| 27 | autoInterpreterStackcxx . . $ autoInterpreterStack# interpreterStackcxx . . $ structNotebookEditor#interpreterStack.; |
| 28 | autoUiFormcxx . . $ autoUiForm# argsDialogcxx . . $ structNotebookEditor#argsDialog.; |
| 29 | |
| 30 | void v9_destroycxx . . $ structNotebookEditor#v9_destroy(ced63f7c635d850d). () noexcept |
| 31 | override; |
| 32 | void v_nameChangedcxx . . $ structNotebookEditor#v_nameChanged(49f6e7a06ebc5aa8). () |
| 33 | override; |
| 34 | void v_goAwaycxx . . $ structNotebookEditor#v_goAway(49f6e7a06ebc5aa8). () |
| 35 | override; |
| 36 | bool v_scriptablecxx . . $ structNotebookEditor#v_scriptable(c9857a73d68e59ba). () |
| 37 | override { return false; } |
| 38 | void v_createMenuscxx . . $ structNotebookEditor#v_createMenus(49f6e7a06ebc5aa8). () |
| 39 | override; |
| 40 | void v_createMenuItems_helpcxx . . $ structNotebookEditor#v_createMenuItems_help(6ea9c8c6ea2f58a9). (EditorMenucxx . . $ EditorMenu# menu) |
| 41 | override; |
| 42 | conststring32cxx . . $ conststring32# v_extensioncxx . . $ structNotebookEditor#v_extension(d608cbfe2b610d03). () const |
| 43 | override { return U".praatnb"; } |
| 44 | }; |
| 45 | |
| 46 | void NotebookEditor_initcxx . . $ NotebookEditor_init(edd84ce69971f6a0). (NotebookEditorcxx . . $ NotebookEditor# me, |
| 47 | conststring32cxx . . $ conststring32# initialText |
| 48 | ); |
| 49 | autoNotebookEditorcxx . . $ autoNotebookEditor# NotebookEditor_createFromTextcxx . . $ NotebookEditor_createFromText(2ab91d38f0848c38). ( |
| 50 | conststring32cxx . . $ conststring32# initialText // may be null |
| 51 | ); |
| 52 | |
| 53 | autoNotebookEditorcxx . . $ autoNotebookEditor# NotebookEditor_createFromNotebook_canBeNullcxx . . $ NotebookEditor_createFromNotebook_canBeNull(57835e04bf6cce63). ( |
| 54 | Notebookcxx . . $ Notebook# notebook |
| 55 | ); |
| 56 | |
| 57 | bool NotebookEditors_dirtycxx . . $ NotebookEditors_dirty(c9857a73d68e59ba). (); // are there any modified and unsaved notebooks? Ask before quitting the program. |
| 58 | |
| 59 | void NotebookEditor_debug_printAllOpenNotebookEditorscxx . . $ NotebookEditor_debug_printAllOpenNotebookEditors(49f6e7a06ebc5aa8). (); |
| 60 | |
| 61 | extern CollectionOfcxx . . $ CollectionOf# <structNotebookEditorcxx . . $ structNotebookEditor#> theReferencesToAllOpenNotebookEditorscxx . . $ theReferencesToAllOpenNotebookEditors.; |
| 62 | |
| 63 | /* End of file NotebookEditor.h */ |
| 64 | #endif |