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
onionskinwidget.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
17
#ifndef ONIONSKINWIDGET_H
18
#define ONIONSKINWIDGET_H
19
20
#include "basedockwidget.h"
21
22
namespace
Ui
23
{
24
class
OnionSkin;
25
}
26
27
class
Editor
;
28
class
QToolButton
;
29
class
ViewManager
;
30
31
class
OnionSkinWidget
:
public
BaseDockWidget
32
{
33
Q_OBJECT
34
35
public
:
36
explicit
OnionSkinWidget
(
QWidget
*
parent
);
37
virtual
~OnionSkinWidget
()
override
;
38
39
void
initUI()
override
;
40
void
updateUI()
override
;
41
42
private
slots:
43
void
playbackStateChanged(
int
);
44
void
prevFramesGroupClicked(
bool
);
45
void
nextFramesGroupClicked(
bool
);
46
void
onionBlueButtonClicked(
bool
);
47
void
onionRedButtonClicked(
bool
);
48
void
onionMaxOpacityChange(
int
);
49
void
onionMinOpacityChange(
int
);
50
void
onionPrevFramesNumChange(
int
);
51
void
onionNextFramesNumChange(
int
);
52
void
onionSkinModeChange(
int
);
53
54
private
:
55
void
makeConnections();
56
Ui::OnionSkin* ui =
nullptr
;
57
};
58
59
#endif
// ONIONSKINWIDGET_H
BaseDockWidget
Definition:
basedockwidget.h:27
Editor
Definition:
editor.h:70
OnionSkinWidget
Definition:
onionskinwidget.h:32
ViewManager
Definition:
viewmanager.h:26
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QToolButton
QWidget