CategoriesEditor.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. #ifndef _CategoriesEditor_h_
  2. #define _CategoriesEditor_h_
  3. /* CategoriesEditor.h
  4. *
  5. * Copyright (C) 1993-2011, 2015 David Weenink
  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. #include "Command.h"
  21. #include "Editor.h"
  22. #include "Categories.h"
  23. Thing_define (CategoriesEditor, Editor) {
  24. autoCommandHistory history;
  25. int position;
  26. GuiList list;
  27. GuiText text;
  28. GuiButton undo, redo;
  29. GuiLabel outOfView;
  30. GuiButton remove, insert, insertAtEnd, replace, moveUp, moveDown;
  31. void v_destroy () noexcept
  32. override;
  33. void v_createChildren ()
  34. override;
  35. void v_createHelpMenuItems (EditorMenu menu)
  36. override;
  37. void v_dataChanged ()
  38. override;
  39. };
  40. autoCategoriesEditor CategoriesEditor_create (conststring32 title, Categories data);
  41. #endif /* _CategoriesEditor_h_ */