No Description

project.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #ifndef PROJECT_H
  2. #define PROJECT_H
  3. #include "map.h"
  4. #include "blockdata.h"
  5. #include <QStringList>
  6. #include <QList>
  7. class Project
  8. {
  9. public:
  10. Project();
  11. QString root;
  12. QStringList *groupNames = NULL;
  13. QList<QStringList*> *groupedMapNames = NULL;
  14. QStringList *mapNames = NULL;
  15. QMap<QString, Map*> *map_cache;
  16. Map* loadMap(QString);
  17. Map* getMap(QString);
  18. QMap<QString, Tileset*> *tileset_cache = NULL;
  19. Tileset* loadTileset(QString);
  20. Tileset* getTileset(QString);
  21. Blockdata* readBlockdata(QString);
  22. void loadBlockdata(Map*);
  23. QString readTextFile(QString path);
  24. void saveTextFile(QString path, QString text);
  25. void readMapGroups();
  26. QString getProjectTitle();
  27. QList<QStringList>* getLabelMacros(QList<QStringList>*, QString);
  28. QStringList* getLabelValues(QList<QStringList>*, QString);
  29. void readMapHeader(Map*);
  30. void readMapAttributes(Map*);
  31. void getTilesets(Map*);
  32. void loadTilesetAssets(Tileset*);
  33. QString getBlockdataPath(Map*);
  34. void saveBlockdata(Map*);
  35. void writeBlockdata(QString, Blockdata*);
  36. void saveAllMaps();
  37. void saveMap(Map*);
  38. void saveMapHeader(Map*);
  39. QList<QStringList>* parse(QString text);
  40. QStringList getSongNames();
  41. QString getSongName(int);
  42. QStringList getLocations();
  43. QStringList getVisibilities();
  44. QStringList getWeathers();
  45. QStringList getMapTypes();
  46. QStringList getBattleScenes();
  47. void loadObjectPixmaps(QList<Event*> objects);
  48. QMap<QString, int> getMapObjGfxConstants();
  49. QString fixGraphicPath(QString path);
  50. void readMapEvents(Map *map);
  51. void loadMapConnections(Map *map);
  52. void loadMapBorder(Map *map);
  53. QString getMapBorderPath(Map *map);
  54. void saveMapEvents(Map *map);
  55. QStringList readCArray(QString text, QString label);
  56. QString readCIncbin(QString text, QString label);
  57. };
  58. #endif // PROJECT_H