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
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
17#ifndef ONIONSKINWIDGET_H
18#define ONIONSKINWIDGET_H
19
20#include "basedockwidget.h"
21
22namespace Ui
23{
24 class OnionSkin;
25}
26
27class Editor;
28class QToolButton;
29class ViewManager;
30
31class OnionSkinWidget : public BaseDockWidget
32{
33 Q_OBJECT
34
35public:
36 explicit OnionSkinWidget(QWidget* parent);
37 virtual ~OnionSkinWidget() override;
38
39 void initUI() override;
40 void updateUI() override;
41
42private 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 void onionSkinMultipleLayersEnabled(bool value);
54
55private:
56 void makeConnections();
57 Ui::OnionSkin* ui = nullptr;
58};
59
60#endif // ONIONSKINWIDGET_H
BaseDockWidget
Definition: basedockwidget.h:27
Editor
Definition: editor.h:71
OnionSkinWidget
Definition: onionskinwidget.h:32
ViewManager
Definition: viewmanager.h:26
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::parent
QObject * parent() const const
QToolButton
QWidget
Generated on Thu May 8 2025 04:47:53 for Pencil2D by doxygen 1.9.6 based on revision 4513250b1d5b1a3676ec0e67b06b7a885ceaae39