18 #include <QActionGroup>
22 m_ActionGroup(new QActionGroup(this)),
23 m_MouseModeSwitcher(NULL),
25 m_InObservationReaction(false)
27 QToolBar::setOrientation(Qt::Vertical);
28 QToolBar::setIconSize(QSize(17, 17));
40 QAction *action =
new QAction(icon, toolName,
this);
41 action->setCheckable(
true);
43 action->setChecked(on);
46 QToolBar::addAction(action);
81 QAction *action =
dynamic_cast<QAction *
>(sender());
108 if (action->data().toInt() == activeMode)
110 action->setChecked(
true);
itk::SmartPointer< Self > Pointer
virtual ~QmitkMouseModeSwitcher()
void SetInteractionScheme(InteractionScheme)
Setter for interaction scheme.
QActionGroup * m_ActionGroup
bool m_InObservationReaction
void modeSelectedByUser()
QmitkMouseModeSwitcher(QWidget *parent=0)
void MouseModeSelected(mitk::MouseModeSwitcher::MouseMode id)
Mode activated.
unsigned long m_ObserverTag
void OnMouseModeChanged(const itk::EventObject &)
void setMouseModeSwitcher(mitk::MouseModeSwitcher *)
Connect to non-GUI class.
mitk::MouseModeSwitcher * m_MouseModeSwitcher
MouseMode GetCurrentMouseMode() const
Returns the current mouse mode.
void addButton(MouseMode id, const QString &toolName, const QIcon &icon, bool on=false)
void SelectMouseMode(MouseMode mode)
Setter for mouse mode.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.