mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
93 lines
2.3 KiB
C++
93 lines
2.3 KiB
C++
#include "editmode.hpp"
|
|
|
|
#include <apps/opencs/view/widget/modebutton.hpp>
|
|
|
|
#include "worldspacewidget.hpp"
|
|
|
|
class QMouseEvent;
|
|
class QWidget;
|
|
|
|
namespace CSVWidget
|
|
{
|
|
class SceneToolbar;
|
|
}
|
|
|
|
CSVRender::WorldspaceWidget& CSVRender::EditMode::getWorldspaceWidget()
|
|
{
|
|
return *mWorldspaceWidget;
|
|
}
|
|
|
|
CSVRender::EditMode::EditMode(
|
|
WorldspaceWidget* worldspaceWidget, const QIcon& icon, unsigned int mask, const QString& tooltip, QWidget* parent)
|
|
: ModeButton(icon, tooltip, parent)
|
|
, mWorldspaceWidget(worldspaceWidget)
|
|
, mMask(mask)
|
|
{
|
|
}
|
|
|
|
unsigned int CSVRender::EditMode::getInteractionMask() const
|
|
{
|
|
return mMask;
|
|
}
|
|
|
|
void CSVRender::EditMode::activate(CSVWidget::SceneToolbar* toolbar)
|
|
{
|
|
mWorldspaceWidget->setInteractionMask(mMask);
|
|
mWorldspaceWidget->clearSelection(~mMask);
|
|
}
|
|
|
|
void CSVRender::EditMode::setEditLock(bool locked) {}
|
|
|
|
void CSVRender::EditMode::primaryOpenPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
void CSVRender::EditMode::primaryEditPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
void CSVRender::EditMode::secondaryEditPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
void CSVRender::EditMode::primarySelectPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
void CSVRender::EditMode::secondarySelectPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
void CSVRender::EditMode::tertiarySelectPressed(const WorldspaceHitResult& hit) {}
|
|
|
|
bool CSVRender::EditMode::primaryEditStartDrag(const QPoint& pos)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool CSVRender::EditMode::secondaryEditStartDrag(const QPoint& pos)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool CSVRender::EditMode::primarySelectStartDrag(const QPoint& pos)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool CSVRender::EditMode::secondarySelectStartDrag(const QPoint& pos)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
void CSVRender::EditMode::drag(const QPoint& pos, int diffX, int diffY, double speedFactor) {}
|
|
|
|
void CSVRender::EditMode::dragCompleted(const QPoint& pos) {}
|
|
|
|
void CSVRender::EditMode::dragAborted() {}
|
|
|
|
void CSVRender::EditMode::dragWheel(int diff, double speedFactor) {}
|
|
|
|
void CSVRender::EditMode::dragEnterEvent(QDragEnterEvent* event) {}
|
|
|
|
void CSVRender::EditMode::dropEvent(QDropEvent* event) {}
|
|
|
|
void CSVRender::EditMode::dragMoveEvent(QDragMoveEvent* event) {}
|
|
|
|
void CSVRender::EditMode::mouseMoveEvent(QMouseEvent* event) {}
|
|
|
|
int CSVRender::EditMode::getSubMode() const
|
|
{
|
|
return -1;
|
|
}
|