1 #include "formattools.h"
4 #include "mwindowgui.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",
26 this->mwindow = mwindow;
27 this->record = record;
30 RecordWindow::~RecordWindow()
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");
45 format_tools = new FormatTools(mwindow,
47 record->default_asset);
48 //printf("RecordWindow::create_objects 1\n");
49 format_tools->create_objects(x,
57 /* record->fixed_compression */ 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
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");
74 //printf("RecordWindow::create_objects 2\n");
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();