1 #ifndef CSV_RENDER_EDITMODE_H
2 #define CSV_RENDER_EDITMODE_H
6 #include "../widget/modebutton.hpp"
15 class WorldspaceWidget;
16 struct WorldspaceHitResult;
33 const QString& tooltip =
"",
QWidget *parent = 0);
75 virtual void drag (
const QPoint& pos,
int diffX,
int diffY,
double speedFactor);
87 virtual void dragWheel (
int diff,
double speedFactor);
93 virtual void dropEvent (QDropEvent *event);
virtual void primaryEditPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: editmode.cpp:32
virtual bool secondaryEditStartDrag(const QPoint &pos)
Definition: editmode.cpp:45
virtual int getSubMode() const
Default: return -1.
Definition: editmode.cpp:74
virtual void secondarySelectPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: editmode.cpp:38
virtual void dragEnterEvent(QDragEnterEvent *event)
Default-implementation: ignored.
Definition: editmode.cpp:68
virtual bool secondarySelectStartDrag(const QPoint &pos)
Definition: editmode.cpp:55
virtual bool primaryEditStartDrag(const QPoint &pos)
Definition: editmode.cpp:40
unsigned int mMask
Definition: editmode.hpp:24
unsigned int getInteractionMask() const
Definition: editmode.cpp:16
virtual void setEditLock(bool locked)
Default-implementation: Ignored.
Definition: editmode.cpp:27
Definition: worldspacewidget.hpp:40
WorldspaceWidget & getWorldspaceWidget()
Definition: editmode.cpp:6
virtual void activate(CSVWidget::SceneToolbar *toolbar)
Default-Implementation: do nothing.
Definition: editmode.cpp:21
virtual void primarySelectPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: editmode.cpp:36
EditMode(WorldspaceWidget *worldspaceWidget, const QIcon &icon, unsigned int mask, const QString &tooltip="", QWidget *parent=0)
Definition: editmode.cpp:11
virtual void secondaryEditPressed(const WorldspaceHitResult &hit)
Default-implementation: Ignored.
Definition: editmode.cpp:34
virtual void dropEvent(QDropEvent *event)
Default-implementation: ignored.
Definition: editmode.cpp:70
virtual void dragCompleted(const QPoint &pos)
Default-implementation: ignored.
Definition: editmode.cpp:62
WorldspaceWidget * mWorldspaceWidget
Definition: editmode.hpp:23
virtual void drag(const QPoint &pos, int diffX, int diffY, double speedFactor)
Default-implementation: ignored.
Definition: editmode.cpp:60
virtual void dragAborted()
Definition: editmode.cpp:64
virtual void dragWheel(int diff, double speedFactor)
Default-implementation: ignored.
Definition: editmode.cpp:66
virtual void dragMoveEvent(QDragMoveEvent *event)
Default-implementation: ignored.
Definition: editmode.cpp:72
virtual bool primarySelectStartDrag(const QPoint &pos)
Definition: editmode.cpp:50
Definition: editmode.hpp:19