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, char *sourceinpoint, char *sourceoutpoint, char *destinpoint, char *destoutpoint, char *reel_name);
68 void double_to_CMX3600(double seconds, double frame_rate, char *str);
72 class ExportEDLItem : public BC_MenuItem
75 ExportEDLItem(MWindow *mwindow);
82 class ExportEDL : public Thread
85 ExportEDL(MWindow *mwindow);
88 void start_interactive();
92 // Force filename to have a 0 padded number if rendering to a list.
95 // Mutex *package_lock, *counter_lock;
96 // Copy of mwindow preferences
97 // Preferences *preferences;
98 // Total selection to render in seconds
99 double total_start, total_end;
101 // Current open RenderWindow
102 ExportEDLWindow *exportedl_window;
103 ExportEDLAsset *exportasset;
108 class ExportEDLWindow : public BC_Window
111 ExportEDLWindow(MWindow *mwindow, ExportEDL *exportedl, ExportEDLAsset *exportasset);
114 void create_objects();
116 ExportEDLAsset *exportasset;
118 BrowseButton *path_button;
119 ExportEDLPathText *path_textbox;
120 BC_RecentList *path_recent;
121 ExportEDLWindowTrackList *track_list;
123 ArrayList<BC_ListBoxItem*> items_tracks[2];
132 class ExportEDLPathText : public BC_TextBox
135 ExportEDLPathText(int x, int y, ExportEDLWindow *window);
136 ~ExportEDLPathText();
139 ExportEDLWindow *window;
142 class ExportEDLWindowTrackList : public BC_ListBox
145 ExportEDLWindowTrackList(ExportEDLWindow *window,
150 ArrayList<BC_ListBoxItem*> *track_list);
153 ExportEDLWindow *window;