2018-09-27 00:30:05 +01:00
|
|
|
#ifndef CURRENTSELECTEDMETATILESPIXMAPITEM_H
|
|
|
|
#define CURRENTSELECTEDMETATILESPIXMAPITEM_H
|
|
|
|
|
|
|
|
#include "metatileselector.h"
|
|
|
|
#include <QGraphicsPixmapItem>
|
|
|
|
|
2023-02-01 20:02:26 +00:00
|
|
|
class Layout;
|
|
|
|
|
2021-02-18 13:43:52 +00:00
|
|
|
class CurrentSelectedMetatilesPixmapItem : public QGraphicsPixmapItem {
|
2018-09-27 00:30:05 +01:00
|
|
|
public:
|
2023-02-01 20:02:26 +00:00
|
|
|
CurrentSelectedMetatilesPixmapItem(Layout *layout, MetatileSelector *metatileSelector) {
|
|
|
|
this->layout = layout;
|
2018-09-27 00:30:05 +01:00
|
|
|
this->metatileSelector = metatileSelector;
|
|
|
|
}
|
2023-02-01 20:02:26 +00:00
|
|
|
Layout *layout = nullptr;
|
2018-09-27 00:30:05 +01:00
|
|
|
MetatileSelector *metatileSelector;
|
|
|
|
void draw();
|
2020-08-20 00:30:35 +01:00
|
|
|
|
2023-02-01 20:02:26 +00:00
|
|
|
void setLayout(Layout *layout) { this->layout = layout; }
|
2018-09-27 00:30:05 +01:00
|
|
|
};
|
|
|
|
|
2023-02-01 20:02:26 +00:00
|
|
|
QPixmap drawMetatileSelection(MetatileSelection selection, Layout *layout);
|
2022-09-06 02:51:31 +01:00
|
|
|
|
2018-09-27 00:30:05 +01:00
|
|
|
#endif // CURRENTSELECTEDMETATILESPIXMAPITEM_H
|