Medical Imaging Interaction Toolkit  2021.10.99-9c07a326
Medical Imaging Interaction Toolkit
QmitkDataNodeColorAction.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 QMITKDATANODECOLORACTION_H
14 #define QMITKDATANODECOLORACTION_H
15 
17 
19 
20 // qt
21 #include <QPushButton>
22 #include <QWidgetAction>
23 
25 {
26  Q_OBJECT
27 
28 public:
29 
30  QmitkDataNodeColorAction(QWidget* parent, berry::IWorkbenchPartSite::Pointer workbenchPartSite);
31  QmitkDataNodeColorAction(QWidget* parent, berry::IWorkbenchPartSite* workbenchPartSite);
32 
33  void InitializeWithDataNode(const mitk::DataNode* dataNode) override;
34 
35 private Q_SLOTS:
36 
37  void OnColorChanged();
38  void OnActionChanged();
39 
40 protected:
41 
42  void InitializeAction() override;
43 
44 private:
45 
46  QPushButton* m_ColorButton;
47 
48 };
49 
50 #endif // QMITKDATANODECOLORACTION_H
virtual void InitializeAction()=0
virtual void InitializeWithDataNode(const mitk::DataNode *)
Class for nodes of the DataTree.
Definition: mitkDataNode.h:57