extrapanel.hpp

Go to the documentation of this file.
00001 /*****************************************************************************
00002  * extrapanel.hpp: Headers for the extra panel window
00003  *****************************************************************************
00004  * Copyright (C) 1999-2005 the VideoLAN team
00005  * $Id$
00006  *
00007  * Authors: Clément Stenac <zorglub@videolan.org>
00008  *
00009  * This program is free software; you can redistribute it and/or modify
00010  * it under the terms of the GNU General Public License as published by
00011  * the Free Software Foundation; either version 2 of the License, or
00012  * (at your option) any later version.
00013  *
00014  * This program is distributed in the hope that it will be useful,
00015  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00016  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00017  * GNU General Public License for more details.
00018  *
00019  * You should have received a copy of the GNU General Public License
00020  * along with this program; if not, write to the Free Software
00021  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
00022  *****************************************************************************/
00023 
00024 #ifndef _WXVLC_EXTRAPANEL_H_
00025 #define _WXVLC_EXTRAPANEL_H_
00026 
00027 #include "wxwidgets.hpp"
00028 #include <wx/notebook.h>
00029 
00030 namespace wxvlc
00031 {
00032     /* Extended panel */
00033     class ExtraPanel: public wxPanel
00034     {
00035     public:
00036         /* Constructor */
00037         ExtraPanel( intf_thread_t *p_intf, wxWindow *p_parent );
00038         virtual ~ExtraPanel();
00039 
00040         /// \todo Check access level for these
00041         wxStaticBox *adjust_box;
00042         wxButton *restoredefaults_button;
00043         wxSlider *brightness_slider;
00044         wxSlider *contrast_slider;
00045         wxSlider *saturation_slider;
00046         wxSlider *hue_slider;
00047         wxSlider *gamma_slider;
00048 
00049         wxStaticBox *other_box;
00050         wxComboBox *ratio_combo;
00051 
00052         char *psz_bands;
00053         float f_preamp;
00054         bool b_update;
00055     private:
00056         /* General layout */
00057         wxPanel *VideoPanel( wxWindow * );
00058         wxPanel *EqzPanel( wxWindow * );
00059         wxPanel *AudioPanel( wxWindow * );
00060         wxNotebook *notebook;
00061  
00062         /* Equalizer */
00063         wxCheckBox *eq_chkbox;
00064         wxCheckBox *eq_2p_chkbox;
00065         wxButton *eq_restoredefaults_button;
00066         wxSlider *smooth_slider;
00067         wxStaticText *smooth_text;
00068         wxSlider *preamp_slider;
00069         wxStaticText * preamp_text;
00070         int i_smooth;
00071         wxSlider *band_sliders[10];
00072         wxStaticText *band_texts[10];
00073         int i_values[10];
00074  
00075         void OnEnableEqualizer( wxCommandEvent& );
00076         void OnRestoreDefaults( wxCommandEvent& );
00077         void OnChangeEqualizer( wxScrollEvent& );
00078         void OnEqSmooth( wxScrollEvent& );
00079         void OnPreamp( wxScrollEvent& );
00080         void OnEq2Pass( wxCommandEvent& );
00081         void OnEqRestore( wxCommandEvent& );
00082 
00083         /* Video */
00084         void OnEnableAdjust( wxCommandEvent& );
00085         void OnAdjustUpdate( wxScrollEvent& );
00086         void OnRatio( wxCommandEvent& );
00087         void OnFiltersInfo( wxCommandEvent& );
00088         void OnSelectFilter( wxCommandEvent& );
00089 
00090         /* Audio */
00091         void OnHeadphone( wxCommandEvent& );
00092         void OnNormvol( wxCommandEvent& );
00093         void OnNormvolSlider( wxScrollEvent& );
00094 
00095         void CheckAout();
00096         void OnIdle( wxIdleEvent& );
00097 
00098         DECLARE_EVENT_TABLE();
00099 
00100         intf_thread_t *p_intf;
00101         bool b_my_update;
00102         wxWindow *p_parent;
00103     };
00104 };
00105 #if 0
00106 /* Extended Window  */
00107 class ExtraWindow: public wxFrame
00108 {
00109 public:
00110     /* Constructor */
00111     ExtraWindow( intf_thread_t *p_intf, wxWindow *p_parent, wxPanel *panel );
00112     virtual ~ExtraWindow();
00113 
00114 private:
00115 
00116     wxPanel *panel;
00117 
00118     DECLARE_EVENT_TABLE();
00119 
00120     intf_thread_t *p_intf;
00121 };
00122 #endif
00123 
00124 #endif

Generated on Wed Aug 13 08:02:38 2008 for VLC by  doxygen 1.5.1