1 /*****************************************************************************
2 * profile_selector.cpp : A small profile selector and editor
3 ****************************************************************************
4 * Copyright (C) 2009 the VideoLAN team
7 * Authors: Jean-Baptiste Kempf <jb@videolan.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
22 *****************************************************************************/
24 #include "components/sout/sout_widgets.hpp"
27 #include <QGridLayout>
31 SoutInputBox::SoutInputBox( QWidget *_parent ) : QGroupBox( _parent )
36 setTitle( qtr( "Source" ) );
37 QGridLayout *sourceLayout = new QGridLayout( this );
39 QLabel *sourceLabel = new QLabel( qtr( "Source:" ) );
40 sourceLayout->addWidget( sourceLabel, 0, 0 );
42 QLineEdit *sourceLine = new QLineEdit;
43 sourceLine->setReadOnly( true );
44 sourceLabel->setBuddy( sourceLine );
45 sourceLayout->addWidget( sourceLine, 0, 1 );
47 QLabel *sourceTypeLabel = new QLabel( qtr( "Type:" ) );
48 sourceLayout->addWidget( sourceTypeLabel, 1, 0 );
49 QLabel *sourceValueLabel = new QLabel;
50 sourceLayout->addWidget( sourceValueLabel, 1, 1 );
53 QFrame *line = new QFrame;
54 line->setFrameStyle( QFrame::HLine |QFrame::Sunken );
55 sourceLayout->addWidget( line, 2, 0, 1, -1 );