4 * Copyright (C) 2006 Andraz Tori
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 #include "bitspopup.h"
28 #include "browsebutton.h"
30 #include "compresspopup.h"
31 #include "condition.inc"
33 #include "errorbox.inc"
37 #include "mwindow.inc"
39 #define EDLTYPE_CMX3600 1
41 class ExportEDLPathText;
42 class ExportEDLWindowTrackList;
43 class ExportEDLWindow;
48 ExportEDLAsset(MWindow *mwindow, EDL *edl);
57 // We are currently exporting a track at once
67 int edit_to_timecodes(Edit *edit,
68 char *sourceinpoint, char *sourceoutpoint,
69 char *destinpoint, char *destoutpoint,
71 void double_to_CMX3600(double seconds, double frame_rate, char *str);
75 class ExportEDLItem : public BC_MenuItem
78 ExportEDLItem(MWindow *mwindow);
85 class ExportEDL : public Thread
88 ExportEDL(MWindow *mwindow);
91 void start_interactive();
95 // Force filename to have a 0 padded number if rendering to a list.
98 // Mutex *package_lock, *counter_lock;
99 // Copy of mwindow preferences
100 // Preferences *preferences;
101 // Total selection to render in seconds
102 double total_start, total_end;
104 // Current open RenderWindow
105 ExportEDLWindow *exportedl_window;
106 ExportEDLAsset *exportasset;
111 class ExportEDLWindow : public BC_Window
114 ExportEDLWindow(MWindow *mwindow, ExportEDL *exportedl, ExportEDLAsset *exportasset);
117 void create_objects();
119 ExportEDLAsset *exportasset;
121 BrowseButton *path_button;
122 ExportEDLPathText *path_textbox;
123 BC_RecentList *path_recent;
124 ExportEDLWindowTrackList *track_list;
125 ArrayList<BC_ListBoxItem*> items_tracks[2];
126 const char *list_titles[2];
136 class ExportEDLPathText : public BC_TextBox
139 ExportEDLPathText(int x, int y, ExportEDLWindow *window);
140 ~ExportEDLPathText();
143 ExportEDLWindow *window;
146 class ExportEDLWindowTrackList : public BC_ListBox
149 ExportEDLWindowTrackList(ExportEDLWindow *window,
150 int x, int y, int w, int h);
153 ExportEDLWindow *window;