File: exportdialog.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 (50 lines) | stat: -rw-r--r-- 972 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
40
41
42
43
44
45
46
47
48
49
50
#ifndef EXPORTDIALOG_H
#define EXPORTDIALOG_H

#include <QDialog>

namespace Ui {
class ExportDialog;
}

struct Sequence;
class ExportThread;

class ExportDialog : public QDialog
{
	Q_OBJECT
public:
	explicit ExportDialog(QWidget *parent = 0);
    ~ExportDialog();
    QString export_error;

private slots:
	void on_formatCombobox_currentIndexChanged(int index);

	void on_pushButton_2_clicked();

	void on_pushButton_clicked();

    void update_progress_bar(int value, qint64 remaining_ms);

    void on_renderCancel_clicked();

    void render_thread_finished();

	void on_vcodecCombobox_currentIndexChanged(int index);

	void on_compressionTypeCombobox_currentIndexChanged(int index);

private:
	Ui::ExportDialog *ui;

	QVector<QString> format_strings;
	QVector<int> format_vcodecs;
	QVector<int> format_acodecs;

    ExportThread* et;
	void prep_ui_for_render(bool r);
    bool cancelled;
};

#endif // EXPORTDIALOG_H