All Classes Namespaces Functions Variables Enumerations Properties Pages
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 
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 onionPrevButtonClicked(bool);
45  void onionNextButtonClicked(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
Q_OBJECTQ_OBJECT
Definition: editor.h:55
QObject * parent() const const