forked from teamnwah/openmw-tes3coop
19 lines
511 B
C++
19 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);
|
|
}
|