1 /*****************************************************************************
2 * preferences_widgets.h : wxWindows plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2000-2003 VideoLAN
5 * $Id: preferences_widgets.h,v 1.1 2003/10/19 22:41:18 sigmunau Exp $
7 * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 class ConfigControl: public wxPanel
27 ConfigControl( wxWindow *parent );
30 virtual int GetIntValue();
31 virtual float GetFloatValue();
32 virtual const char * GetPszValue();
42 class KeyConfigControl: public ConfigControl
45 KeyConfigControl( module_config_t *p_item, wxWindow *parent );
47 virtual int GetIntValue();
55 class ModuleConfigControl: public ConfigControl
58 ModuleConfigControl( intf_thread_t *p_intf, module_config_t *p_item,
60 ~ModuleConfigControl();
61 virtual const char *GetPszValue();
66 class StringConfigControl: public ConfigControl
69 StringConfigControl( module_config_t *p_item, wxWindow *parent );
70 ~StringConfigControl();
71 virtual const char *GetPszValue();
76 class StringListConfigControl: public ConfigControl
79 StringListConfigControl( module_config_t *p_item, wxWindow *parent );
80 ~StringListConfigControl();
81 virtual const char *GetPszValue();
86 class FileConfigControl: public ConfigControl
89 FileConfigControl( module_config_t *p_item, wxWindow *parent );
91 void FileConfigControl::OnBrowse( wxCommandEvent& );
92 virtual const char *GetPszValue();
100 class IntegerConfigControl: public ConfigControl
103 IntegerConfigControl( module_config_t *p_item, wxWindow *parent );
104 ~IntegerConfigControl();
105 virtual int GetIntValue();
110 class RangedIntConfigControl: public ConfigControl
113 RangedIntConfigControl( module_config_t *p_item, wxWindow *parent );
114 ~RangedIntConfigControl();
115 virtual int GetIntValue();
120 class FloatConfigControl: public ConfigControl
123 FloatConfigControl( module_config_t *p_item, wxWindow *parent );
124 ~FloatConfigControl();
125 virtual float GetFloatValue();
127 wxTextCtrl *textctrl;
130 class BoolConfigControl: public ConfigControl
133 BoolConfigControl( module_config_t *p_item, wxWindow *parent );
134 ~BoolConfigControl();
135 virtual int GetIntValue();
137 wxCheckBox *checkbox;