Files
oak-editor/app/dialog/export/export.h
T
itsmattkc cb5a468b4a implemented color management UI functionality in the ExportDialog
Frontend UI work in setting up color management when exporting.
2019-12-16 16:47:36 +11:00

82 lines
1.3 KiB
C++

#ifndef EXPORTDIALOG_H
#define EXPORTDIALOG_H
#include <QComboBox>
#include <QDialog>
#include <QLineEdit>
#include "exportaudiotab.h"
#include "exportcodec.h"
#include "exportformat.h"
#include "exportvideotab.h"
#include "widget/viewer/viewer.h"
class ExportDialog : public QDialog
{
Q_OBJECT
public:
ExportDialog(ViewerOutput* viewer_node, QWidget* parent = nullptr);
private:
void SetUpFormats();
void LoadPresets();
void SetDefaultFilename();
ViewerOutput* viewer_node_;
QList<ExportFormat> formats_;
int previously_selected_format_;
QList<ExportCodec> codecs_;
ViewerWidget* preview_viewer_;
QLineEdit* filename_edit_;
QComboBox* format_combobox_;
ExportVideoTab* video_tab_;
ExportAudioTab* audio_tab_;
double video_aspect_ratio_;
enum Format {
kFormatDNxHD,
kFormatMatroska,
kFormatMPEG4,
kFormatOpenEXR,
kFormatQuickTime,
kFormatPNG,
kFormatTIFF,
kFormatCount
};
enum Codec {
kCodecDNxHD,
kCodecH264,
kCodecH265,
kCodecOpenEXR,
kCodecPNG,
kCodecProRes,
kCodecTIFF,
kCodecMP2,
kCodecMP3,
kCodecAAC,
kCodecPCM,
kCodecCount
};
private slots:
void BrowseFilename();
void FormatChanged(int index);
void ResolutionChanged();
void VideoCodecChanged();
};
#endif // EXPORTDIALOG_H