2019-05-10 18:56:19 +02:00
|
|
|
#ifndef LBLFILE_H
|
|
|
|
#define LBLFILE_H
|
|
|
|
|
|
|
|
#include "subfile.h"
|
2019-06-30 20:39:22 +02:00
|
|
|
#include "label.h"
|
2019-05-10 18:56:19 +02:00
|
|
|
|
|
|
|
class QTextCodec;
|
|
|
|
|
|
|
|
class LBLFile : public SubFile
|
|
|
|
{
|
|
|
|
public:
|
2019-09-05 22:31:13 +02:00
|
|
|
LBLFile(IMG *img)
|
|
|
|
: SubFile(img), _codec(0), _offset(0), _size(0), _poiOffset(0),
|
2019-08-12 22:20:12 +02:00
|
|
|
_poiSize(0), _poiMultiplier(0), _multiplier(0), _encoding(0) {}
|
2019-09-05 22:31:13 +02:00
|
|
|
LBLFile(SubFile *gmp, quint32 offset) : SubFile(gmp, offset),
|
|
|
|
_codec(0), _offset(0), _size(0), _poiOffset(0), _poiSize(0),
|
|
|
|
_poiMultiplier(0), _multiplier(0), _encoding(0) {}
|
2019-05-10 18:56:19 +02:00
|
|
|
|
2019-06-30 20:39:22 +02:00
|
|
|
Label label(Handle &hdl, quint32 offset, bool poi = false);
|
2019-05-10 18:56:19 +02:00
|
|
|
|
|
|
|
private:
|
|
|
|
bool init();
|
|
|
|
|
2019-06-30 20:39:22 +02:00
|
|
|
Label label6b(Handle &hdl, quint32 offset) const;
|
|
|
|
Label label8b(Handle &hdl, quint32 offset) const;
|
2019-05-10 18:56:19 +02:00
|
|
|
|
2019-08-12 22:20:12 +02:00
|
|
|
QTextCodec *_codec;
|
2019-05-10 18:56:19 +02:00
|
|
|
quint32 _offset;
|
|
|
|
quint32 _size;
|
|
|
|
quint32 _poiOffset;
|
|
|
|
quint32 _poiSize;
|
2019-08-12 22:20:12 +02:00
|
|
|
quint8 _poiMultiplier;
|
2019-05-10 18:56:19 +02:00
|
|
|
quint8 _multiplier;
|
|
|
|
quint8 _encoding;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LBLFILE_H
|