#ifndef CSV_RENDER_EDITMODE_H #define CSV_RENDER_EDITMODE_H #include #include "../widget/modebutton.hpp" namespace CSVRender { class WorldspaceWidget; class TagBase; class EditMode : public CSVWidget::ModeButton { Q_OBJECT WorldspaceWidget *mWorldspaceWidget; unsigned int mMask; public: EditMode (WorldspaceWidget *worldspaceWidget, const QIcon& icon, unsigned int mask, const QString& tooltip = "", QWidget *parent = 0); unsigned int getInteractionMask() const; virtual void activate (CSVWidget::SceneToolbar *toolbar); /// Default-implementation: Do nothing. virtual void updateUserSetting (const QString& name, const QStringList& value); /// Default-implementation: Ignored. virtual void setEditLock (bool locked); /// Default-implementation: Ignored. virtual void primaryEditPressed (osg::ref_ptr tag); /// Default-implementation: Ignored. virtual void secondaryEditPressed (osg::ref_ptr tag); /// Default-implementation: Ignored. virtual void selectPressed (osg::ref_ptr tag); }; } #endif