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
3Pencil2D - Traditional Animation Software
4Copyright (C) 2012-2020 Matthew Chiawen Chang
5
6This program is free software; you can redistribute it and/or
7modify it under the terms of the GNU General Public License
8as published by the Free Software Foundation; version 2 of the License.
9
10This program is distributed in the hope that it will be useful,
11but WITHOUT ANY WARRANTY; without even the implied warranty of
12MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13GNU General Public License for more details.
14
15*/
16#ifndef COLORBOX_H
17#define COLORBOX_H
18
19#include "basedockwidget.h"
20
21class ColorWheel;
22
23class ColorBox : public BaseDockWidget
24{
25 Q_OBJECT
26
27public:
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
37signals:
38 void colorChanged(const QColor&);
39
40private:
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
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39