Script
Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Properties | List of all members
ExportVideoDlg Class Reference

#include <exportvideodlg.h>

Inheritance diagram for ExportVideoDlg:
Inheritance graph
[legend]
Collaboration diagram for ExportVideoDlg:
Collaboration graph
[legend]

Public Types

typedef std::vector< String > stringVec
 

Public Slots

int getFromRange ()
 Get the first scene frame index to begin export.
 
int getToRange ()
 Get the last scene frame index to end export.
 
int getResX ()
 Get the x resolution of the scene.
 
int getResY ()
 Get the y resolution of the scene.
 
String getDisplayName ()
 Get the name to display.
 
String getOutputFile ()
 Get the output file.
 
String getVideoConfig ()
 Get the video configuration.
 
void setVideoConfig (String &config)
 Set the video configuration.
 
String getAudioConfig ()
 Get the audio configuration.
 
void setAudioConfig (String &config)
 Set the audio configuration.
 
String getVideoAndAudioConfig ()
 Get the both video and audio configuration.
 
void setVideoAndAudioConfig (String &config)
 Set the both video and audio configuration.
 
String getTitle ()
 Get the title of the dialog.
 
void setTitle (String &title)
 Set the title of the dialog.
 
String getPrefPrefix ()
 Get the prefix used to set preferences.
 
void setPrefPrefix (String &prefix)
 Set the prefix used to set preferences.
 
void addFileType (String &type, String &typeDesc)
 Add a file extension to be know by the dialog for display it in the file explorer.
 
void clearFileTypes ()
 Clear all the file extension and description know.
 
void init ()
 Initialize dialog and settings for export.
 
int Exec ()
 Open the dialog widget.
 
void enableProgress ()
 Enable the progess for the export.
 
void updateProgress (int progress)
 Update the progess for the export.
 
void startExport ()
 Open a dialog for the export frame progress.
 
void endExport ()
 Close the export progress dialog.
 

Signals

void exportCanceled ()
 
void showAudioOptions ()
 
void showVideoOptions ()
 
void showVideoAndAudioOptions ()
 

Public Member Functions

 ExportVideoDlg (TUScene *pScene, QWidget *pParent=NULL, String title=tr("Export Dialog"), String prefPrefix=NTR("EXPORTVIDEO"))
 
virtual ~ExportVideoDlg ()
 
TUDisplayModule * getDisplay ()
 
bool printTimecode ()
 
bool printTimecodeFrame ()
 
String printNote ()
 

Protected Slots

virtual void Accept ()
 
virtual void openFileBrowser ()
 
virtual void enableFrameSelect ()
 
virtual void disableFrameSelect ()
 
virtual void onExportCanceled ()
 
virtual void onShown ()
 
virtual void onShowAudioOptions ()
 
virtual void onShowVideoOptions ()
 
virtual void onShowVideoAndAudioOptions ()
 
virtual void onResolution (int index)
 
virtual void onResX (int value)
 
virtual void onResY (int value)
 

Protected Member Functions

void correctOutputFilePath (String &file)
 
bool isValidFileType (String &type)
 
String getFirstFileType ()
 
virtual void loadPreferences ()
 
virtual void savePreferences ()
 
 ExportVideoDlg ()
 

Protected Attributes

QSpinBox * m_fromSpinBox
 
QSpinBox * m_toSpinBox
 
QLineEdit * m_outputFileEdit
 
String m_outputFile
 
QPushButton * m_openFileDlgBtn
 
QComboBox * m_display
 
QRadioButton * m_all
 
QRadioButton * m_selectRange
 
QComboBox * m_resolution
 
QSpinBox * m_resX
 
QSpinBox * m_resY
 
UI_OKCancelButtons * m_okCancel
 
QPushButton * m_videoOptionsBtn
 
QPushButton * m_soundOptionsBtn
 
QPushButton * m_videoAudioOptionsBtn
 
String _lastOutputFile
 
String _lastExportDisplay
 
bool _bExportAll
 
int _iRangeStart
 
int _iRangeStop
 
int _iResolution
 
int _iCustomResX
 
int _iCustomResY
 
String _audioConfig
 
String _videoConfig
 
