gcsx_spawnprop.h 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. /* GCSx
  2. ** SPAWNPROP.H
  3. **
  4. ** Spawn-point 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_SPAWNPROP_H_
  24. #define __GCSx_SPAWNPROP_H_
  25. class SpawnPropertiesDialog : private ImageDialog {
  26. public:
  27. static int autoSync;
  28. private:
  29. int hasSprite;
  30. int initialized;
  31. TreeView* tree;
  32. std::string* titleS;
  33. class WorldEdit* wWorld;
  34. enum {
  35. ID_LABEL = 1,
  36. ID_SCRIPTLABEL,
  37. ID_SCRIPT,
  38. ID_SYNC,
  39. ID_NAME,
  40. ID_LIBRARY,
  41. ID_IMAGE,
  42. ID_OK,
  43. ID_CANCEL,
  44. };
  45. static class SpawnPropertiesDialog* dialogWithSprite;
  46. static class SpawnPropertiesDialog* dialogNoSprite;
  47. static int treeViewWrap(void* ptr, int code, int command, int check);
  48. int treeView(int code, int command, int check);
  49. public:
  50. SpawnPropertiesDialog(int isSprite);
  51. virtual ~SpawnPropertiesDialog();
  52. static class SpawnPropertiesDialog* createWithSprite();
  53. static class SpawnPropertiesDialog* createNoSprite();
  54. static void destroy();
  55. int run(std::string* title, class Script** script, class AnimGroup** animGroup, class TileSet** tileSet, int* animTileId, class WorldEdit* whichWorld);
  56. ButtonAction verifyEntry(int buttonId, ButtonAction buttonType);
  57. };
  58. #endif