Olive
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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 "timeline/clip.h"
28 #include "ui/labelslider.h"
29 
38 class SpeedDialog : public QDialog
39 {
40  Q_OBJECT
41 public:
53  SpeedDialog(QWidget* parent, QVector<Clip*> clips);
54 public slots:
62  virtual int exec() override;
63 private slots:
67  virtual void accept() override;
68 
76  void percent_update();
77 
85  void duration_update();
86 
94  void frame_rate_update();
95 private:
99  QVector<Clip*> clips_;
100 
105 
110 
115 
119  QCheckBox* reverse;
120 
124  QCheckBox* maintain_pitch;
125 
129  QCheckBox* ripple;
130 };
131 
132 #endif // SPEEDDIALOG_H
The SpeedDialog class.
Definition: speeddialog.h:38
void percent_update()
Slot when the speed percentage field is changed by the user.
Definition: speeddialog.cpp:186
QCheckBox * reverse
UI widget for setting the Clip&#39;s reverse value.
Definition: speeddialog.h:119
void duration_update()
Slot when the duration field is changed by the user.
Definition: speeddialog.cpp:221
QCheckBox * maintain_pitch
UI widget for setting the Clip&#39;s maintain pitch value.
Definition: speeddialog.h:124
virtual int exec() override
Override of exec() to set up current Clip speed data just before opening.
Definition: speeddialog.cpp:88
The LabelSlider class.
Definition: labelslider.h:33
LabelSlider * duration
Duration field.
Definition: speeddialog.h:109
QVector< Clip * > clips_
Internal array of Clip objects.
Definition: speeddialog.h:99
LabelSlider * frame_rate
Frame rate field.
Definition: speeddialog.h:114
virtual void accept() override
Override of accept() to perform the selected changes on the Clips.
Definition: speeddialog.cpp:350
void frame_rate_update()
Slot when the frame rate field is changed by the user.
Definition: speeddialog.cpp:256
SpeedDialog(QWidget *parent, QVector< Clip * > clips)
SpeedDialog Constructor.
Definition: speeddialog.cpp:39
LabelSlider * percent
Speed percentage field.
Definition: speeddialog.h:104
QCheckBox * ripple
UI widget for setting whether to ripple Clips around these changes or not.
Definition: speeddialog.h:129