1 /*****************************************************************************
2 * preferences_widgets.h : WinCE gui plugin for VLC
3 *****************************************************************************
4 * Copyright (C) 2000-2003 the VideoLAN team
7 * Authors: Marodon Cedric <cedric_marodon@yahoo.fr>
8 * Gildas Bazin <gbazin@videolan.org>
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License
21 * along with this program; if not, write to the Free Software
22 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
23 *****************************************************************************/
28 ConfigControl( vlc_object_t *, module_config_t *, HWND, HINSTANCE );
29 virtual ~ConfigControl();
31 virtual int GetIntValue() {return 0;}
32 virtual float GetFloatValue() {return 0;}
33 virtual char *GetPszValue() {return GetName();}
34 // FIXME returns name corresponding to parent
35 // put the panel name corresponding to HWND into the constructor and make it private
41 void SetUpdateCallback( void (*)( void * ), void * );
44 /*wxBoxSizer *sizer;*/
48 void (*pf_update_callback)( void * );
51 void OnUpdate( UINT );
61 ConfigControl *CreateConfigControl( vlc_object_t *,
62 module_config_t *, HWND, HINSTANCE,
65 class KeyConfigControl: public ConfigControl
68 KeyConfigControl( vlc_object_t *, module_config_t *, HWND,
71 virtual int GetIntValue();
81 // Array of key descriptions, for the ComboBox
82 static string *m_keysList;
85 class ModuleConfigControl: public ConfigControl
88 ModuleConfigControl( vlc_object_t *, module_config_t *, HWND,
90 ~ModuleConfigControl();
91 virtual char *GetPszValue();
96 class StringConfigControl: public ConfigControl
99 StringConfigControl( vlc_object_t *, module_config_t *, HWND,
101 ~StringConfigControl();
102 virtual char *GetPszValue();
107 class StringListConfigControl: public ConfigControl
110 StringListConfigControl( vlc_object_t *, module_config_t *, HWND,
112 ~StringListConfigControl();
113 virtual char *GetPszValue();
117 class FileConfigControl: public ConfigControl
120 FileConfigControl( vlc_object_t *, module_config_t *, HWND,
122 ~FileConfigControl();
123 void OnBrowse( UINT );
124 virtual char *GetPszValue();
128 class IntegerConfigControl: public ConfigControl
131 IntegerConfigControl( vlc_object_t *, module_config_t *, HWND,
133 ~IntegerConfigControl();
134 virtual int GetIntValue();
138 class IntegerListConfigControl: public ConfigControl
141 IntegerListConfigControl( vlc_object_t *, module_config_t *, HWND,
143 ~IntegerListConfigControl();
144 virtual int GetIntValue();
148 class RangedIntConfigControl: public ConfigControl
151 RangedIntConfigControl( vlc_object_t *, module_config_t *, HWND,
153 ~RangedIntConfigControl();
154 virtual int GetIntValue();
158 class FloatConfigControl: public ConfigControl
161 FloatConfigControl( vlc_object_t *, module_config_t *, HWND,
163 ~FloatConfigControl();
164 virtual float GetFloatValue();
169 class BoolConfigControl: public ConfigControl
172 BoolConfigControl( vlc_object_t *, module_config_t *, HWND,
174 ~BoolConfigControl();
175 virtual int GetIntValue();