Merge branch 'ct' of git.pipapo.org:cinelerra-ct into ct
[cinelerra_cv/ct.git] / cinelerra / recordwindow.C
blob8e950491f7039ce58e0223c4d4e437406aaf4834
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();
94 //      Local Variables:
95 //      mode: C++
96 //      c-file-style: "linux"
97 //      End: