aseprite/src/gen
David Capello e025d1a40a Improve widget class generator including only required .h files
Instead of including "ui/ui.h" we can include the specific header file
for the used widgets in the .xml widget.
2018-06-08 15:52:10 -03:00
..
check_strings.cpp
check_strings.h
CMakeLists.txt
common.h
gen.cpp Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
LICENSE.txt
pref_types.cpp Add new pref="" attribute to <check> widgets to bind check boxes with bool preference options automatically 2018-06-06 16:35:02 -03:00
pref_types.h
README.md
strings_class.cpp Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
strings_class.h Generate the list of command IDs from en.ini file 2017-12-01 15:10:21 -03:00
theme_class.cpp
theme_class.h
ui_class.cpp Improve widget class generator including only required .h files 2018-06-08 15:52:10 -03:00
ui_class.h

Aseprite Code Generator

Copyright (C) 2014 David Capello

Distributed under MIT license

This utility generates source code from XML files. Its aim is to convert XML files (dynamic data) to C++ files (static structures) that can be checked in compile-time. There are three areas of interest:

  1. To create ui::Widgets subclasses from data/widgets/*.xml files. In this way we can create wrappers that can access to each XML file directly in a easier way (e.g. one member for each widget with an id parameter on it).
  2. To create configuration wrappers from a special config-metadata.xml file (so we can replace get/set_config_int/bool/string() function calls). There is an ongoing cfg module to replace the whole reading/writing operations of user's settings/preferences.
  3. To create a wrapper class for theme data access. From data/skins/default/ we can create a C++ class with a member function to access each theme slice, color, style, etc.