00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date: 2009-05-28 17:19:30 +0200 (Thu, 28 May 2009) $ 00006 Version: $Revision: 17495 $ 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 00019 #ifndef MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB 00020 #define MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB 00021 00022 // MITK-Stuff 00023 #include "mitkCommon.h" 00024 #include "mitkPropertyList.h" 00025 #include "QmitkOverlay.h" 00026 00027 #include <QLabel> 00028 00029 #include "OverlaysExports.h" 00030 00031 00062 class Overlays_EXPORT QmitkTextOverlay : public QmitkOverlay 00063 { 00064 public: 00065 00069 QmitkTextOverlay( const char* id ); 00070 00074 virtual ~QmitkTextOverlay(); 00075 00085 void GenerateData( mitk::PropertyList::Pointer ); 00086 00090 QLabel* GetWidget(); 00091 00092 protected: 00093 00102 void GetTextProperties( mitk::PropertyList::Pointer ); 00103 00104 void SetupCallback( mitk::BaseProperty::Pointer prop ); 00105 00106 void SetText(); 00107 00109 QLabel* m_Widget; 00110 00111 mitk::PropertyList::Pointer m_PropertyList; 00112 }; 00113 00114 00115 #endif /* MITKTEXTOVERLAY_H_HEADER_INCLUDED_C10DC4EB */ 00116 00117