gcsx_tilesetprop.h 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. /* GCSx
  2. ** TILESETPROP.H
  3. **
  4. ** Tileset properties dialog
  5. */
  6. /*****************************************************************************
  7. ** Copyright (C) 2003-2006 Janson
  8. **
  9. ** This program is free software; you can redistribute it and/or modify
  10. ** it under the terms of the GNU General Public License as published by
  11. ** the Free Software Foundation; either version 2 of the License, or
  12. ** (at your option) any later version.
  13. **
  14. ** This program is distributed in the hope that it will be useful,
  15. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  17. ** GNU General Public License for more details.
  18. **
  19. ** You should have received a copy of the GNU General Public License
  20. ** along with this program; if not, write to the Free Software
  21. ** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
  22. *****************************************************************************/
  23. #ifndef __GCSx_TILESETPROP_H_
  24. #define __GCSx_TILESETPROP_H_
  25. class TileSetPropertiesDialog : private Dialog {
  26. private:
  27. int initialized;
  28. int isFont;
  29. const class TileSet* tileset;
  30. enum {
  31. ID_LABEL = 1,
  32. ID_NAME,
  33. ID_WIDTH,
  34. ID_HEIGHT,
  35. ID_COUNT,
  36. ID_MAPS,
  37. ID_FIXED,
  38. ID_FIXEDCOUNT,
  39. ID_TRANSPARENT,
  40. ID_OK,
  41. ID_CANCEL,
  42. };
  43. static class TileSetPropertiesDialog* dialogFontSet;
  44. static class TileSetPropertiesDialog* dialogTileSet;
  45. public:
  46. TileSetPropertiesDialog(int font);
  47. static class TileSetPropertiesDialog* createFontSet();
  48. static class TileSetPropertiesDialog* createTileSet();
  49. static void destroy();
  50. int run(std::string* title, int* width, int* height, int* count, int* maps, int* fixedWidth, int* defaultTransparent, const class TileSet* whichTileset);
  51. ButtonAction verifyEntry(int buttonId, ButtonAction buttonType);
  52. };
  53. #endif