r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / recordwindow.C
blobb2a988d0e6378d8e2cdd0d6e7126ceeca7f0bdf5
1 #include "formattools.h"
2 //#include "loadmode.h"
3 #include "mwindow.h"
4 #include "mwindowgui.h"
5 #include "record.h"
6 #include "recordwindow.h"
7 #include "videodevice.inc"
10 #include <libintl.h>
11 #define _(String) gettext(String)
12 #define gettext_noop(String) String
13 #define N_(String) gettext_noop (String)
16 #define WIDTH 410
17 #define HEIGHT 360
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,
24         WIDTH, 
25         HEIGHT,
26         (int)BC_INFINITY,
27         (int)BC_INFINITY,
28         0,
29         0,
30         1)
32         this->mwindow = mwindow;
33         this->record = record;
36 RecordWindow::~RecordWindow()
38         delete format_tools;
39 //      delete loadmode;
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");
50         int x = 5, y = 25;
51         format_tools = new FormatTools(mwindow,
52                                         this, 
53                                         record->default_asset);
54 //printf("RecordWindow::create_objects 1\n");
55         format_tools->create_objects(x, 
56                                         y, 
57                                         1, 
58                                         1, 
59                                         1, 
60                                         1, 
61                                         1, 
62                                         1,
63                                         record->fixed_compression,
64                                         1,
65                                         0,
66                                         0);
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
71         x = 10;
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");
79         show_window();
80 //printf("RecordWindow::create_objects 2\n");
81         return 0;
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();