2015-11-23 23:19:57 +01:00
|
|
|
#ifndef MAPLIST_H
|
|
|
|
#define MAPLIST_H
|
|
|
|
|
2016-02-12 10:09:17 +01:00
|
|
|
#include <QString>
|
2021-03-20 09:59:03 +01:00
|
|
|
#include "common/treenode.h"
|
2015-11-23 23:19:57 +01:00
|
|
|
|
2018-03-09 23:24:08 +01:00
|
|
|
class Map;
|
2021-06-17 21:58:25 +02:00
|
|
|
class Projection;
|
2018-01-14 23:03:27 +01:00
|
|
|
|
2020-03-17 21:06:51 +01:00
|
|
|
class MapList
|
2015-11-23 23:19:57 +01:00
|
|
|
{
|
|
|
|
public:
|
2021-06-17 21:58:25 +02:00
|
|
|
static TreeNode<Map*> loadMaps(const QString &path, const Projection &proj);
|
2017-07-27 19:47:46 +02:00
|
|
|
static QString formats();
|
|
|
|
static QStringList filter();
|
|
|
|
|
2017-04-21 21:15:58 +02:00
|
|
|
private:
|
2021-06-17 21:58:25 +02:00
|
|
|
static Map *loadFile(const QString &path, const Projection &proj,
|
|
|
|
bool *isDir = 0);
|
|
|
|
static TreeNode<Map*> loadDir(const QString &path, const Projection &proj,
|
2021-03-20 09:59:03 +01:00
|
|
|
TreeNode<Map *> *parent = 0);
|
2015-11-23 23:19:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAPLIST_H
|