void jobs_export ()
{
- ExportDialog* d = new ExportDialog (this);
+ ExportDialog* d = new ExportDialog (this, _film->isdcf_name(true));
if (d->ShowModal() == wxID_OK) {
shared_ptr<TranscodeJob> job (new TranscodeJob (_film));
job->set_encoder (
#include <wx/filepicker.h>
#include <boost/bind.hpp>
+using std::string;
using boost::bind;
#define FORMATS 2
EXPORT_FORMAT_H264_AAC
};
-ExportDialog::ExportDialog (wxWindow* parent)
+ExportDialog::ExportDialog (wxWindow* parent, string name)
: TableDialog (parent, _("Export film"), 2, 1, true)
{
add (_("Format"), true);
add (_("Output file"), true);
_file = new FilePickerCtrl (this, _("Select output file"), format_filters[0], false);
+ _file->SetPath (name);
add (_file);
for (int i = 0; i < FORMATS; ++i) {
class ExportDialog : public TableDialog
{
public:
- explicit ExportDialog (wxWindow* parent);
+ explicit ExportDialog (wxWindow* parent, std::string name);
boost::filesystem::path path () const;
ExportFormat format () const;