1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-21 11:53:51 +00:00
openmw-tes3mp/apps/opencs/view/render/worldspacewidget.hpp

73 lines
1.7 KiB
C++
Raw Normal View History

#ifndef OPENCS_VIEW_WORLDSPACEWIDGET_H
#define OPENCS_VIEW_WORLDSPACEWIDGET_H
#include "scenewidget.hpp"
#include "navigation1st.hpp"
#include "navigationfree.hpp"
#include "navigationorbit.hpp"
2014-05-01 13:09:47 +00:00
#include <apps/opencs/model/doc/document.hpp>
2014-05-01 13:09:47 +00:00
namespace CSMWorld
{
class UniversalId;
}
namespace CSVWorld
{
class SceneToolMode;
class SceneToolbar;
}
namespace CSVRender
{
class WorldspaceWidget : public SceneWidget
{
Q_OBJECT
CSVRender::Navigation1st m1st;
CSVRender::NavigationFree mFree;
CSVRender::NavigationOrbit mOrbit;
public:
2014-05-02 18:15:46 +00:00
enum dropType
{
cellsMixed,
cellsInterior,
cellsExterior,
notCells
};
2014-05-01 13:09:47 +00:00
WorldspaceWidget (const CSMDoc::Document& document, QWidget *parent = 0);
CSVWorld::SceneToolMode *makeNavigationSelector (CSVWorld::SceneToolbar *parent);
2014-03-23 14:14:26 +00:00
///< \attention The created tool is not added to the toolbar (via addTool). Doing that
/// is the responsibility of the calling function.
void selectDefaultNavigationMode();
2014-05-02 18:15:46 +00:00
static dropType getDropType(const std::vector<CSMWorld::UniversalId>& data);
virtual void useViewHint (const std::string& hint);
///< Default-implementation: ignored.
2014-05-01 13:09:47 +00:00
protected:
const CSMDoc::Document& mDocument; //for checking if drop comes from same document
private:
void dragEnterEvent(QDragEnterEvent *event);
void dragMoveEvent(QDragMoveEvent *event);
private slots:
void selectNavigationMode (const std::string& mode);
signals:
void closeRequest();
};
}
#endif