NorMIT-nav
22.09
An IGT application
cxColorSelectButton.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 CXCOLORSELECTBUTTON_H_
12
#define CXCOLORSELECTBUTTON_H_
13
14
#include "cxResourceWidgetsExport.h"
15
16
#include <QToolButton>
17
#include <QColor>
18
19
namespace
cx
20
{
21
29
class
cxResourceWidgets_EXPORT
ColorSelectButton
:
public
QToolButton
30
{
31
Q_OBJECT
32
public
:
33
ColorSelectButton
(QString caption, QColor color=Qt::white, QWidget* parent=NULL);
34
void
setColor(QColor color);
35
signals:
36
void
colorChanged(QColor);
37
38
private
:
39
QColor mColor;
40
private
slots:
41
void
clickedSlot();
42
};
43
//------------------------------------------------------------------------------
44
48
class
cxResourceWidgets_EXPORT
SelectColorSettingButton
:
public
ColorSelectButton
49
{
50
Q_OBJECT
51
52
public
:
53
SelectColorSettingButton
(QString caption, QString
id
, QString help);
54
void
storeColor(QColor color);
55
56
private
:
57
QString mId;
58
};
59
60
61
}
62
63
#endif
/* CXCOLORSELECTBUTTON_H_ */
cx::ColorSelectButton
Convenience button for chosing color. Will open a color select dialog, and color the button itself in...
Definition:
cxColorSelectButton.h:29
cx
Namespace for all CustusX production code.
Definition:
cx_dev_group_definitions.h:13
cx::SelectColorSettingButton
Definition:
cxColorSelectButton.h:48
CX
source
resource
widgets
cxColorSelectButton.h
Generated on Tue Sep 13 2022 11:06:17 for NorMIT-nav by
1.8.17