| 1 |
#ifndef _CategoriesEditor_h_ |
| 2 |
#define _CategoriesEditor_h_ |
| 3 |
/* CategoriesEditor.h |
| 4 |
* |
| 5 |
* Copyright (C) 1993-2018 David Weenink, 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. See the GNU |
| 15 |
* 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 "Command.h" |
| 22 |
#include "ScriptEditor.h" |
| 23 |
#include "Categories.h" |
| 24 |
|
| 25 |
Thing_define (CategoriesEditor, Editor) { |
| 26 |
Categories categories() { return static_cast <Categories> (our data()); } |
| 27 |
|
| 28 |
autoCommandHistory history; |
| 29 |
integer position; |
| 30 |
GuiList list; |
| 31 |
GuiText text; |
| 32 |
GuiButton undo, redo; |
| 33 |
GuiLabel outOfView; |
| 34 |
GuiButton remove, insert, insertAtEnd, replace, moveUp, moveDown; |
| 35 |
|
| 36 |
void v_createChildren () |
| 37 |
override; |
| 38 |
void v_createMenuItems_help (EditorMenu menu) |
| 39 |
override; |
| 40 |
void v1_dataChanged (Editor sender) |
| 41 |
override; |
| 42 |
}; |
| 43 |
|
| 44 |
autoCategoriesEditor CategoriesEditor_create (conststring32 title, Categories data); |
| 45 |
|
| 46 |
#endif /* _CategoriesEditor_h_ */ |