Medical Imaging Interaction Toolkit  2022.04.99-01b95b17
Medical Imaging Interaction Toolkit
QmitkDataStorageListInspector.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 (DKFZ)
6 All rights reserved.
7 
8 Use of this source code is governed by a 3-clause BSD license that can be
9 found in the LICENSE file.
10 
11 ============================================================================*/
12 
13 #ifndef QMITKDATASTORAGELISTINSPECTOR_H
14 #define QMITKDATASTORAGELISTINSPECTOR_H
15 
16 #include <MitkQtWidgetsExports.h>
17 
20 
21 #include "ui_QmitkDataStorageListInspector.h"
22 
23 /*
24 * @brief This is an inspector that offers a simple list view on a data storage.
25 */
27 {
28  Q_OBJECT
29 
30 public:
31  QmitkDataStorageListInspector(QWidget* parent = nullptr);
32 
33  QAbstractItemView* GetView() override;
34  const QAbstractItemView* GetView() const override;
35 
36  void SetSelectionMode(SelectionMode mode) override;
37  SelectionMode GetSelectionMode() const override;
38 
39 protected:
40  void Initialize() override;
41  void OnModelReset();
42 
44  Ui_QmitkDataStorageListInspector m_Controls;
46 };
47 
48 #endif // QMITKDATASTORAGELISTINSPECTOR_H
virtual QAbstractItemView * GetView()=0
virtual SelectionMode GetSelectionMode() const =0
#define MITKQTWIDGETS_EXPORT
QmitkSimpleTextOverlayWidget * m_Overlay
Ui_QmitkDataStorageListInspector m_Controls
QmitkAbstractDataStorageModel * m_StorageModel
virtual void SetSelectionMode(SelectionMode mode)=0
QAbstractItemView::SelectionMode SelectionMode
This abstract class is a convenient base class for easy implementation of widgets that offer a specif...