X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;ds=sidebyside;f=cinelerra-5.0%2Fcinelerra%2Fadeviceprefs.h;fp=cinelerra-5.0%2Fcinelerra%2Fadeviceprefs.h;h=0000000000000000000000000000000000000000;hb=30bdb85eb33a8ee7ba675038a86c6be59c43d7bd;hp=a947f2901d5c4bb7cf5a5dd67824d0beb582b432;hpb=52fcc46226f9df46f9ce9d0566dc568455a7db0b;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.0/cinelerra/adeviceprefs.h b/cinelerra-5.0/cinelerra/adeviceprefs.h deleted file mode 100644 index a947f290..00000000 --- a/cinelerra-5.0/cinelerra/adeviceprefs.h +++ /dev/null @@ -1,200 +0,0 @@ - -/* - * CINELERRA - * Copyright (C) 2008 Adam Williams - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * - */ - -#ifndef ADEVICEPREFS_H -#define ADEVICEPREFS_H - - -class OSSEnable; -class ALSADevice; - -#include "bitspopup.inc" -#include "guicast.h" -#include "playbackconfig.inc" -#include "preferencesthread.inc" -#include "recordconfig.inc" - -class ADriverMenu; -class ADeviceTextBox; -class ADeviceIntBox; -class ADeviceTumbleBox; - -class ADevicePrefs -{ -public: - ADevicePrefs(int x, - int y, - PreferencesWindow *pwindow, - PreferencesDialog *dialog, - AudioOutConfig *out_config, - AudioInConfig *in_config, - int mode); - ~ADevicePrefs(); - - void reset(); - static int get_h(int recording = 0); - int update(AudioOutConfig *out_config); -// creation - set if this is the first initialize of the object -// to prevent file format from being overwritten -// & window from being flushed - int initialize(int creation); - int delete_objects(); - - PreferencesWindow *pwindow; - -private: - friend class ADriverMenu; - friend class ADeviceTextBox; - friend class ADeviceIntBox; - friend class ADeviceTumbleBox; - - int create_oss_objs(); - int create_esound_objs(); - int create_firewire_objs(); - int create_alsa_objs(); - int create_cine_objs(); - int create_dvb_objs(); - int create_v4l2mpeg_objs(); - - int delete_oss_objs(); - int delete_esound_objs(); - int delete_firewire_objs(); - int delete_alsa_objs(); - int delete_dvb_objs(); - int delete_v4l2mpeg_objs(); - -// The output config resolved from playback strategy and render engine. - AudioOutConfig *out_config; - AudioInConfig *in_config; - PreferencesDialog *dialog; - int driver, mode; - int x; - int y; - ADriverMenu *menu; - BC_Title *driver_title, *path_title, *bits_title; - BC_Title *server_title, *port_title, *channel_title, *syt_title; - BC_Title *dvb_adapter_title, *dvb_device_title; - BC_CheckBox *follow_audio_config; - BitsPopup *dvb_bits; - BitsPopup *v4l2_bits; - OSSEnable *oss_enable[MAXDEVICES]; - ADeviceTextBox *oss_path[MAXDEVICES]; - BitsPopup *oss_bits; - ADeviceTextBox *esound_server; - ADeviceIntBox *esound_port; - ADeviceIntBox *firewire_port; - ADeviceIntBox *firewire_channel; - ADeviceTextBox *firewire_path; - ADeviceIntBox *firewire_syt; - ADeviceTextBox *dvb_adapter_path; - ADeviceTumbleBox *dvb_adapter_device; - - - ALSADevice *alsa_device; - BitsPopup *alsa_bits; - BC_CheckBox *alsa_workaround; - ArrayList *alsa_drivers; - - - BitsPopup *cine_bits; - ADeviceTextBox *cine_path; -}; - -class ADriverMenu : public BC_PopupMenu -{ -public: - ADriverMenu(int x, - int y, - ADevicePrefs *device_prefs, - int do_input, - int *output); - ~ADriverMenu(); - - void create_objects(); - char* adriver_to_string(int driver); - - int do_input; - int *output; - ADevicePrefs *device_prefs; - char string[BCTEXTLEN]; -}; - -class ADriverItem : public BC_MenuItem -{ -public: - ADriverItem(ADriverMenu *popup, const char *text, int driver); - ~ADriverItem(); - int handle_event(); - ADriverMenu *popup; - int driver; -}; - - -class OSSEnable : public BC_CheckBox -{ -public: - OSSEnable(int x, int y, int *output); - int handle_event(); - int *output; -}; - - -class ADeviceTextBox : public BC_TextBox -{ -public: - ADeviceTextBox(int x, int y, char *output); - int handle_event(); - char *output; -}; - -class ADeviceIntBox : public BC_TextBox -{ -public: - ADeviceIntBox(int x, int y, int *output); - int handle_event(); - int *output; -}; - -class ADeviceTumbleBox : public BC_TumbleTextBox -{ -public: - ADeviceTumbleBox(ADevicePrefs *prefs, - int x, int y, int *output, int min, int max, int text_w=60); - - int handle_event(); - int *output; -}; - -class ALSADevice : public BC_PopupTextBox -{ -public: - ALSADevice(PreferencesDialog *dialog, - int x, - int y, - char *output, - ArrayList *devices); - ~ALSADevice(); - - int handle_event(); - char *output; -}; - -#endif