00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 1.0 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 00018 #ifndef QmitkPaintbrushToolGUI_h_Included 00019 #define QmitkPaintbrushToolGUI_h_Included 00020 00021 #include "QmitkToolGUI.h" 00022 #include "QmitkExtExports.h" 00023 #include "mitkPaintbrushTool.h" 00024 00025 class QSlider; 00026 class QLabel; 00027 class QFrame; 00028 00038 class QmitkExt_EXPORT QmitkPaintbrushToolGUI : public QmitkToolGUI 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 mitkClassMacro(QmitkPaintbrushToolGUI, QmitkToolGUI); 00044 00045 void OnSizeChanged(int current); 00046 00047 signals: 00048 00049 public slots: 00050 00051 protected slots: 00052 00053 void OnNewToolAssociated(mitk::Tool*); 00054 00055 void OnSliderValueChanged(int value); 00056 00057 void VisualizePaintbrushSize(int size); 00058 00059 protected: 00060 00061 QmitkPaintbrushToolGUI(); 00062 virtual ~QmitkPaintbrushToolGUI(); 00063 00064 QSlider* m_Slider; 00065 QLabel* m_SizeLabel; 00066 QFrame* m_Frame; 00067 00068 mitk::PaintbrushTool::Pointer m_PaintbrushTool; 00069 }; 00070 00071 #endif 00072