00001 #include "formattools.h"
00002 #include "language.h"
00003 #include "mwindow.h"
00004 #include "mwindowgui.h"
00005 #include "record.h"
00006 #include "recordwindow.h"
00007 #include "videodevice.inc"
00008
00009
00010
00011
00012
00013
00014 RecordWindow::RecordWindow(MWindow *mwindow, Record *record, int x, int y)
00015 : BC_Window(PROGRAM_NAME ": Record",
00016 x,
00017 y,
00018 RECORD_WINDOW_WIDTH,
00019 RECORD_WINDOW_HEIGHT,
00020 (int)BC_INFINITY,
00021 (int)BC_INFINITY,
00022 0,
00023 0,
00024 1)
00025 {
00026 this->mwindow = mwindow;
00027 this->record = record;
00028 }
00029
00030 RecordWindow::~RecordWindow()
00031 {
00032 delete format_tools;
00033
00034 }
00035
00036
00037
00038 int RecordWindow::create_objects()
00039 {
00040
00041 add_subwindow(new BC_Title(5, 5, _("Select a file to record to:")));
00042
00043
00044 int x = 5, y = 25;
00045 format_tools = new FormatTools(mwindow,
00046 this,
00047 record->default_asset);
00048
00049 format_tools->create_objects(x,
00050 y,
00051 1,
00052 1,
00053 1,
00054 1,
00055 1,
00056 1,
00057 record->fixed_compression,
00058 1,
00059 0,
00060 0);
00061
00062
00063
00064
00065 x = 10;
00066
00067
00068
00069 add_subwindow(new BC_OKButton(this));
00070
00071 add_subwindow(new BC_CancelButton(this));
00072
00073 show_window();
00074
00075 return 0;
00076 }
00077
00078
00079
00080
00081
00082
00083
00084 RecordToTracks::RecordToTracks(Record *record, int default_)
00085 : BC_CheckBox(200, 270, default_) { this->record = record; }
00086 RecordToTracks::~RecordToTracks()
00087 {}
00088 int RecordToTracks::handle_event()
00089 {
00090 record->to_tracks = get_value();
00091 }
00092