Olive
speeddialog.h
Go to the documentation of this file.
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 #include <QCheckBox>
26 
27 #include "project/clip.h"
28 #include "ui/labelslider.h"
29 
30 class SpeedDialog : public QDialog
31 {
32  Q_OBJECT
33 public:
34  SpeedDialog(QWidget* parent = 0);
35  QVector<ClipPtr> 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:
47 
48  QCheckBox* reverse;
49  QCheckBox* maintain_pitch;
50  QCheckBox* ripple;
51 
57 };
58 
59 #endif // SPEEDDIALOG_H
double current_frame_rate
Definition: speeddialog.h:53
void duration_update()
Definition: speeddialog.cpp:219
QCheckBox * maintain_pitch
Definition: speeddialog.h:49
Definition: speeddialog.h:30
void run()
Definition: speeddialog.cpp:85
QVector< ClipPtr > clips
Definition: speeddialog.h:35
long current_length
Definition: speeddialog.h:56
long default_length
Definition: speeddialog.h:55
void frame_rate_update()
Definition: speeddialog.cpp:254
double current_percent
Definition: speeddialog.h:54
QCheckBox * reverse
Definition: speeddialog.h:48
void accept()
Definition: speeddialog.cpp:345
The LabelSlider class.
Definition: labelslider.h:40
LabelSlider * frame_rate
Definition: speeddialog.h:46
void percent_update()
Definition: speeddialog.cpp:184
double default_frame_rate
Definition: speeddialog.h:52
QCheckBox * ripple
Definition: speeddialog.h:50
LabelSlider * duration
Definition: speeddialog.h:45
LabelSlider * percent
Definition: speeddialog.h:44
SpeedDialog(QWidget *parent=0)
Definition: speeddialog.cpp:38