2014-11-11 15:58:22 +01:00
|
|
|
#include "editmode.hpp"
|
|
|
|
|
2015-10-04 16:27:05 +02:00
|
|
|
#include "tagbase.hpp"
|
2014-11-11 15:58:22 +01:00
|
|
|
#include "worldspacewidget.hpp"
|
|
|
|
|
2015-09-29 13:53:47 +02:00
|
|
|
CSVRender::WorldspaceWidget& CSVRender::EditMode::getWorldspaceWidget()
|
|
|
|
{
|
|
|
|
return *mWorldspaceWidget;
|
|
|
|
}
|
|
|
|
|
2014-11-11 15:58:22 +01:00
|
|
|
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);
|
2015-09-29 13:48:04 +02:00
|
|
|
mWorldspaceWidget->clearSelection (~mMask);
|
2015-03-11 10:54:45 -04:00
|
|
|
}
|
2015-09-24 15:51:16 +02:00
|
|
|
|
2015-09-24 16:07:17 +02:00
|
|
|
void CSVRender::EditMode::setEditLock (bool locked)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2015-09-27 16:18:22 +02:00
|
|
|
|
2019-07-01 23:26:05 +00:00
|
|
|
void CSVRender::EditMode::primaryOpenPressed (const WorldspaceHitResult& hit) {}
|
|
|
|
|
2016-05-12 18:21:43 -04:00
|
|
|
void CSVRender::EditMode::primaryEditPressed (const WorldspaceHitResult& hit) {}
|
2015-09-27 16:18:22 +02:00
|
|
|
|
2016-05-12 18:21:43 -04:00
|
|
|
void CSVRender::EditMode::secondaryEditPressed (const WorldspaceHitResult& hit) {}
|
2015-09-27 16:18:22 +02:00
|
|
|
|
2016-05-12 18:21:43 -04:00
|
|
|
void CSVRender::EditMode::primarySelectPressed (const WorldspaceHitResult& hit) {}
|
2015-10-29 11:20:06 +01:00
|
|
|
|
2016-05-12 18:21:43 -04:00
|
|
|
void CSVRender::EditMode::secondarySelectPressed (const WorldspaceHitResult& hit) {}
|
2015-10-01 12:46:01 +02:00
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
bool CSVRender::EditMode::primaryEditStartDrag (const QPoint& pos)
|
2015-10-01 12:46:01 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
bool CSVRender::EditMode::secondaryEditStartDrag (const QPoint& pos)
|
2015-10-01 12:46:01 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
bool CSVRender::EditMode::primarySelectStartDrag (const QPoint& pos)
|
2015-10-29 11:20:06 +01:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
bool CSVRender::EditMode::secondarySelectStartDrag (const QPoint& pos)
|
2015-10-01 12:46:01 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
void CSVRender::EditMode::drag (const QPoint& pos, int diffX, int diffY, double speedFactor) {}
|
2015-10-01 12:46:01 +02:00
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
void CSVRender::EditMode::dragCompleted(const QPoint& pos) {}
|
2015-10-01 12:46:01 +02:00
|
|
|
|
|
|
|
void CSVRender::EditMode::dragAborted() {}
|
2015-10-01 13:19:48 +02:00
|
|
|
|
2015-10-01 13:42:21 +02:00
|
|
|
void CSVRender::EditMode::dragWheel (int diff, double speedFactor) {}
|
2015-12-18 14:04:53 +01:00
|
|
|
|
|
|
|
void CSVRender::EditMode::dragEnterEvent (QDragEnterEvent *event) {}
|
|
|
|
|
2016-05-17 21:24:16 -04:00
|
|
|
void CSVRender::EditMode::dropEvent (QDropEvent *event) {}
|
2015-12-18 14:04:53 +01:00
|
|
|
|
|
|
|
void CSVRender::EditMode::dragMoveEvent (QDragMoveEvent *event) {}
|
2016-03-01 15:48:34 +01:00
|
|
|
|
2020-02-07 19:04:28 +02:00
|
|
|
void CSVRender::EditMode::mouseMoveEvent (QMouseEvent *event) {}
|
|
|
|
|
2016-03-01 15:48:34 +01:00
|
|
|
int CSVRender::EditMode::getSubMode() const
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|