mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 00:39:59 +00:00
20 lines
511 B
C++
20 lines
511 B
C++
|
|
#include "editmode.hpp"
|
|
|
|
#include "worldspacewidget.hpp"
|
|
|
|
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);
|
|
}
|