#pragma once #ifndef PALETTEUTIL_H #define PALETTEUTIL_H #include #include #include class PaletteUtil { public: PaletteUtil(); QList parse(QString filepath, bool* error); void writeJASC(QString filepath, QVector colors, int offset, int nColors); private: QList parsePal(QString filepath, bool* error); QList parseJASC(QString filepath, bool* error); QList parseAdvanceMapPal(QString filepath, bool* error); QList parseAdobeColorTable(QString filepath, bool* error); QList parseTileLayerPro(QString filepath, bool* error); QList parseAdvancePaletteEditor(QString filepath, bool* error); int clampColorValue(int value); }; #endif // PALETTEUTIL_H