String _videoAudioConfig
 
String _prefPrefix
 
stringVec _displayListString
 
StringList _fileTypes
 
StringList _typesDesc
 
int _iFrameCnt
 
bool _isShown
 
bool _showProgress
 
TUSafeProgressDialog _progressDlg
 
TUScene * _scene
 

Properties

int fromFrame
 Begin index frame used for export.
 
int toFrame
 End index frame used for export.
 
String display
 Name displayed of the dialog.
 
String outputFile
 File used for output.
 
String videoConfig
 Video configuration.
 
String audioConfig
 Audio configuration.
 
String title
 title of the dialog
 
String prefPrefix
 the prefix to use for the preference items
 

Detailed Description

Class used to create, initialize and make export from a scene

You can use it in Script Editor only.

Member Typedef Documentation

typedef std::vector<String> ExportVideoDlg::stringVec

Constructor & Destructor Documentation

ExportVideoDlg::ExportVideoDlg ( TUScene *  pScene,
QWidget *  pParent = NULL,
String  title = tr("Export Dialog"),
String  prefPrefix = NTR("EXPORTVIDEO") 
)
virtual ExportVideoDlg::~ExportVideoDlg ( )
virtual
ExportVideoDlg::ExportVideoDlg ( )
protected

Member Function Documentation

virtual void ExportVideoDlg::Accept ( )
protectedvirtualslot
void ExportVideoDlg::addFileType ( String &  type,
String &  typeDesc 
)
slot

Add a file extension to be know by the dialog for display it in the file explorer.

void ExportVideoDlg::clearFileTypes ( )
slot

Clear all the file extension and description know.

void ExportVideoDlg::correctOutputFilePath ( String &  file)
protected
virtual void ExportVideoDlg::disableFrameSelect ( )
protectedvirtualslot
virtual void ExportVideoDlg::enableFrameSelect ( )
protectedvirtualslot
void ExportVideoDlg::enableProgress ( )
slot

Enable the progess for the export.

void ExportVideoDlg::endExport ( )
slot

Close the export progress dialog.

int ExportVideoDlg::Exec ( )
slot

Open the dialog widget.

void ExportVideoDlg::exportCanceled ( )
signal
String ExportVideoDlg::getAudioConfig ( )
slot

Get the audio configuration.

TUDisplayModule* ExportVideoDlg::getDisplay ( )
String ExportVideoDlg::getDisplayName ( )
slot

Get the name to display.

String ExportVideoDlg::getFirstFileType ( )
protected
int ExportVideoDlg::getFromRange ( )
slot

Get the first scene frame index to begin export.

String ExportVideoDlg::getOutputFile ( )
slot

Get the output file.

String ExportVideoDlg::getPrefPrefix ( )
slot

Get the prefix used to set preferences.

int ExportVideoDlg::getResX ( )
slot

Get the x resolution of the scene.

int ExportVideoDlg::getResY ( )
slot

Get the y resolution of the scene.

String ExportVideoDlg::getTitle ( )
slot

Get the title of the dialog.

int ExportVideoDlg::getToRange ( )
slot

Get the last scene frame index to end export.

String ExportVideoDlg::getVideoAndAudioConfig ( )
slot

Get the both video and audio configuration.

String ExportVideoDlg::getVideoConfig ( )
slot

Get the video configuration.

void ExportVideoDlg::init ( )
slot

Initialize dialog and settings for export.

bool ExportVideoDlg::isValidFileType ( String &  type)
protected
virtual void ExportVideoDlg::loadPreferences ( )
protectedvirtual
virtual void ExportVideoDlg::onExportCanceled ( )
protectedvirtualslot
virtual void ExportVideoDlg::onResolution ( int  index)
protectedvirtualslot
virtual void ExportVideoDlg::onResX ( int  value)
protectedvirtualslot
virtual void ExportVideoDlg::onResY ( int  value)
protectedvirtualslot
virtual void ExportVideoDlg::onShowAudioOptions ( )
inlineprotectedvirtualslot
virtual void ExportVideoDlg::onShown ( )
protectedvirtualslot
virtual void ExportVideoDlg::onShowVideoAndAudioOptions ( )
inlineprotectedvirtualslot
virtual void ExportVideoDlg::onShowVideoOptions ( )
inlineprotectedvirtualslot
virtual void ExportVideoDlg::openFileBrowser ( )
protectedvirtualslot
String ExportVideoDlg::printNote ( )
bool ExportVideoDlg::printTimecode ( )
bool ExportVideoDlg::printTimecodeFrame ( )
virtual void ExportVideoDlg::savePreferences ( )
protectedvirtual
void ExportVideoDlg::setAudioConfig ( String &  config)
slot

