All Classes Namespaces Functions Variables Enumerations Properties Pages
timelinepage.h
1 /*
2 
3 Pencil2D - Traditional Animation Software
4 Copyright (C) 2005-2007 Patrick Corrieri & Pascal Naidon
5 Copyright (C) 2012-2020 Matthew Chiawen Chang
6 
7 This program is free software; you can redistribute it and/or
8 modify it under the terms of the GNU General Public License
9 as published by the Free Software Foundation; version 2 of the License.
10 
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15 
16 */
17 
18 #ifndef TIMELINEPAGE_H
19 #define TIMELINEPAGE_H
20 
21 class PreferenceManager;
22 
23 namespace Ui {
24 class TimelinePage;
25 }
26 
27 class TimelinePage : public QWidget
28 {
30 public:
31  TimelinePage();
32  ~TimelinePage() override;
33 
34  void setManager(PreferenceManager* p) { mManager = p; }
35 
36 public slots:
37  void updateValues();
38 
39  void timelineLengthChanged(int);
40  void fontSizeChanged(int);
41  void scrubChanged(int);
42  void drawEmptyKeyRadioButtonToggled(bool);
43  void flipRollMsecSliderChanged(int value);
44  void flipRollMsecSpinboxChanged(int value);
45  void flipRollNumDrawingsSliderChanged(int value);
46  void flipRollNumDrawingsSpinboxChanged(int value);
47  void flipInbetweenMsecSliderChanged(int value);
48  void flipInbetweenMsecSpinboxChanged(int value);
49  void soundScrubActiveChanged(int i);
50  void soundScrubMsecSliderChanged(int value);
51  void soundScrubMsecSpinboxChanged(int value);
52  void layerVisibilityChanged(int);
53  void layerVisibilityThresholdChanged(int);
54 
55 signals:
56  void soundScrubChanged(bool b);
57  void soundScrubMsecChanged(int mSec);
58 
59 private:
60  Ui::TimelinePage* ui = nullptr;
61  PreferenceManager* mManager = nullptr;
62 };
63 
64 #endif // TIMELINEPAGE_H
Q_OBJECTQ_OBJECT