Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
Helper/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 {
36  Q_OBJECT
37 
38  public:
39  QmitkAlgorithmListModel(QObject *parent = NULL);
41 
42  void SetAlgorithms(::map::deployment::DLLDirectoryBrowser::DLLInfoListType algList);
43 
44  virtual Qt::ItemFlags flags(const QModelIndex &index) const;
45  virtual QVariant data(const QModelIndex &index, int role) const;
46  virtual QVariant headerData(int section, Qt::Orientation orientation, int role) const;
47  virtual int rowCount(const QModelIndex &parent = QModelIndex()) const;
48  virtual int columnCount(const QModelIndex &parent = QModelIndex()) const;
49 
50 private:
51 
52  ::map::deployment::DLLDirectoryBrowser::DLLInfoListType m_AlgList;
53 };
54 
55 #endif // mitkQmitkAlgorithmListModel_h
56 
#define MITKMATCHPOINTREGISTRATION_EXPORT