Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
QmitkColorPropertyView.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 #ifndef QMITK_COLORPROPERTYVIEW_H_INCLUDED
17 #define QMITK_COLORPROPERTYVIEW_H_INCLUDED
18 
20 #include <QLabel>
21 #include <mitkColorProperty.h>
22 #include <mitkPropertyObserver.h>
23 
26 {
27  Q_OBJECT
28 
29 public:
30  QmitkColorPropertyView(const mitk::ColorProperty *, QWidget *parent);
31  virtual ~QmitkColorPropertyView();
32 
33 protected:
34  virtual void PropertyChanged() override;
35  virtual void PropertyRemoved() override;
36 
37  void DisplayColor();
38 
40 
41  QPalette m_WidgetPalette;
42 };
43 
44 #endif
virtual void PropertyRemoved()=0
#define MITKQTWIDGETSEXT_EXPORT
The ColorProperty class RGB color property.
virtual void PropertyChanged()=0
const mitk::ColorProperty * m_ColorProperty