-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmainwin.h
More file actions
56 lines (48 loc) · 919 Bytes
/
mainwin.h
File metadata and controls
56 lines (48 loc) · 919 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef _MAINWIN_H
#define _MAINWIN_H
#include <QMainWindow>
#include <QDialog>
#include "mlabel.h"
#define BLK_CHA 1
#define PICK_CP (1<<1) // copy selected tile to current instead
class TMEdit : public QDialog {
Q_OBJECT
public:
TMEdit(QWidget* p=NULL);
private:
QString tmPath;
private slots:
void tileRowUp();
void tileRowDn();
void openTMap();
void saveTMap();
protected:
void keyPressEvent(QKeyEvent*);
};
class MWin : public QMainWindow {
Q_OBJECT
public:
MWin(QWidget* p=NULL);
private:
int flag;
MLabel bigview;
TMEdit* tedit;
void updatePal();
private slots:
void changeCol(int);
void colChanged();
void palChange();
void tilChange(int);
void pickTile();
void pickCopy();
void picked(int);
void flipHor();
void flipVer();
void clearTile();
void fillTile();
void saveTiles();
void savePal();
void openTiles();
void openPal();
};
#endif