1 /*****************************************************************************
2 * preferences_widgets.h : wxWindows plugin for vlc
3 *****************************************************************************
4 * Copyright (C) 2000-2003 VideoLAN
5 * $Id: preferences_widgets.h,v 1.4 2003/11/05 00:39:16 gbazin 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( module_config_t *, wxWindow *parent );
31 virtual int GetIntValue() {return 0;}
32 virtual float GetFloatValue() {return 0;}
33 virtual wxString GetPszValue() {return wxString();}
37 vlc_bool_t IsAdvanced();
46 vlc_bool_t b_advanced;
49 ConfigControl *CreateConfigControl( vlc_object_t *,
50 module_config_t *, wxWindow * );
52 class KeyConfigControl: public ConfigControl
55 KeyConfigControl( module_config_t *p_item, wxWindow *parent );
57 virtual int GetIntValue();
65 class ModuleConfigControl: public ConfigControl
68 ModuleConfigControl( vlc_object_t *p_this, module_config_t *p_item,
70 ~ModuleConfigControl();
71 virtual wxString GetPszValue();
76 class StringConfigControl: public ConfigControl
79 StringConfigControl( module_config_t *p_item, wxWindow *parent );
80 ~StringConfigControl();
81 virtual wxString GetPszValue();
86 class StringListConfigControl: public ConfigControl
89 StringListConfigControl( module_config_t *p_item, wxWindow *parent );
90 ~StringListConfigControl();
91 virtual wxString GetPszValue();
96 class FileConfigControl: public ConfigControl
99 FileConfigControl( module_config_t *p_item, wxWindow *parent );
100 ~FileConfigControl();
101 void FileConfigControl::OnBrowse( wxCommandEvent& );
102 virtual wxString GetPszValue();
104 DECLARE_EVENT_TABLE()
105 wxTextCtrl *textctrl;
110 class IntegerConfigControl: public ConfigControl
113 IntegerConfigControl( module_config_t *p_item, wxWindow *parent );
114 ~IntegerConfigControl();
115 virtual int GetIntValue();
120 class IntegerListConfigControl: public ConfigControl
123 IntegerListConfigControl( module_config_t *p_item, wxWindow *parent );
124 ~IntegerListConfigControl();
125 virtual int GetIntValue();
130 class RangedIntConfigControl: public ConfigControl
133 RangedIntConfigControl( module_config_t *p_item, wxWindow *parent );
134 ~RangedIntConfigControl();
135 virtual int GetIntValue();
140 class FloatConfigControl: public ConfigControl
143 FloatConfigControl( module_config_t *p_item, wxWindow *parent );
144 ~FloatConfigControl();
145 virtual float GetFloatValue();
147 wxTextCtrl *textctrl;
150 class BoolConfigControl: public ConfigControl
153 BoolConfigControl( module_config_t *p_item, wxWindow *parent );
154 ~BoolConfigControl();
155 virtual int GetIntValue();
157 wxCheckBox *checkbox;