1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 05:49:56 +00:00
openmw-tes3mp/apps/opencs/view/doc/loader.hpp

57 lines
982 B
C++
Raw Normal View History

2014-04-29 12:17:25 +00:00
#ifndef CSV_DOC_LOADER_H
#define CSV_DOC_LOADER_H
#include <map>
#include <QObject>
#include <QWidget>
2014-05-03 11:01:29 +00:00
class QLabel;
class QProgressBar;
2014-04-29 12:17:25 +00:00
namespace CSMDoc
{
class Document;
}
namespace CSVDoc
{
class LoadingDocument : public QWidget
{
Q_OBJECT
2014-05-03 11:01:29 +00:00
QLabel *mFile;
QProgressBar *mFileProgress;
2014-04-29 12:17:25 +00:00
public:
LoadingDocument (CSMDoc::Document *document);
2014-05-03 11:01:29 +00:00
void nextStage (const std::string& name);
2014-04-29 12:17:25 +00:00
};
class Loader : public QObject
{
Q_OBJECT
std::map<CSMDoc::Document *, LoadingDocument *> mDocuments;
public:
Loader();
virtual ~Loader();
public slots:
void add (CSMDoc::Document *document);
2014-04-29 12:17:25 +00:00
void loadingStopped (CSMDoc::Document *document, bool completed,
const std::string& error);
2014-05-03 11:01:29 +00:00
void nextStage (CSMDoc::Document *document, const std::string& name);
2014-04-29 12:17:25 +00:00
};
}
#endif