1 #include "formattools.h"
2 //#include "loadmode.h"
4 #include "mwindowgui.h"
6 #include "recordwindow.h"
7 #include "videodevice.inc"
11 #define _(String) gettext(String)
12 #define gettext_noop(String) String
13 #define N_(String) gettext_noop (String)
20 RecordWindow::RecordWindow(MWindow *mwindow, Record *record)
21 : BC_Window(PROGRAM_NAME ": Record",
22 mwindow->gui->get_root_w() / 2 - WIDTH / 2,
23 mwindow->gui->get_root_h() / 2 - HEIGHT / 2,
32 this->mwindow = mwindow;
33 this->record = record;
36 RecordWindow::~RecordWindow()
44 int RecordWindow::create_objects()
46 //printf("RecordWindow::create_objects 1\n");
47 add_subwindow(new BC_Title(5, 5, _("Select a file to record to:")));
49 //printf("RecordWindow::create_objects 1\n");
51 format_tools = new FormatTools(mwindow,
53 record->default_asset);
54 //printf("RecordWindow::create_objects 1\n");
55 format_tools->create_objects(x,
63 record->fixed_compression,
67 //printf("RecordWindow::create_objects 1\n");
69 // Not the same as creating a new file at each label.
70 // Load mode is now located in the RecordGUI
72 // loadmode = new LoadMode(this, x, y, &record->load_mode, 1);
73 // loadmode->create_objects();
75 add_subwindow(new BC_OKButton(this));
76 //printf("RecordWindow::create_objects 1\n");
77 add_subwindow(new BC_CancelButton(this));
78 //printf("RecordWindow::create_objects 1\n");
80 //printf("RecordWindow::create_objects 2\n");
90 RecordToTracks::RecordToTracks(Record *record, int default_)
91 : BC_CheckBox(200, 270, default_) { this->record = record; }
92 RecordToTracks::~RecordToTracks()
94 int RecordToTracks::handle_event()
96 record->to_tracks = get_value();