Medical Imaging Interaction Toolkit  2023.12.99-b826bd4b
Medical Imaging Interaction Toolkit
include/QmitkMapPropertyDelegate.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 QmitkMapPropertyDelegate_h
14 #define QmitkMapPropertyDelegate_h
15 
16 
18 #include <QStyledItemDelegate>
19 #include "mitkBaseProperty.h"
20 
21 //MITK
23 
24 
30 {
31  Q_OBJECT
32 
33 public:
37  QmitkMapPropertyDelegate(QObject *parent = 0);
38 
42  void paint(QPainter *painter, const QStyleOptionViewItem &option
43  , const QModelIndex &index) const;
44 
48  QWidget *createEditor(QWidget *parent, const QStyleOptionViewItem &option
49  , const QModelIndex &index) const;
50 
54  void setEditorData(QWidget *editor, const QModelIndex &index) const;
55 
59  void setModelData(QWidget *editor, QAbstractItemModel* model
60  , const QModelIndex &index) const;
61 
65  void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const;
66 
67 protected:
68 
69  bool eventFilter(QObject *o, QEvent *e);
70 
71  private slots:
75  void commitAndCloseEditor();
76  void showColorDialog();
77  void ComboBoxCurrentIndexChanged(int index);
78  void SpinBoxValueChanged(const QString& value);
79 
80 };
81 
82 #endif
MitkMatchPointRegistrationExports.h
QmitkMapPropertyDelegate
Definition: include/QmitkMapPropertyDelegate.h:29
MITKMATCHPOINTREGISTRATION_EXPORT
#define MITKMATCHPOINTREGISTRATION_EXPORT
Definition: MitkMatchPointRegistrationExports.h:15
mitkBaseProperty.h