Set the audio configuration.

void ExportVideoDlg::setPrefPrefix ( String &  prefix)
slot

Set the prefix used to set preferences.

void ExportVideoDlg::setTitle ( String &  title)
slot

Set the title of the dialog.

void ExportVideoDlg::setVideoAndAudioConfig ( String &  config)
slot

Set the both video and audio configuration.

void ExportVideoDlg::setVideoConfig ( String &  config)
slot

Set the video configuration.

void ExportVideoDlg::showAudioOptions ( )
signal
void ExportVideoDlg::showVideoAndAudioOptions ( )
signal
void ExportVideoDlg::showVideoOptions ( )
signal
void ExportVideoDlg::startExport ( )
slot

Open a dialog for the export frame progress.

void ExportVideoDlg::updateProgress ( int  progress)
slot

Update the progess for the export.

Member Data Documentation

String ExportVideoDlg::_audioConfig
protected
bool ExportVideoDlg::_bExportAll
protected
stringVec ExportVideoDlg::_displayListString
protected
StringList ExportVideoDlg::_fileTypes
protected
int ExportVideoDlg::_iCustomResX
protected
int ExportVideoDlg::_iCustomResY
protected
int ExportVideoDlg::_iFrameCnt
protected
int ExportVideoDlg::_iRangeStart
protected
int ExportVideoDlg::_iRangeStop
protected
int ExportVideoDlg::_iResolution
protected
bool ExportVideoDlg::_isShown
protected
String ExportVideoDlg::_lastExportDisplay
protected
String ExportVideoDlg::_lastOutputFile
protected
String ExportVideoDlg::_prefPrefix
protected
TUSafeProgressDialog ExportVideoDlg::_progressDlg
protected
TUScene* ExportVideoDlg::_scene
protected
bool ExportVideoDlg::_showProgress
protected
StringList ExportVideoDlg::_typesDesc
protected
String ExportVideoDlg::_videoAudioConfig
protected
String ExportVideoDlg::_videoConfig
protected
QRadioButton* ExportVideoDlg::m_all
protected
QComboBox* ExportVideoDlg::m_display
protected
QSpinBox* ExportVideoDlg::m_fromSpinBox
protected
UI_OKCancelButtons* ExportVideoDlg::m_okCancel
protected
QPushButton* ExportVideoDlg::m_openFileDlgBtn
protected
String ExportVideoDlg::m_outputFile
protected
QLineEdit* ExportVideoDlg::m_outputFileEdit
protected
QComboBox* ExportVideoDlg::m_resolution
protected
QSpinBox* ExportVideoDlg::m_resX
protected
QSpinBox* ExportVideoDlg::m_resY
protected
QRadioButton* ExportVideoDlg::m_selectRange
protected
QPushButton* ExportVideoDlg::m_soundOptionsBtn
protected
QSpinBox* ExportVideoDlg::m_toSpinBox
protected
QPushButton* ExportVideoDlg::m_videoAudioOptionsBtn
protected
QPushButton* ExportVideoDlg::m_videoOptionsBtn
protected

Property Documentation

String ExportVideoDlg::audioConfig
read

Audio configuration.

String ExportVideoDlg::display
read

Name displayed of the dialog.

int ExportVideoDlg::fromFrame
read

Begin index frame used for export.

String ExportVideoDlg::outputFile
read

File used for output.

String ExportVideoDlg::prefPrefix
readwrite

the prefix to use for the preference items

String ExportVideoDlg::title
readwrite

title of the dialog

int ExportVideoDlg::toFrame
read

End index frame used for export.

String ExportVideoDlg::videoConfig
read

Video configuration.


The documentation for this class was generated from the following file: