00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision$ 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 #ifndef QMITK_STRINGPROPERTYEDITOR_H_INCLUDED 00018 #define QMITK_STRINGPROPERTYEDITOR_H_INCLUDED 00019 00020 #include <mitkPropertyObserver.h> 00021 #include "QmitkExtExports.h" 00022 #include <mitkStringProperty.h> 00023 #include <QLineEdit> 00024 00026 class QmitkExt_EXPORT QmitkStringPropertyEditor : public QLineEdit, public mitk::PropertyEditor 00027 { 00028 Q_OBJECT 00029 00030 public: 00031 00032 QmitkStringPropertyEditor( mitk::StringProperty*, QWidget* parent ); 00033 virtual ~QmitkStringPropertyEditor(); 00034 00035 protected: 00036 00037 virtual void PropertyChanged(); 00038 virtual void PropertyRemoved(); 00039 00040 mitk::StringProperty* m_StringProperty; 00041 00042 protected slots: 00043 00044 void onTextChanged(const QString&); 00045 00046 private: 00047 00048 }; 00049 00050 #endif 00051