1 /*****************************************************************************
2 * extrapanel.hpp: Headers for the extra panel window
3 *****************************************************************************
4 * Copyright (C) 1999-2005 the VideoLAN team
7 * Authors: Clément Stenac <zorglub@videolan.org>
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., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #ifndef _WXVLC_EXTRAPANEL_H_
25 #define _WXVLC_EXTRAPANEL_H_
27 #include "wxwidgets.hpp"
28 #include <wx/notebook.h>
33 class ExtraPanel: public wxPanel
37 ExtraPanel( intf_thread_t *p_intf, wxWindow *p_parent );
38 virtual ~ExtraPanel();
40 /// \todo Check access level for these
41 wxStaticBox *adjust_box;
42 wxButton *restoredefaults_button;
43 wxSlider *brightness_slider;
44 wxSlider *contrast_slider;
45 wxSlider *saturation_slider;
47 wxSlider *gamma_slider;
49 wxStaticBox *other_box;
50 wxComboBox *ratio_combo;
57 wxPanel *VideoPanel( wxWindow * );
58 wxPanel *EqzPanel( wxWindow * );
59 wxPanel *AudioPanel( wxWindow * );
63 wxCheckBox *eq_chkbox;
64 wxCheckBox *eq_2p_chkbox;
65 wxButton *eq_restoredefaults_button;
66 wxSlider *smooth_slider;
67 wxStaticText *smooth_text;
68 wxSlider *preamp_slider;
69 wxStaticText * preamp_text;
71 wxSlider *band_sliders[10];
72 wxStaticText *band_texts[10];
75 void OnEnableEqualizer( wxCommandEvent& );
76 void OnRestoreDefaults( wxCommandEvent& );
77 void OnChangeEqualizer( wxScrollEvent& );
78 void OnEqSmooth( wxScrollEvent& );
79 void OnPreamp( wxScrollEvent& );
80 void OnEq2Pass( wxCommandEvent& );
81 void OnEqRestore( wxCommandEvent& );
84 void OnEnableAdjust( wxCommandEvent& );
85 void OnAdjustUpdate( wxScrollEvent& );
86 void OnRatio( wxCommandEvent& );
87 void OnFiltersInfo( wxCommandEvent& );
88 void OnSelectFilter( wxCommandEvent& );
91 void OnHeadphone( wxCommandEvent& );
92 void OnNormvol( wxCommandEvent& );
93 void OnNormvolSlider( wxScrollEvent& );
96 void OnIdle( wxIdleEvent& );
98 DECLARE_EVENT_TABLE();
100 intf_thread_t *p_intf;
101 vlc_bool_t b_my_update;
106 /* Extended Window */
107 class ExtraWindow: public wxFrame
111 ExtraWindow( intf_thread_t *p_intf, wxWindow *p_parent, wxPanel *panel );
112 virtual ~ExtraWindow();
118 DECLARE_EVENT_TABLE();
120 intf_thread_t *p_intf;