-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspriteseditor.h
More file actions
36 lines (27 loc) · 802 Bytes
/
spriteseditor.h
File metadata and controls
36 lines (27 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef SPRITESEDITOR_H
#define SPRITESEDITOR_H
#include "map.h"
#include <QWidget>
#include <QComboBox>
#include <QSpinBox>
class SpritesEditor : public QWidget
{
Q_OBJECT
public:
explicit SpritesEditor(Map* map, QWidget* parent = 0);
void setMap(Map* map);
private slots:
void sprite1TypeChanged(int sprite1Type);
void sprite1StartNodeChanged(int sprite1StartNode);
void sprite2TypeChanged(int sprite2Type);
void sprite2StartNodeChanged(int sprite2StartNode);
private:
class HorLine : public QFrame { public: HorLine() { setFrameStyle(QFrame::HLine | QFrame::Sunken); } };
Map* map;
QComboBox* sprite1Type;
QSpinBox* sprite1StartNode;
QComboBox* sprite2Type;
QSpinBox* sprite2StartNode;
void updateInfo();
};
#endif // SPRITESEDITOR_H