mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 07:49:56 +00:00
43 lines
1 KiB
C++
43 lines
1 KiB
C++
#ifndef CSV_RENDER_INSTANCEMODE_H
|
|
#define CSV_RENDER_INSTANCEMODE_H
|
|
|
|
#include "editmode.hpp"
|
|
|
|
namespace CSVWidget
|
|
{
|
|
class SceneToolMode;
|
|
}
|
|
|
|
namespace CSVRender
|
|
{
|
|
class InstanceSelectionMode;
|
|
|
|
class InstanceMode : public EditMode
|
|
{
|
|
Q_OBJECT
|
|
CSVWidget::SceneToolMode *mSubMode;
|
|
InstanceSelectionMode *mSelectionMode;
|
|
|
|
public:
|
|
|
|
InstanceMode (WorldspaceWidget *worldspaceWidget, QWidget *parent = 0);
|
|
|
|
virtual void activate (CSVWidget::SceneToolbar *toolbar);
|
|
|
|
virtual void deactivate (CSVWidget::SceneToolbar *toolbar);
|
|
|
|
virtual void primaryEditPressed (osg::ref_ptr<TagBase> tag);
|
|
|
|
virtual void secondaryEditPressed (osg::ref_ptr<TagBase> tag);
|
|
|
|
virtual void primarySelectPressed (osg::ref_ptr<TagBase> tag);
|
|
|
|
virtual void secondarySelectPressed (osg::ref_ptr<TagBase> tag);
|
|
|
|
virtual void dragEnterEvent (QDragEnterEvent *event);
|
|
|
|
virtual void dropEvent (QDropEvent* event);
|
|
};
|
|
}
|
|
|
|
#endif
|