DIE Engine
Loading...
Searching...
No Matches
wdgtexselector.h
Go to the documentation of this file.
1
11
12#ifndef WDG_TEX_SELECTOR_H
13#define WDG_TEX_SELECTOR_H
14
15#include <QWidget>
16
17class WdgTexSelector : public QWidget
18{
19 Q_OBJECT
20
21public:
22 explicit WdgTexSelector(QWidget *parent = nullptr);
23 void setScroll(int scroll);
24 int getScroll() {return scroll;}
25
27 void slice(const QString & path);
28
30 void concat(const QString & path);
31
32private:
33 int scroll;
34
35protected:
36 void paintEvent(QPaintEvent * event) override;
37 void mousePressEvent(QMouseEvent *event) override;
38 void wheelEvent(QWheelEvent *event) override;
39};
40
41#endif // WDG_TEX_SELECTOR_H
void paintEvent(QPaintEvent *event) override
Definition wdgtexselector.cpp:32
void concat(const QString &path)
Rebuild the strip from 3x3 mosaik PNGs (centre tile of each).
Definition wdgtexselector.cpp:141
void setScroll(int scroll)
Definition wdgtexselector.cpp:95
void mousePressEvent(QMouseEvent *event) override
Definition wdgtexselector.cpp:74
void slice(const QString &path)
Export every tile as a 3x3 mosaik PNG (for seamless painting).
Definition wdgtexselector.cpp:114
WdgTexSelector(QWidget *parent=nullptr)
Definition wdgtexselector.cpp:25
int getScroll()
Definition wdgtexselector.h:24
void wheelEvent(QWheelEvent *event) override
Definition wdgtexselector.cpp:102