]> git.sesse.net Git - vlc/blobdiff - modules/gui/wxwidgets/extrapanel.cpp
Removes trailing spaces. Removes tabs.
[vlc] / modules / gui / wxwidgets / extrapanel.cpp
index 100239a4999aa0e1ce17b6493166674f44637838..8203e53bc32a3125992b82d2c28362dc3227d058 100644 (file)
@@ -4,7 +4,7 @@
  * Copyright (C) 2000-2004, 2003 the VideoLAN team
  * $Id$
  *
- * Authors: Clément Stenac <zorglub@videolan.org>
+ * Authors: Clément Stenac <zorglub@videolan.org>
  *
  * This program is free software; you can redistribute it and/or modify
  * it under the terms of the GNU General Public License as published by
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
 #include <vlc/vlc.h>
-#include <vlc/aout.h>
-#include <aout_internal.h>
-#include <vlc/vout.h>
-#include <vlc/intf.h>
+#include <vlc_aout.h>
+#include <vlc_vout.h>
+#include <vlc_interface.h>
 
 #include <math.h>
 
  * Local class declarations.
  *****************************************************************************/
 
-/* FIXME */
-#define SMOOTH_TIP N_( "If this setting is not zero, the bands will move " \
-                "together when you move one. The higher the value is, the " \
-                "more correlated their movement will be." )
+#define SMOOTH_TIP N_( "Controls the blending of equalizer bands. The higher" \
+            " this value is, the more correlated their movement will be." )
 
 static int IntfBandsCallback( vlc_object_t *, char const *,
                               vlc_value_t, vlc_value_t, void * );
@@ -148,12 +145,12 @@ struct filter {
 static const struct filter vfilters[] =
 {
     { "clone", N_("Image clone"), N_("Creates several clones of the image") },
-    { "distort", N_("Distortion"), N_("Adds distorsion effects") },
-    { "invert", N_("Image inversion") , N_("Inverts the image colors") },
-    { "crop", N_("Image cropping"), N_("Crops the image") },
-    { "motionblur", N_("Blurring"), N_("Creates a motion blurring on the image") },
+    { "distort", N_("Distortion"), N_("Adds distortion effects") },
+    { "invert", N_("Image inversion") , N_("Inverts the colors of the image") },
+    { "motionblur", N_("Blurring"), N_("Adds motion blurring to the image") },
     { "transform",  N_("Transformation"), N_("Rotates or flips the image") },
     { "magnify",  N_("Magnify"), N_("Magnifies part of the image") },
+    { "puzzle",  N_("Puzzle"), N_("Turns the image into a puzzle") },
     { NULL, NULL, NULL } /* Do not remove this line */
 };
 
@@ -204,7 +201,7 @@ wxPanel *ExtraPanel::VideoPanel( wxWindow *parent )
 
     /* Create static box to surround the adjust controls */
     wxStaticBox *adjust_box =
-           new wxStaticBox( panel, -1, wxU(_("Adjust Image")) );
+           new wxStaticBox( panel, -1, wxU(_("Image adjustment" )) );
     wxStaticBoxSizer *adjust_sizer =
         new wxStaticBoxSizer( adjust_box, wxVERTICAL );
     adjust_sizer->SetMinSize( -1, 50 );
@@ -311,13 +308,13 @@ wxPanel *ExtraPanel::VideoPanel( wxWindow *parent )
     {
         wxCheckBox *box = new wxCheckBox( panel, Filter0_Event + i,
                                           wxU( _( vfilters[i].psz_name ) ) );
-        t_col_sizer->Add( box, 0, wxALL, 4 );
+        t_col_sizer->Add( box, 0, wxALL, 2 );
         box->SetToolTip( wxU( _( vfilters[i].psz_help ) ) );
     }
 
     filter_sizer->Add( t_col_sizer );
     filter_sizer->Add( new wxButton( panel, FiltersInfo_Event,
-                            wxU(_("More info" ) ) ), 0, wxALL, 4 );
+                            wxU(_("More Info" ) ) ), 0, wxALL, 4 );
 #if 0
     other_sizer->Add( video_sizer, 0, wxALL | wxEXPAND , 0);
     other_sizer->Add( filter_sizer, 0, wxALL | wxEXPAND , 0);
@@ -397,13 +394,13 @@ wxPanel *ExtraPanel::AudioPanel( wxWindow *parent )
 
     wxCheckBox * headphone_check = new wxCheckBox( panel, HeadPhone_Event,
                                     wxU(_("Headphone virtualization")));
-    headphone_check->SetToolTip( wxU(_("This filter gives the feeling of a "
-             "5.1 speaker set when using a headphone." ) ) );
+    headphone_check->SetToolTip( wxU(_("Imitates the effect of "
+             "surround sound when using headphones." ) ) );
 
     wxCheckBox * normvol_check = new wxCheckBox( panel, NormVol_Event,
                                     wxU(_("Volume normalization")));
-    normvol_check->SetToolTip( wxU(_("This filter prevents the audio output "
-                         "power from going over a defined value." ) ) );
+    normvol_check->SetToolTip( wxU(_("Prevents the audio output "
+                         "level from going over a predefined value." ) ) );
 
     wxStaticText *normvol_label = new wxStaticText( panel, -1,
                                    wxU( _("Maximum level") ) );
@@ -467,14 +464,14 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
     eq_chkbox =  new wxCheckBox( panel, EqEnable_Event,
                             wxU(_("Enable") ) );
     eq_chkbox->SetToolTip( wxU(_("Enable the equalizer. You can either "
-    "manually change the bands or use a preset (Audio Menu->Equalizer)." ) ) );
+    "manually adjust the bands or use a preset (Audio Menu->Equalizer)." ) ) );
     top_sizer->Add( eq_chkbox, 0, wxALL, 2 );
 
     eq_2p_chkbox =  new wxCheckBox( panel, Eq2Pass_Event,
                             wxU(_("2 Pass") ) );
 
-    eq_2p_chkbox->SetToolTip( wxU(_("If you enable this setting, the "
-     "equalizer filter will be applied twice. The effect will be sharper.") ) );
+    eq_2p_chkbox->SetToolTip( wxU(_("Apply the equalizer twice. "
+               "The resulting effect will be sharper.") ) );
 
     top_sizer->Add( eq_2p_chkbox, 0, wxALL, 2 );
 
@@ -485,13 +482,13 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
     top_sizer->Add( eq_restoredefaults_button, 0, wxALL, 2 );
     top_sizer->Add( 0, 0, 1, wxALL, 2 );
 
-    smooth_text = new wxStaticText( panel, -1, wxU( "Smooth :" ));
-    smooth_text->SetToolTip( wxU( SMOOTH_TIP ) );
+    smooth_text = new wxStaticText( panel, -1, wxU( _("Smooth :") ));
+    smooth_text->SetToolTip( wxU( _(SMOOTH_TIP) ) );
     top_sizer->Add( smooth_text, 0, wxALL, 2 );
 
     smooth_slider =new wxSlider( panel, Smooth_Event, 0, 0, 10 ,
                     wxDefaultPosition, wxSize( 100, -1 ) );
-    smooth_slider->SetToolTip( wxU( SMOOTH_TIP ) );
+    smooth_slider->SetToolTip( wxU( _(SMOOTH_TIP) ) );
     top_sizer->Add( smooth_slider, 0, wxALL, 2 );
     i_smooth = 0;
 
@@ -516,7 +513,7 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
         eq_gridsizer->Add( band_sliders[i], 1, wxEXPAND|wxALL, 2 );
     }
 
-    preamp_text = new wxStaticText( panel, -1, wxT( "Preamp\n12.0dB" ) );
+    preamp_text = new wxStaticText( panel, -1, wxU( _("Preamp\n12.0dB") ) );
     wxFont font= preamp_text->GetFont();
     font.SetPointSize(7);
     preamp_text->SetFont( font );
@@ -553,7 +550,7 @@ wxPanel *ExtraPanel::EqzPanel( wxWindow *parent )
         psz_af = var_GetString( p_aout, "audio-filter" );
         if( var_GetBool( p_aout, "equalizer-2pass" ) )
             eq_2p_chkbox->SetValue( true );
-       vlc_object_release( p_aout );
+    vlc_object_release( p_aout );
     }
     else
     {
@@ -983,7 +980,7 @@ void ExtraPanel::OnAdjustUpdate( wxScrollEvent &event)
 /* FIXME */
 void ExtraPanel::OnRatio( wxCommandEvent& event )
 {
-   config_PutPsz( p_intf, "aspect-ratio", ratio_combo->GetValue().mb_str() );
+   config_PutPsz( p_intf, "aspect-ratio", ratio_combo->GetValue().mb_str(wxConvUTF8) );
 }
 
 
@@ -999,17 +996,15 @@ void ExtraPanel::OnSelectFilter(wxCommandEvent& event)
 
 void ExtraPanel::OnFiltersInfo(wxCommandEvent& event)
 {
-    wxMessageBox( wxU( _("Select the video effects filters to apply. "
+    wxMessageBox( wxU( _("Filtering effects to apply to the video. "
                   "You must restart the stream for these settings to "
-                  "take effect.\n"
-                  "To configure the filters, go to the Preferences, "
-                  "and go to Modules/Video Filters. "
-                  "You can then configure each filter.\n"
-                  "If you want fine control over the filters ( to choose "
-                  "the order in which they are applied ), you need to enter "
-                  "manually a filters string (Preferences / Video / Filters)."
+                  "take effect.\n\n"
+                  "To configure these filters, go to Preferences / Video / "
+                  "Filters. In order to control the order in which they "
+                  "are applied, enter a filters string in the Video Filter "
+                  "Module inside the preferences."
                   ) ),
-                    wxU( _("More information" ) ), wxOK | wxICON_INFORMATION,
+                    wxU( _("More Information" ) ), wxOK | wxICON_INFORMATION,
                     this->p_parent );
 }
 /**********************************
@@ -1215,13 +1210,11 @@ ExtraWindow::ExtraWindow( intf_thread_t *_p_intf, wxWindow *p_parent,
        wxFrame( p_parent, -1, wxU(_("Extended controls")), wxDefaultPosition,
                  wxDefaultSize, wxDEFAULT_FRAME_STYLE )
 {
-        fprintf(stderr,"Creating extrawindow\n");
     p_intf = _p_intf;
     SetIcon( *p_intf->p_sys->p_icon );
 
     wxBoxSizer *window_sizer = new wxBoxSizer( wxVERTICAL );
     SetSizer( window_sizer );
-//    panel = new ExtraPanel(  p_intf, this );//_extra_panel;
 
     panel = _extra_panel;
     window_sizer->Add( panel );