2014-11-11 14:58:22 +00:00
|
|
|
#include "editmode.hpp"
|
|
|
|
|
|
|
|
#include "worldspacewidget.hpp"
|
|
|
|
|
2015-09-29 11:53:47 +00:00
|
|
|
CSVRender::WorldspaceWidget& CSVRender::EditMode::getWorldspaceWidget()
|
|
|
|
{
|
|
|
|
return *mWorldspaceWidget;
|
|
|
|
}
|
|
|
|
|
2014-11-11 14:58:22 +00: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 11:48:04 +00:00
|
|
|
mWorldspaceWidget->clearSelection (~mMask);
|
2015-03-11 14:54:45 +00:00
|
|
|
}
|
2015-09-24 13:51:16 +00:00
|
|
|
|
|
|
|
void CSVRender::EditMode::updateUserSetting (const QString& name, const QStringList& value)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2015-09-24 14:07:17 +00:00
|
|
|
|
|
|
|
void CSVRender::EditMode::setEditLock (bool locked)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2015-09-27 14:18:22 +00:00
|
|
|
|
|
|
|
void CSVRender::EditMode::primaryEditPressed (osg::ref_ptr<TagBase> tag) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::secondaryEditPressed (osg::ref_ptr<TagBase> tag) {}
|
|
|
|
|
|
|
|
void CSVRender::EditMode::selectPressed (osg::ref_ptr<TagBase> tag) {}
|