ctkDICOMItemTreeModel.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Library:   CTK
00004  
00005   Copyright (c) 2010  Kitware Inc.
00006 
00007   Licensed under the Apache License, Version 2.0 (the "License");
00008   you may not use this file except in compliance with the License.
00009   You may obtain a copy of the License at
00010 
00011       http://www.commontk.org/LICENSE
00012 
00013   Unless required by applicable law or agreed to in writing, software
00014   distributed under the License is distributed on an "AS IS" BASIS,
00015   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00016   See the License for the specific language governing permissions and
00017   limitations under the License.
00018  
00019 =========================================================================*/
00020 
00021 #ifndef __ctkDICOMItemTreeModel_h
00022 #define __ctkDICOMItemTreeModel_h
00023 
00024 // Qt includes 
00025 #include <QAbstractItemModel>
00026 #include <QModelIndex>
00027 
00028 // CTK includes
00029 #include <ctkPimpl.h>
00030 
00031 #include "CTKDICOMWidgetsExport.h"
00032 
00033 class ctkDICOMItemTreeModelPrivate;
00034 
00035 class CTK_DICOM_WIDGETS_EXPORT ctkDICOMItemTreeModel : public QAbstractItemModel
00036 {
00037 public:
00038   typedef QAbstractItemModel Superclass;
00039   explicit ctkDICOMItemTreeModel(QObject* parent=0);
00040   virtual ~ctkDICOMItemTreeModel();
00041 
00042   virtual QModelIndex index(int row, int column,
00043                             const QModelIndex &parent = QModelIndex()) const;
00044                             
00045   virtual QModelIndex parent(const QModelIndex &child) const;
00046     
00047   virtual Qt::ItemFlags flags(const QModelIndex &index) const;
00048 
00049   virtual QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const;
00050 
00051   virtual QVariant headerData(int section, Qt::Orientation orientation,
00052                                 int role = Qt::DisplayRole) const;
00053 
00054   virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
00055   virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
00056 
00057 private:
00058   CTK_DECLARE_PRIVATE(ctkDICOMItemTreeModel);
00059 };
00060 
00061 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines

Generated on 21 May 2010 for CTK by  doxygen 1.6.1