00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 18127 $ 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 QmitkPropertiesTableEditor_h 00019 #define QmitkPropertiesTableEditor_h 00020 00022 #include "mitkDataNode.h" 00023 00025 #include <QWidget> 00026 00028 class QmitkPropertiesTableModel; 00029 class QTableView; 00030 class QLineEdit; 00031 00038 class QMITK_EXPORT QmitkPropertiesTableEditor : public QWidget 00039 { 00040 Q_OBJECT 00041 00042 public: 00043 00047 QmitkPropertiesTableEditor(QWidget* parent = 0, Qt::WindowFlags f = 0,mitk::DataNode::Pointer _Node = 0); 00048 00051 virtual ~QmitkPropertiesTableEditor(); 00052 00053 00054 00058 void SetPropertyList(mitk::PropertyList::Pointer _List); 00059 00063 QmitkPropertiesTableModel* getModel() const; 00064 00065 QTableView* getTable() const; 00066 00067 protected slots: 00068 void PropertyFilterKeyWordTextChanged(const QString & text); 00069 protected: 00073 virtual void init(); 00077 QTableView* m_NodePropertiesTableView; 00082 QLineEdit* m_TxtPropertyFilterKeyWord; 00086 QmitkPropertiesTableModel* m_Model; 00087 }; 00088 00089 #endif /* QMITKPROPERTIESTABLEMODEL_H_ */