r999: maintainers added to README_en.
[cinelerra_cv/mob.git] / cinelerra / recordwindow.C
blobd64dbbc9fe68d89f4ecc7790309866a083b06dbe
1 #include "formattools.h"
2 #include "language.h"
3 #include "mwindow.h"
4 #include "mwindowgui.h"
5 #include "record.h"
6 #include "recordwindow.h"
7 #include "videodevice.inc"
14 RecordWindow::RecordWindow(MWindow *mwindow, Record *record, int x, int y)
15  : BC_Window(PROGRAM_NAME ": Record", 
16         x,
17         y,
18         RECORD_WINDOW_WIDTH, 
19         RECORD_WINDOW_HEIGHT,
20         (int)BC_INFINITY,
21         (int)BC_INFINITY,
22         0,
23         0,
24         1)
26         this->mwindow = mwindow;
27         this->record = record;
30 RecordWindow::~RecordWindow()
32         delete format_tools;
33 //      delete loadmode;
38 int RecordWindow::create_objects()
40 //printf("RecordWindow::create_objects 1\n");
41         add_subwindow(new BC_Title(5, 5, _("Select a file to record to:")));
43 //printf("RecordWindow::create_objects 1\n");
44         int x = 5, y = 25;
45         format_tools = new FormatTools(mwindow,
46                                         this, 
47                                         record->default_asset);
48 //printf("RecordWindow::create_objects 1\n");
49         format_tools->create_objects(x, 
50                                         y, 
51                                         1, 
52                                         1, 
53                                         1, 
54                                         1, 
55                                         1, 
56                                         1,
57                                         /* record->fixed_compression */ 0,
58                                         1,
59                                         0,
60                                         0);
61 //printf("RecordWindow::create_objects 1\n");
63 // Not the same as creating a new file at each label.
64 // Load mode is now located in the RecordGUI
65         x = 10;
66 //      loadmode = new LoadMode(this, x, y, &record->load_mode, 1);
67 //      loadmode->create_objects();
69         add_subwindow(new BC_OKButton(this));
70 //printf("RecordWindow::create_objects 1\n");
71         add_subwindow(new BC_CancelButton(this));
72 //printf("RecordWindow::create_objects 1\n");
73         show_window();
74 //printf("RecordWindow::create_objects 2\n");
75         return 0;
84 RecordToTracks::RecordToTracks(Record *record, int default_)
85  : BC_CheckBox(200, 270, default_) { this->record = record; }
86 RecordToTracks::~RecordToTracks() 
88 int RecordToTracks::handle_event()
90         record->to_tracks = get_value();