/*****************************************************************************
* profile_selector.cpp : A small profile selector and editor
****************************************************************************
- * Copyright (C) 2009 the VideoLAN team
+ * Copyright (C) 2007-2009 the VideoLAN team
+ * Copyright (C) 2007 Société des arts technologiques
+ * Copyright (C) 2007 Savoir-faire Linux
* $Id$
*
* Authors: Jean-Baptiste Kempf <jb@videolan.org>
+ * Pierre-Luc Beaudoin <pierre-luc.beaudoin@savoirfairelinux.com>
*
* 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
#include <QLineEdit>
#include <QFileDialog>
-SoutInputBox::SoutInputBox( QWidget *_parent, QString mrl ) : QGroupBox( _parent )
+SoutInputBox::SoutInputBox( QWidget *_parent, const QString& mrl ) : QGroupBox( _parent )
{
/**
* Source Block
sourceLayout->addWidget( line, 2, 0, 1, -1 );
}
-void SoutInputBox::setMRL( QString mrl )
+void SoutInputBox::setMRL( const QString& mrl )
{
sourceLine->setText( mrl );
QString type;
sourceValueLabel->setText( type );
}
- #define CT( x ) connect( x, SIGNAL( textChanged( const QString ) ), this, SIGNAL( mrlUpdated() ) );
+ #define CT( x ) connect( x, SIGNAL( textChanged( const QString& ) ), this, SIGNAL( mrlUpdated() ) );
#define CS( x ) connect( x, SIGNAL( valueChanged( int ) ), this, SIGNAL( mrlUpdated() ) );
/* FileDest Box */
QGridLayout *layout = new QGridLayout( this );
QLabel *fileOutput = new QLabel(
- qtr( "This modules outputs to a file on your disk."), this );
+ qtr( "This module writes the transcoded stream to a file."), this );
layout->addWidget(fileOutput, 0, 0, 1, -1);
QLabel *fileLabel = new QLabel( qtr( "Filename"), this );
BUTTONACT( fileSelectButton, fileBrowse() );
}
-QString FileDestBox::getMRL( QString mux )
+QString FileDestBox::getMRL( const QString& mux )
{
if( fileEdit->text().isEmpty() ) return "";
QGridLayout *layout = new QGridLayout( this );
QLabel *httpOutput = new QLabel(
- qtr( "This modules streams on the networks with the HTTP protocol."), this );
+ qtr( "This module outputs the transcoded stream to a network via HTTP."),
+ this );
layout->addWidget(httpOutput, 0, 0, 1, -1);
QLabel *HTTPLabel = new QLabel( qtr("Address"), this );
CT( HTTPEdit );
}
-QString HTTPDestBox::getMRL( QString mux )
+QString HTTPDestBox::getMRL( const QString& mux )
{
if( HTTPEdit->text().isEmpty() ) return "";
QGridLayout *layout = new QGridLayout( this );
QLabel *mmshOutput = new QLabel(
- qtr( "This modules streams on the networks with the mms: protocol."), this );
+ qtr( "This module outputs the transcoded stream to a network "
+ " via the mms protocol." ), this );
layout->addWidget(mmshOutput, 0, 0, 1, -1);
QLabel *MMSHLabel = new QLabel( qtr("Address"), this );
CT( MMSHEdit );
}
-QString MMSHDestBox::getMRL( QString mux )
+QString MMSHDestBox::getMRL( const QString& mux )
{
if( MMSHEdit->text().isEmpty() ) return "";
QGridLayout *layout = new QGridLayout( this );
QLabel *udpOutput = new QLabel(
- qtr( "This modules streams on the networks with the UDP protocol."), this );
+ qtr( "This module outputs the transcoded stream to a network via UDP."),
+ this );
layout->addWidget(udpOutput, 0, 0, 1, -1);
QLabel *UDPLabel = new QLabel( qtr("Address"), this );
CT( UDPEdit );
}
-QString UDPDestBox::getMRL( QString mux )
+QString UDPDestBox::getMRL( const QString& mux )
{
if( UDPEdit->text().isEmpty() ) return "";
QGridLayout *layout = new QGridLayout( this );
QLabel *rtpOutput = new QLabel(
- qtr( "This modules streams on the networks with the RTP protocol."), this );
+ qtr( "This module outputs the transcoded stream to a network via RTP."),
+ this );
layout->addWidget(rtpOutput, 0, 0, 1, -1);
QLabel *RTPLabel = new QLabel( qtr("Address"), this );
CT( RTPEdit );
}
-QString RTPDestBox::getMRL( QString mux )
+QString RTPDestBox::getMRL( const QString& mux )
{
if( RTPEdit->text().isEmpty() ) return "";
QGridLayout *layout = new QGridLayout( this );
QLabel *iceOutput = new QLabel(
- qtr( "This modules streams using IceCast."), this );
+ qtr( "This module outputs the transcoded stream to an Icecast server."),
+ this );
layout->addWidget(iceOutput, 0, 0, 1, -1);
QLabel *ICELabel = new QLabel( qtr("Address"), this );
CT( ICEPassEdit );
}
-QString ICEDestBox::getMRL( QString mux )
+QString ICEDestBox::getMRL( const QString& mux )
{
if( ICEEdit->text().isEmpty() ) return "";