Debian Codegraph @

gram/OTMultiEditor.h

raw
1 #ifndef _OTMultiEditor_h_
2 #define _OTMultiEditor_h_
3 /* OTMultiEditor.h
4 *
5 * Copyright (C) 2005,2007,2009-2012,2015-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 "HyperPage.h"
22 #include "OTMulti.h"
23
24 Thing_define (OTMultiEditor, HyperPage) {
25 OTMulti otMulti() { return static_cast <OTMulti> (our data()); }
26
27 autostring32 form1, form2;
28 GuiText form1Text, form2Text;
29 integer selectedConstraint;
30 bool d_constraintsAreDrawnVertically;
31
32 bool v_hasEditMenu ()
33 override { return true; }
34 void v_createChildren ()
35 override;
36 void v_createMenus ()
37 override;
38 void v_createMenuItems_help (EditorMenu menu)
39 override;
40 void v_draw ()
41 override;
42 int v_goToPage (conststring32 title)
43 override;
44 };
45
46 autoOTMultiEditor OTMultiEditor_create (conststring32 title, OTMulti grammar);
47
48 /* End of file OTMultiEditor.h */
49 #endif