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
|
|
|
|
|
|
|
void CSVRender::EditMode::primaryEditPressed (osg::ref_ptr<TagBase> tag) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::secondaryEditPressed (osg::ref_ptr<TagBase> tag) {}
|
|
|
|
|
2015-10-29 11:20:06 +01:00
|
|
|
void CSVRender::EditMode::primarySelectPressed (osg::ref_ptr<TagBase> tag) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::secondarySelectPressed (osg::ref_ptr<TagBase> tag) {}
|
2015-10-01 12:46:01 +02:00
|
|
|
|
|
|
|
bool CSVRender::EditMode::primaryEditStartDrag (osg::ref_ptr<TagBase> tag)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CSVRender::EditMode::secondaryEditStartDrag (osg::ref_ptr<TagBase> tag)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-10-29 11:20:06 +01:00
|
|
|
bool CSVRender::EditMode::primarySelectStartDrag (osg::ref_ptr<TagBase> tag)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CSVRender::EditMode::secondarySelectStartDrag (osg::ref_ptr<TagBase> tag)
|
2015-10-01 12:46:01 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2015-10-01 13:42:21 +02:00
|
|
|
void CSVRender::EditMode::drag (int diffX, int diffY, double speedFactor) {}
|
2015-10-01 12:46:01 +02:00
|
|
|
|
|
|
|
void CSVRender::EditMode::dragCompleted() {}
|
|
|
|
|
|
|
|
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) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::dropEvent (QDropEvent* event) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::dragMoveEvent (QDragMoveEvent *event) {}
|