You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

54 lines
1.3 KiB

#ifndef TINTMAPMANAGER_H
#define TINTMAPMANAGER_H
#include "viewModel/utils/AutoProperty.h"
#include "viewModel/bMode/display/tint/TintMap.h"
class TintMapManager : public QObject
{
Q_OBJECT
US_PROPERTY_VIEW_ONLY(QString, tintMapTitle, "Tint Map")
US_PROPERTY_CUSTOM_SETTER_INTERNAL(qint32, tintMap, 0)
US_PROPERTY_VIEW_ONLY(QStringList, tintMapColor, {})
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap0, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap1, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap2, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap3, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap4, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap5, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap6, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap7, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap8, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap9, Q_NULLPTR)
US_PROPERTY_VIEW_ONLY(TintMap*, tintMap10, Q_NULLPTR)
private:
TintMap* getTintMap(qint32 index);
QList<quint8> _grayMapData;
void calcTintBar();
public:
TintMapManager();
QList<QList<quint8> > getTintMapData();
void setIndex(qint32 index);
//uncrustify off
public slots:
void grayMapChanged(QList<quint8> grayMap);
//uncrustify on
signals:
void tintMapReady();
};
#endif //TINTMAPMANAGER_H