1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-20 17:23:53 +00:00
openmw/apps/opencs/view/render/editmode.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

93 lines
2.3 KiB
C++
Raw Normal View History

#include "editmode.hpp"
2022-10-19 17:02:00 +00:00
#include <apps/opencs/view/widget/modebutton.hpp>
#include "worldspacewidget.hpp"
2022-10-19 17:02:00 +00:00
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);
2015-03-11 14:54:45 +00:00
}
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) {}
2015-10-01 10:46:01 +00:00
2022-11-04 22:04:42 +00:00
void CSVRender::EditMode::tertiarySelectPressed(const WorldspaceHitResult& hit) {}
bool CSVRender::EditMode::primaryEditStartDrag(const QPoint& pos)
2015-10-01 10:46:01 +00:00
{
return false;
}
bool CSVRender::EditMode::secondaryEditStartDrag(const QPoint& pos)
2015-10-01 10:46:01 +00:00
{
return false;
}
bool CSVRender::EditMode::primarySelectStartDrag(const QPoint& pos)
{
return false;
}
bool CSVRender::EditMode::secondarySelectStartDrag(const QPoint& pos)
2015-10-01 10:46:01 +00:00
{
return false;
}
void CSVRender::EditMode::drag(const QPoint& pos, int diffX, int diffY, double speedFactor) {}
2015-10-01 10:46:01 +00:00
void CSVRender::EditMode::dragCompleted(const QPoint& pos) {}
2015-10-01 10:46:01 +00:00
void CSVRender::EditMode::dragAborted() {}
2015-10-01 11:42:21 +00:00
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) {}
2016-03-01 14:48:34 +00:00
void CSVRender::EditMode::mouseMoveEvent(QMouseEvent* event) {}
2016-03-01 14:48:34 +00:00
int CSVRender::EditMode::getSubMode() const
{
return -1;
}