NorMIT-nav
22.09
An IGT application
cxColorSelectWidget.h
Go to the documentation of this file.
1
/*=========================================================================
2
This file is part of CustusX, an Image Guided Therapy Application.
3
4
Copyright (c) SINTEF Department of Medical Technology.
5
All rights reserved.
6
7
CustusX is released under a BSD 3-Clause license.
8
9
See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10
=========================================================================*/
11
#ifndef CXCOLORSELECTWIDGET_H_
12
#define CXCOLORSELECTWIDGET_H_
13
14
#include "cxResourceWidgetsExport.h"
15
16
#include <QWidget>
17
#include <QCheckBox>
18
#include <QLabel>
19
#include <QGridLayout>
20
#include "
cxOptimizedUpdateWidget.h
"
21
#include "
cxColorPropertyBase.h
"
22
#include "
cxColorSelectButton.h
"
23
24
namespace
cx
25
{
26
33
class
cxResourceWidgets_EXPORT
ColorSelectWidget
:
public
OptimizedUpdateWidget
34
{
35
Q_OBJECT
36
public
:
37
ColorSelectWidget
(QWidget* parent,
ColorPropertyBasePtr
data, QGridLayout* gridLayout = 0,
int
row = 0);
38
39
private
slots:
40
void
prePaintEvent();
41
void
valueChanged(QColor val);
42
43
private
:
44
QLabel* mLabel;
45
cx::ColorSelectButton
* mColorButton;
46
ColorPropertyBasePtr
mData;
47
};
48
49
}
// namespace cx
50
51
#endif // CXCOLORSELECTWIDGET_H_
cx::ColorSelectButton
Convenience button for chosing color. Will open a color select dialog, and color the button itself in...
Definition:
cxColorSelectButton.h:29
cxOptimizedUpdateWidget.h
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cx::ColorSelectWidget
Widget for the ColorPropertyBase.
Definition:
cxColorSelectWidget.h:33
cx::ColorPropertyBasePtr
boost::shared_ptr< class ColorPropertyBase > ColorPropertyBasePtr
Definition:
cxForwardDeclarations.h:139
cxColorPropertyBase.h
cx::OptimizedUpdateWidget
Interface for all classes following the modified/prepaint paradigm.
Definition:
cxOptimizedUpdateWidget.h:41
cxColorSelectButton.h
CX
source
resource
widgets
cxColorSelectWidget.h
Generated on Tue Sep 13 2022 11:06:17 for NorMIT-nav by
1.8.17