forked from emilk/sproxel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ImportExport.h
43 lines (27 loc) · 826 Bytes
/
ImportExport.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
#ifndef __IMPORT_EXPORT_H__
#define __IMPORT_EXPORT_H__
#include "SproxelProject.h"
#include "UndoManager.h"
class Importer
{
public:
virtual QString name()=0;
virtual QString filter()=0;
virtual bool doImport(const QString &filename, UndoManager *um,
SproxelProjectPtr project, VoxelGridGroupPtr current_sprite)=0;
};
void register_importer(Importer*);
void unregister_importer(Importer*);
const QList<Importer*>& get_importers();
class Exporter
{
public:
virtual QString name()=0;
virtual QString filter()=0;
virtual bool doExport(const QString &filename, SproxelProjectPtr project, VoxelGridGroupPtr current_sprite)=0;
};
void register_exporter(Exporter*);
void unregister_exporter(Exporter*);
const QList<Exporter*>& get_exporters();
void register_builtin_importers_exporters();
#endif