]> git.sesse.net Git - vlc/blobdiff - modules/gui/qt4/components/infopanels.cpp
Const police
[vlc] / modules / gui / qt4 / components / infopanels.cpp
index a917fc4382f242a59b443c8be2e058c428ac05e4..5e7c2516bac63f8656178bbb1961f2018f4ea220 100644 (file)
@@ -1,7 +1,7 @@
 /*****************************************************************************
  * infopanels.cpp : Panels for the information dialogs
  ****************************************************************************
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
  * $Id$
  *
  * Authors: ClĂ©ment Stenac <zorglub@videolan.org>
@@ -131,27 +131,28 @@ InputStatsPanel::InputStatsPanel( QWidget *parent, intf_thread_t *_p_intf ) :
     CREATE_TREE_ITEM( itemName, itemText, itemValue, unit );             \
     catName->addChild( itemName ); }
 
-    CREATE_CATEGORY( input, "Input" );
-    CREATE_CATEGORY( video, "Video" );
-    CREATE_CATEGORY( streaming, "Streaming" );
-    CREATE_CATEGORY( audio, "Audio" );
+    CREATE_CATEGORY( input, qtr("Input") );
+    CREATE_CATEGORY( video, qtr("Video") );
+    CREATE_CATEGORY( streaming, qtr("Streaming") );
+    CREATE_CATEGORY( audio, qtr("Audio") );
 
-    CREATE_AND_ADD_TO_CAT( read_media_stat, "Read at media", "0", input , "kB") ;
-    CREATE_AND_ADD_TO_CAT( input_bitrate_stat, "Input bitrate", "0", input, "kb/s") ;
-    CREATE_AND_ADD_TO_CAT( demuxed_stat, "Demuxed", "0", input, "kB") ;
-    CREATE_AND_ADD_TO_CAT( stream_bitrate_stat, "Stream bitrate", "0", input, "kb/s") ;
 
-    CREATE_AND_ADD_TO_CAT( vdecoded_stat, "Decoded blocks", "0", video, "" ) ;
-    CREATE_AND_ADD_TO_CAT( vdisplayed_stat, "Displayed frames", "0", video, "") ;
-    CREATE_AND_ADD_TO_CAT( vlost_frames_stat, "Lost frames", "0", video, "") ;
+    CREATE_AND_ADD_TO_CAT( read_media_stat, qtr("Read at media"), "0", input , "kB") ;
+    CREATE_AND_ADD_TO_CAT( input_bitrate_stat, qtr("Input bitrate"), "0", input, "kb/s") ;
+    CREATE_AND_ADD_TO_CAT( demuxed_stat, qtr("Demuxed"), "0", input, "kB") ;
+    CREATE_AND_ADD_TO_CAT( stream_bitrate_stat, qtr("Stream bitrate"), "0", input, "kb/s") ;
 
-    CREATE_AND_ADD_TO_CAT( send_stat, "Sent packets", "0", streaming, "") ;
-    CREATE_AND_ADD_TO_CAT( send_bytes_stat, "Sent bytes", "0", streaming, "kB") ;
-    CREATE_AND_ADD_TO_CAT( send_bitrate_stat, "Sent bitrates", "0", streaming, "kb/s") ;
+    CREATE_AND_ADD_TO_CAT( vdecoded_stat, qtr("Decoded blocks"), "0", video, "" ) ;
+    CREATE_AND_ADD_TO_CAT( vdisplayed_stat, qtr("Displayed frames"), "0", video, "") ;
+    CREATE_AND_ADD_TO_CAT( vlost_frames_stat, qtr("Lost frames"), "0", video, "") ;
 
-    CREATE_AND_ADD_TO_CAT( adecoded_stat, "Decoded blocks", "0", audio, "") ;
-    CREATE_AND_ADD_TO_CAT( aplayed_stat, "Played buffers", "0", audio, "") ;
-    CREATE_AND_ADD_TO_CAT( alost_stat, "Lost buffers", "0", audio, "") ;
+    CREATE_AND_ADD_TO_CAT( send_stat, qtr("Sent packets"), "0", streaming, "") ;
+    CREATE_AND_ADD_TO_CAT( send_bytes_stat, qtr("Sent bytes"), "0", streaming, "kB") ;
+    CREATE_AND_ADD_TO_CAT( send_bitrate_stat, qtr("Sent bitrates"), "0", streaming, "kb/s") ;
+
+    CREATE_AND_ADD_TO_CAT( adecoded_stat, qtr("Decoded blocks"), "0", audio, "") ;
+    CREATE_AND_ADD_TO_CAT( aplayed_stat, qtr("Played buffers"), "0", audio, "") ;
+    CREATE_AND_ADD_TO_CAT( alost_stat, qtr("Lost buffers"), "0", audio, "") ;
 
     input->setExpanded( true );
     video->setExpanded( true );
@@ -210,7 +211,6 @@ void InputStatsPanel::clear()
 InfoPanel::InfoPanel( QWidget *parent, intf_thread_t *_p_intf ) :
                                       QWidget( parent ), p_intf( _p_intf )
 {
-//     resize(400, 500);
      QGridLayout *layout = new QGridLayout(this);
      InfoTree = new QTreeWidget(this);
      QList<QTreeWidgetItem *> items;
@@ -218,7 +218,6 @@ InfoPanel::InfoPanel( QWidget *parent, intf_thread_t *_p_intf ) :
      layout->addWidget(InfoTree, 0, 0 );
      InfoTree->setColumnCount( 1 );
      InfoTree->header()->hide();
-//     InfoTree->resize(400, 400);
 }
 
 InfoPanel::~InfoPanel()