~siretart/vlc/ubuntu

« back to all changes in this revision

Viewing changes to modules/gui/qt4/dialogs/vlm.cpp

  • Committer: Reinhard Tartler
  • Date: 2008-09-26 06:45:40 UTC
  • mto: (21.2.1 vlc-0.9.3)
  • mto: This revision was merged to the branch mainline in revision 23.
  • Revision ID: siretart@tauware.de-20080926064540-0sd8zwmig33ksmy4
Tags: upstream-ubuntu-0.9.3
Import upstream version 0.9.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * vlm.cpp : VLM Management
3
3
 ****************************************************************************
4
4
 * Copyright © 2008 the VideoLAN team
5
 
 * $Id$
 
5
 * $Id: c000471fa4567133efcb640dbac752cebdbcd738 $
6
6
 *
7
7
 * Authors: Jean-Baptiste Kempf <jb@videolan.org>
8
8
 *          Jean-François Massol <jf.massol -at- gmail.com>
53
53
#include <QScrollArea>
54
54
#include <QFileDialog>
55
55
 
56
 
static const char *psz_type[] = { "Broadcast", "Schedule", "VOD" };
57
56
 
58
57
VLMDialog *VLMDialog::instance = NULL;
59
58
 
73
72
    ui.saveButton->hide();
74
73
 
75
74
#define ADDMEDIATYPES( str, type ) ui.mediaType->addItem( qtr( str ), QVariant( type ) );
76
 
    ADDMEDIATYPES( "Broadcast", QVLM_Broadcast );
77
 
    ADDMEDIATYPES( "Schedule", QVLM_Schedule );
78
 
    ADDMEDIATYPES( "Video On Demand ( VOD )", QVLM_VOD );
 
75
    ADDMEDIATYPES( N_("Broadcast"), QVLM_Broadcast );
 
76
    ADDMEDIATYPES( N_("Schedule"), QVLM_Schedule );
 
77
    ADDMEDIATYPES( N_("Video On Demand ( VOD )"), QVLM_VOD );
79
78
#undef ADDMEDIATYPES
80
79
 
81
80
    /* Schedule Stuffs */
526
525
                          : VLMAWidget( _name, _input, _output,
527
526
                                        _enabled, _parent, QVLM_Broadcast )
528
527
{
529
 
    nameLabel->setText( "Broadcast: " + name );
 
528
    nameLabel->setText( qtr("Broadcast: ") + name );
530
529
    type = QVLM_Broadcast;
531
530
    b_looped = _looped;
532
531
 
594
593
                          bool enabled, VLMDialog *parent )
595
594
            : VLMAWidget( name, input, output, enabled, parent, QVLM_Schedule )
596
595
{
597
 
    nameLabel->setText( "Schedule: " + name );
 
596
    nameLabel->setText( qtr("Schedule: ") + name );
598
597
    schetime = _schetime;
599
598
    schedate = _schedate;
600
599
    rNumber = _scherepeatnumber;
616
615
                bool enabled, QString _mux, VLMDialog *parent)
617
616
       : VLMAWidget( name, input, output, enabled, parent, QVLM_VOD )
618
617
{
619
 
    nameLabel->setText( "VOD:" + name );
 
618
    nameLabel->setText( qtr("VOD: ") + name );
620
619
 
621
620
    mux = _mux;
622
621
    muxLabel = new QLabel;