Pencil2D Animation
Download
Community
News
Docs
Contribute
Overview
Articles
Code
Class List
Class Index
Class Hierarchy
Class Members
File List
Loading...
Searching...
No Matches
app
src
colorbox.h
1
/*
2
3
Pencil2D - Traditional Animation Software
4
Copyright (C) 2012-2020 Matthew Chiawen Chang
5
6
This program is free software; you can redistribute it and/or
7
modify it under the terms of the GNU General Public License
8
as published by the Free Software Foundation; version 2 of the License.
9
10
This program is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
GNU General Public License for more details.
14
15
*/
16
#ifndef COLORBOX_H
17
#define COLORBOX_H
18
19
#include "basedockwidget.h"
20
21
class
ColorWheel
;
22
23
class
ColorBox
:
public
BaseDockWidget
24
{
25
Q_OBJECT
26
27
public
:
28
explicit
ColorBox
(
QWidget
*
parent
);
29
virtual
~ColorBox
()
override
;
30
31
void
initUI()
override
;
32
void
updateUI()
override
;
33
34
QColor
color();
35
void
setColor(
QColor
);
36
37
signals:
38
void
colorChanged(
const
QColor
&);
39
40
private
:
41
void
onWheelMove(
const
QColor
&);
42
void
onWheelRelease(
const
QColor
&);
43
44
ColorWheel
* mColorWheel =
nullptr
;
45
46
// ColorInspector* mColorInspector = nullptr;
47
};
48
49
#endif
// COLORBOX_H
BaseDockWidget
Definition:
basedockwidget.h:27
ColorBox
Definition:
colorbox.h:24
ColorWheel
Definition:
colorwheel.h:24
QColor
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QWidget