Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
I/Qmitk/QmitkAlgorithmListModel.h
Go to the documentation of this file.
1 /*===================================================================
2 
3 The Medical Imaging Interaction Toolkit (MITK)
4 
5 Copyright (c) German Cancer Research Center,
6 Division of Medical and Biological Informatics.
7 All rights reserved.
8 
9 This software is distributed WITHOUT ANY WARRANTY; without
10 even the implied warranty of MERCHANTABILITY or FITNESS FOR
11 A PARTICULAR PURPOSE.
12 
13 See LICENSE.txt or http://www.mitk.org for details.
14 
15 ===================================================================*/
16 
17 #ifndef QmitkAlgorithmListModel_h
18 #define QmitkAlgorithmListModel_h
19 
20 #include <QAbstractTableModel>
21 #include <QStringList>
22 
23 // MITK
25 
26 // MatchPoint
27 #include <mapDeploymentDLLDirectoryBrowser.h>
28 
35 class MITKMATCHPOINTREGISTRATIONUI_EXPORT QmitkAlgorithmListModel : public QAbstractTableModel
36 {
37  Q_OBJECT
38 
39 public:
40  QmitkAlgorithmListModel(QObject *parent = NULL);
42 
43  void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList);
44 
45  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
46  virtual QVariant data(const QModelIndex &index, int role) const;
47  virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
48  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
49  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
50 
51 private:
52  ::map::deployment::DLLDirectoryBrowser::DLLInfoListType m_AlgList;
53 };
54 
55 #endif // mitkQmitkAlgorithmListModel_h
#define MITKMATCHPOINTREGISTRATIONUI_EXPORT