File: speeddialog.h

package info (click to toggle)
olive-editor 20181223-2
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,844 kB
  • sloc: cpp: 20,147; xml: 315; ansic: 16; makefile: 11
file content (39 lines) | stat: -rw-r--r-- 694 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef SPEEDDIALOG_H
#define SPEEDDIALOG_H

#include <QDialog>

struct Clip;
class LabelSlider;
class QCheckBox;

class SpeedDialog : public QDialog
{
	Q_OBJECT
public:
	SpeedDialog(QWidget* parent = 0);
	QVector<Clip*> clips;

	void run();
private slots:
	void percent_update();
	void duration_update();
	void frame_rate_update();
	void accept();
private:
	LabelSlider* percent;
	LabelSlider* duration;
	LabelSlider* frame_rate;

	QCheckBox* reverse;
	QCheckBox* maintain_pitch;
	QCheckBox* ripple;

	double default_frame_rate;
	double current_frame_rate;
	double current_percent;
	long default_length;
	long current_length;
};

#endif // SPEEDDIALOG_H