-
Notifications
You must be signed in to change notification settings - Fork 4
/
exporthandler.h
77 lines (62 loc) · 1.75 KB
/
exporthandler.h
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#ifndef EXPORTHANDLER_H
#define EXPORTHANDLER_H
#include <QTime>
#include <QDir>
#include <QDialog>
#include <QThread>
#include <QCloseEvent>
#include <QMutexLocker>
#include "exportthread.h"
#include "spritemodel.h"
#include "ui_exporthandler.h"
class ItemModel;
class SpriteModel;
class ExportHandler : public QDialog
{
Q_OBJECT
public:
ExportHandler( QWidget *parent = 0 );
virtual ~ExportHandler( void );
void selectItems( bool value );
void selectOutfits( bool value );
void selectEffects( bool value );
void selectProjectiles( bool value );
void selectSprites( void );
void selectPictures( void );
void setItems( const ItemList& vector );
void setOutfits( const ItemList& vector );
void setEffects( const ItemList& vector );
void setProjectiles( const ItemList& vector );
void updateItems( void );
void setSprites( const ResourceList& vector );
void setPictures( const ResourceList& vector );
void updateSprites( void );
void updatePictures( void );
void setParameters( void );
protected:
virtual void closeEvent( QCloseEvent *event );
private:
ExportThread *exportThread;
ItemModel *itemModel;
SpriteModel *spriteModel;
SpriteModel *pictureModel;
ItemList items;
ItemList outfits;
ItemList effects;
ItemList projectiles;
ResourceList sprites;
ResourceList pictures;
DrawParameters dParams;
QTime time;
Ui::ExportHandlerClass *ui;
private slots:
void onExportStarted( void );
void onExportSuccess( int );
void onExportComplete( void );
void onBrowse( bool );
void onExport( bool );
void onPatternChanged( bool );
void onSelectionChanged( bool );
void onParameterChanged( int );
};
#endif // EXPORTHANDLER_H