Olive
speeddialog.h
1 /***
2 
3  Olive - Non-Linear Video Editor
4  Copyright (C) 2019 Olive Team
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
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  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 
19 ***/
20 
21 #ifndef SPEEDDIALOG_H
22 #define SPEEDDIALOG_H
23 
24 #include <QDialog>
25 
26 class Clip;
27 class LabelSlider;
28 class QCheckBox;
29 
30 class SpeedDialog : public QDialog
31 {
32  Q_OBJECT
33 public:
34  SpeedDialog(QWidget* parent = 0);
35  QVector<Clip*> clips;
36 
37  void run();
38 private slots:
39  void percent_update();
40  void duration_update();
41  void frame_rate_update();
42  void accept();
43 private:
44  LabelSlider* percent;
45  LabelSlider* duration;
46  LabelSlider* frame_rate;
47 
48  QCheckBox* reverse;
49  QCheckBox* maintain_pitch;
50  QCheckBox* ripple;
51 
52  double default_frame_rate;
53  double current_frame_rate;
54  double current_percent;
55  long default_length;
56  long current_length;
57 };
58 
59 #endif // SPEEDDIALOG_H
Definition: speeddialog.h:30
The LabelSlider class.
Definition: labelslider.h:40
Definition: clip.h:53