r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / cinelerra / vdeviceprefs.h
blob26247c5de9d953fc1da50b1c5de7761e05d7d7c1
1 #ifndef VDEVICEPREFS_H
2 #define VDEVICEPREFS_H
4 // Modes
5 #ifndef MODEPLAY
6 #define MODEPLAY 0
7 #define MODERECORD 1
8 #define MODEDUPLEX 2
9 #endif
11 #include "adeviceprefs.inc"
12 #include "channelpicker.inc"
13 #include "guicast.h"
14 #include "playbackconfig.inc"
15 #include "preferencesthread.inc"
16 #include "recordconfig.inc"
17 #include "vdeviceprefs.inc"
19 class VDeviceCheckBox;
20 class VDeviceTextBox;
21 class VDeviceIntBox;
22 class VDriverMenu;
24 class VDevicePrefs
26 public:
27 VDevicePrefs(int x,
28 int y,
29 PreferencesWindow *pwindow,
30 PreferencesDialog *dialog,
31 VideoOutConfig *out_config,
32 VideoInConfig *in_config,
33 int mode);
34 ~VDevicePrefs();
36 int initialize();
37 int delete_objects();
39 PreferencesWindow *pwindow;
40 PreferencesDialog *dialog;
41 VideoOutConfig *out_config;
42 VideoInConfig *in_config;
43 PrefsChannelPicker *channel_picker;
45 private:
46 int create_lml_objs();
47 int create_firewire_objs();
48 int create_v4l_objs();
49 int create_screencap_objs();
50 int create_buz_objs();
51 int create_x11_objs();
53 VDriverMenu *menu;
54 BC_Title *device_title, *port_title, *channel_title, *output_title, *syt_title;
55 VDeviceTextBox *device_text;
56 VDeviceIntBox *firewire_port;
57 VDeviceIntBox *firewire_channel;
58 VDeviceIntBox *firewire_channels;
59 VDeviceIntBox *firewire_syt;
60 VDeviceTextBox *firewire_path;
61 VDeviceCheckBox *firewire_use_dv1394;
62 VDeviceCheckBox *buz_swap_channels;
63 int driver, mode;
64 int x;
65 int y;
68 class VDeviceTextBox : public BC_TextBox
70 public:
71 VDeviceTextBox(int x, int y, char *output);
73 int handle_event();
74 char *output;
77 class VDeviceIntBox : public BC_TextBox
79 public:
80 VDeviceIntBox(int x, int y, int *output);
82 int handle_event();
83 int *output;
86 class VDeviceCheckBox : public BC_CheckBox
88 public:
89 VDeviceCheckBox(int x, int y, int *output, char *text);
91 int handle_event();
92 int *output;
96 class VDriverMenu : public BC_PopupMenu
98 public:
99 VDriverMenu(int x,
100 int y,
101 VDevicePrefs *device_prefs,
102 int do_input,
103 int *output);
104 ~VDriverMenu();
106 char* driver_to_string(int driver);
107 int create_objects();
109 VDevicePrefs *device_prefs;
110 int do_input;
111 int *output;
112 char string[BCTEXTLEN];
116 class VDriverItem : public BC_MenuItem
118 public:
119 VDriverItem(VDriverMenu *popup, char *text, int driver);
120 ~VDriverItem();
122 int handle_event();
124 VDriverMenu *popup;
125 int driver;
130 #endif