Pencil2D
ff90c0872e88be3bf81c548cd60f01983012ec49
Pencil2D is an animation software for both bitmap and vector graphics. It is free, multi-platform, and open source.
Main Page
Classes
Files
File List
All
Classes
Functions
app
colorinspector.h
1
/*
2
3
Pencil - Traditional Animation Software
4
Copyright (C) 2012-2017 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 COLORSPINBOXGROUP_H
17
#define COLORSPINBOXGROUP_H
18
19
#include <QWidget>
20
21
namespace
Ui {
22
class
ColorInspector
;
23
}
24
25
class
ColorInspector
:
public
QWidget
26
{
27
Q_OBJECT
28
29
public
:
30
explicit
ColorInspector
(QWidget *parent = 0);
31
~
ColorInspector
();
32
QColor color();
33
signals:
34
void
colorChanged(
const
QColor& c);
35
void
modeChange(
const
bool
& isRgb);
36
37
public
slots:
38
void
setColor(
const
QColor &c);
39
40
private
slots:
41
void
onModeChanged();
42
void
onColorChanged();
43
44
private
:
45
Ui::ColorInspector *ui;
46
bool
isRgbColors;
47
bool
noColorUpdate;
48
QColor m_color;
49
};
50
51
#endif // COLORSPINBOXGROUP_H
ColorInspector
Definition:
colorinspector.h:25
Generated on Fri Sep 1 2017 16:48:40 for Pencil2D by
1.8.6