Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkToolGUI.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkToolGUI_h_Included
18 #define QmitkToolGUI_h_Included
19 
21 #include <qwidget.h>
22 
23 #include "mitkCommon.h"
24 #include "mitkTool.h"
25 
36 class MITKSEGMENTATIONUI_EXPORT QmitkToolGUI : public QWidget, public itk::Object
37 {
38  Q_OBJECT
39 
40 public:
42 
43  void SetTool(mitk::Tool *tool);
44 
45  // just make sure ITK won't take care of anything (especially not destruction)
46  virtual void Register() const override;
47  virtual void UnRegister() const ITK_NOEXCEPT ITK_OVERRIDE;
48  virtual void SetReferenceCount(int) override;
49 
50  virtual ~QmitkToolGUI();
51 
52 signals:
53 
54  void NewToolAssociated(mitk::Tool *);
55 
56 public slots:
57 
58 protected slots:
59 
60 protected:
62 
63  virtual void BusyStateChanged(bool){};
64 };
65 
66 #endif
Base class of all tools used by mitk::ToolManager.
Definition: mitkTool.h:92
mitk::Tool::Pointer m_Tool
Definition: QmitkToolGUI.h:61
#define mitkClassMacroItkParent(className, SuperClassName)
Definition: mitkCommon.h:53
Base class for GUIs belonging to mitk::Tool classes.
Definition: QmitkToolGUI.h:36
virtual void BusyStateChanged(bool)
Definition: QmitkToolGUI.h:63
#define MITKSEGMENTATIONUI_EXPORT