2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef TTIO_BMP_INCLUDED
|
|
|
|
#define TTIO_BMP_INCLUDED
|
|
|
|
|
|
|
|
#include "tiio.h"
|
|
|
|
#include "tproperty.h"
|
|
|
|
|
2018-06-04 15:18:43 +12:00
|
|
|
#include <QCoreApplication>
|
|
|
|
|
2016-03-19 06:57:51 +13:00
|
|
|
#undef DVAPI
|
|
|
|
#ifdef TNZCORE_EXPORTS
|
|
|
|
#define DVAPI DV_EXPORT_API
|
|
|
|
#else
|
|
|
|
#define DVAPI DV_IMPORT_API
|
|
|
|
#endif
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
namespace Tiio {
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
DVAPI Tiio::ReaderMaker makeBmpReader;
|
|
|
|
DVAPI Tiio::WriterMaker makeBmpWriter;
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
// DVAPI TPropertyGroup *makeBmpWriterProperties();
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class BmpWriterProperties final : public TPropertyGroup {
|
2018-06-04 15:18:43 +12:00
|
|
|
Q_DECLARE_TR_FUNCTIONS(BmpWriterProperties)
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TEnumProperty m_pixelSize;
|
|
|
|
// TBoolProperty m_compressed;
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
BmpWriterProperties();
|
2018-06-04 15:18:43 +12:00
|
|
|
|
|
|
|
void updateTranslation() override;
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
2016-06-15 18:43:10 +12:00
|
|
|
} // namespace
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#endif
|