2016-05-16 01:06:51 +02:00
|
|
|
#ifndef _RWVIEWER_WORLDVIEWER_HPP_
|
|
|
|
#define _RWVIEWER_WORLDVIEWER_HPP_
|
|
|
|
#include <engine/GameData.hpp>
|
|
|
|
#include <engine/GameWorld.hpp>
|
|
|
|
|
|
|
|
#include "ViewerInterface.hpp"
|
|
|
|
|
|
|
|
#include <QLabel>
|
|
|
|
#include <QLayout>
|
2016-09-09 22:13:21 +02:00
|
|
|
#include <QSplitter>
|
|
|
|
#include <QTreeView>
|
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
class WorldViewer : public ViewerInterface {
|
|
|
|
Q_OBJECT
|
2016-05-16 01:06:51 +02:00
|
|
|
|
2016-09-09 22:13:21 +02:00
|
|
|
QVBoxLayout* mainLayout;
|
|
|
|
ViewerWidget* viewerWidget;
|
2016-05-16 01:06:51 +02:00
|
|
|
|
|
|
|
public:
|
2016-09-09 22:13:21 +02:00
|
|
|
WorldViewer(ViewerWidget* viewer = 0, QWidget* parent = 0,
|
|
|
|
Qt::WindowFlags f = 0);
|
2016-05-16 01:06:51 +02:00
|
|
|
|
2016-09-09 22:13:21 +02:00
|
|
|
void setViewerWidget(ViewerWidget* widget) override;
|
2016-05-16 01:06:51 +02:00
|
|
|
|
|
|
|
signals:
|
2016-09-09 22:13:21 +02:00
|
|
|
void placementsLoaded(const QString& file);
|
2016-05-16 01:06:51 +02:00
|
|
|
|
|
|
|
public slots:
|
2016-09-09 22:13:21 +02:00
|
|
|
void loadPlacements(const QString& file);
|
|
|
|
void loadPlacements();
|
2016-05-16 01:06:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|