Logo Search packages:      
Sourcecode: kaffeine version File versions

channeleditorui.cpp

#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './channeleditorui.ui'
**
** Created: So Mär 20 13:46:50 2005
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.1   edited Nov 24 13:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "channeleditorui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qframe.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlineedit.h>
#include <qspinbox.h>
#include <qgroupbox.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a ChannelEditorUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
ChannelEditorUI::ChannelEditorUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "ChannelEditorUI" );
    ChannelEditorUILayout = new QGridLayout( this, 1, 1, 11, 6, "ChannelEditorUILayout"); 

    line2 = new QFrame( this, "line2" );
    line2->setFrameShape( QFrame::HLine );
    line2->setFrameShadow( QFrame::Sunken );
    line2->setFrameShape( QFrame::HLine );

    ChannelEditorUILayout->addMultiCellWidget( line2, 1, 1, 0, 1 );

    layout9 = new QVBoxLayout( 0, 0, 6, "layout9"); 

    layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 

    textLabel1_4 = new QLabel( this, "textLabel1_4" );
    layout8->addWidget( textLabel1_4 );

    sourceComb = new QComboBox( FALSE, this, "sourceComb" );
    layout8->addWidget( sourceComb );
    spacer3 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout8->addItem( spacer3 );
    layout9->addLayout( layout8 );

    layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 

    textLabel1 = new QLabel( this, "textLabel1" );
    textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( textLabel1 );

    nameLe = new QLineEdit( this, "nameLe" );
    nameLe->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, nameLe->sizePolicy().hasHeightForWidth() ) );
    layout5->addWidget( nameLe );

    textLabel2_2 = new QLabel( this, "textLabel2_2" );
    layout5->addWidget( textLabel2_2 );

    numSpin = new QSpinBox( this, "numSpin" );
    numSpin->setMaxValue( 99999 );
    layout5->addWidget( numSpin );
    layout9->addLayout( layout5 );

    layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 

    freqGroup = new QGroupBox( this, "freqGroup" );
    freqGroup->setColumnLayout(0, Qt::Vertical );
    freqGroup->layout()->setSpacing( 6 );
    freqGroup->layout()->setMargin( 11 );
    freqGroupLayout = new QGridLayout( freqGroup->layout() );
    freqGroupLayout->setAlignment( Qt::AlignTop );

    polGroup = new QButtonGroup( freqGroup, "polGroup" );
    polGroup->setColumnLayout(0, Qt::Vertical );
    polGroup->layout()->setSpacing( 6 );
    polGroup->layout()->setMargin( 11 );
    polGroupLayout = new QGridLayout( polGroup->layout() );
    polGroupLayout->setAlignment( Qt::AlignTop );

    verticalRadio = new QRadioButton( polGroup, "verticalRadio" );

    polGroupLayout->addWidget( verticalRadio, 0, 0 );

    horizontalRadio = new QRadioButton( polGroup, "horizontalRadio" );

    polGroupLayout->addWidget( horizontalRadio, 0, 1 );

    freqGroupLayout->addMultiCellWidget( polGroup, 2, 2, 0, 1 );

    textLabel2 = new QLabel( freqGroup, "textLabel2" );
    textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );

    freqGroupLayout->addWidget( textLabel2, 0, 0 );

    textLabel3 = new QLabel( freqGroup, "textLabel3" );
    textLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel3->sizePolicy().hasHeightForWidth() ) );

    freqGroupLayout->addWidget( textLabel3, 1, 0 );

    srSpin = new QSpinBox( freqGroup, "srSpin" );
    srSpin->setMaxValue( 99999 );

    freqGroupLayout->addWidget( srSpin, 1, 1 );

    freqSpin = new QSpinBox( freqGroup, "freqSpin" );
    freqSpin->setMaxValue( 999999 );
    freqSpin->setMinValue( 0 );
    freqSpin->setValue( 0 );

    freqGroupLayout->addWidget( freqSpin, 0, 1 );

    ftaCb = new QCheckBox( freqGroup, "ftaCb" );

    freqGroupLayout->addMultiCellWidget( ftaCb, 3, 3, 0, 1 );
    layout6->addWidget( freqGroup );

    pidsGroup = new QGroupBox( this, "pidsGroup" );
    pidsGroup->setColumnLayout(0, Qt::Vertical );
    pidsGroup->layout()->setSpacing( 6 );
    pidsGroup->layout()->setMargin( 11 );
    pidsGroupLayout = new QGridLayout( pidsGroup->layout() );
    pidsGroupLayout->setAlignment( Qt::AlignTop );

    vpidSpin = new QSpinBox( pidsGroup, "vpidSpin" );
    vpidSpin->setMaxValue( 8191 );
    vpidSpin->setMinValue( 0 );
    vpidSpin->setValue( 0 );

    pidsGroupLayout->addWidget( vpidSpin, 2, 1 );

    sidSpin = new QSpinBox( pidsGroup, "sidSpin" );
    sidSpin->setMaxValue( 65535 );

    pidsGroupLayout->addWidget( sidSpin, 1, 1 );

    ttpidSpin = new QSpinBox( pidsGroup, "ttpidSpin" );
    ttpidSpin->setMaxValue( 8191 );
    ttpidSpin->setMinValue( 0 );
    ttpidSpin->setValue( 0 );

    pidsGroupLayout->addWidget( ttpidSpin, 3, 1 );

    apidBtn = new QPushButton( pidsGroup, "apidBtn" );
    apidBtn->setFocusPolicy( QPushButton::TabFocus );

    pidsGroupLayout->addMultiCellWidget( apidBtn, 5, 5, 0, 1 );

    subpidSpin = new QSpinBox( pidsGroup, "subpidSpin" );
    subpidSpin->setMaxValue( 8191 );

    pidsGroupLayout->addWidget( subpidSpin, 4, 1 );

    textLabel1_3 = new QLabel( pidsGroup, "textLabel1_3" );

    pidsGroupLayout->addWidget( textLabel1_3, 4, 0 );

    textLabel15 = new QLabel( pidsGroup, "textLabel15" );
    textLabel15->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel15->sizePolicy().hasHeightForWidth() ) );

    pidsGroupLayout->addWidget( textLabel15, 3, 0 );

    textLabel13 = new QLabel( pidsGroup, "textLabel13" );
    textLabel13->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel13->sizePolicy().hasHeightForWidth() ) );

    pidsGroupLayout->addWidget( textLabel13, 2, 0 );

    textLabel12 = new QLabel( pidsGroup, "textLabel12" );
    textLabel12->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel12->sizePolicy().hasHeightForWidth() ) );

    pidsGroupLayout->addWidget( textLabel12, 1, 0 );

    textLabel1_2 = new QLabel( pidsGroup, "textLabel1_2" );
    textLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );

    pidsGroupLayout->addWidget( textLabel1_2, 0, 0 );

    tsidSpin = new QSpinBox( pidsGroup, "tsidSpin" );
    tsidSpin->setMaxValue( 65535 );

    pidsGroupLayout->addWidget( tsidSpin, 0, 1 );
    layout6->addWidget( pidsGroup );
    layout9->addLayout( layout6 );

    extendedGroup = new QGroupBox( this, "extendedGroup" );
    extendedGroup->setColumnLayout(0, Qt::Vertical );
    extendedGroup->layout()->setSpacing( 6 );
    extendedGroup->layout()->setMargin( 11 );
    extendedGroupLayout = new QGridLayout( extendedGroup->layout() );
    extendedGroupLayout->setAlignment( Qt::AlignTop );

    transmissionComb = new QComboBox( FALSE, extendedGroup, "transmissionComb" );

    extendedGroupLayout->addWidget( transmissionComb, 0, 1 );

    textLabel11 = new QLabel( extendedGroup, "textLabel11" );
    textLabel11->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel11->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel11, 3, 0 );

    textLabel10 = new QLabel( extendedGroup, "textLabel10" );
    textLabel10->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel10->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel10, 2, 0 );

    textLabel8 = new QLabel( extendedGroup, "textLabel8" );
    textLabel8->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel8->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel8, 0, 0 );

    bandwidthComb = new QComboBox( FALSE, extendedGroup, "bandwidthComb" );

    extendedGroupLayout->addWidget( bandwidthComb, 3, 1 );

    coderateHComb = new QComboBox( FALSE, extendedGroup, "coderateHComb" );

    extendedGroupLayout->addWidget( coderateHComb, 2, 1 );

    coderateLComb = new QComboBox( FALSE, extendedGroup, "coderateLComb" );

    extendedGroupLayout->addWidget( coderateLComb, 1, 1 );

    textLabel9 = new QLabel( extendedGroup, "textLabel9" );
    textLabel9->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel9->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel9, 1, 0 );

    guardComb = new QComboBox( FALSE, extendedGroup, "guardComb" );

    extendedGroupLayout->addWidget( guardComb, 3, 3 );

    textLabel7 = new QLabel( extendedGroup, "textLabel7" );
    textLabel7->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel7->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel7, 3, 2 );

    hierarchyComb = new QComboBox( FALSE, extendedGroup, "hierarchyComb" );

    extendedGroupLayout->addWidget( hierarchyComb, 2, 3 );

    textLabel6 = new QLabel( extendedGroup, "textLabel6" );
    textLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel6->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel6, 2, 2 );

    textLabel5 = new QLabel( extendedGroup, "textLabel5" );
    textLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel5->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel5, 1, 2 );

    modulationComb = new QComboBox( FALSE, extendedGroup, "modulationComb" );

    extendedGroupLayout->addWidget( modulationComb, 1, 3 );

    inversionComb = new QComboBox( FALSE, extendedGroup, "inversionComb" );

    extendedGroupLayout->addWidget( inversionComb, 0, 3 );

    textLabel4 = new QLabel( extendedGroup, "textLabel4" );
    textLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)5, 0, 0, textLabel4->sizePolicy().hasHeightForWidth() ) );

    extendedGroupLayout->addWidget( textLabel4, 0, 2 );
    layout9->addWidget( extendedGroup );
    spacer6 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout9->addItem( spacer6 );

    layout14 = new QHBoxLayout( 0, 0, 6, "layout14"); 

    cancelBtn = new QPushButton( this, "cancelBtn" );
    layout14->addWidget( cancelBtn );
    spacer4 = new QSpacerItem( 150, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout14->addItem( spacer4 );

    okBtn = new QPushButton( this, "okBtn" );
    layout14->addWidget( okBtn );
    layout9->addLayout( layout14 );

    ChannelEditorUILayout->addLayout( layout9, 0, 0 );
    languageChange();
    resize( QSize(458, 494).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( okBtn, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( cancelBtn, SIGNAL( clicked() ), this, SLOT( reject() ) );

    // tab order
    setTabOrder( nameLe, numSpin );
    setTabOrder( numSpin, freqSpin );
    setTabOrder( freqSpin, srSpin );
    setTabOrder( srSpin, verticalRadio );
    setTabOrder( verticalRadio, horizontalRadio );
    setTabOrder( horizontalRadio, ftaCb );
    setTabOrder( ftaCb, tsidSpin );
    setTabOrder( tsidSpin, sidSpin );
    setTabOrder( sidSpin, vpidSpin );
    setTabOrder( vpidSpin, ttpidSpin );
    setTabOrder( ttpidSpin, subpidSpin );
    setTabOrder( subpidSpin, apidBtn );
    setTabOrder( apidBtn, transmissionComb );
    setTabOrder( transmissionComb, coderateLComb );
    setTabOrder( coderateLComb, coderateHComb );
    setTabOrder( coderateHComb, bandwidthComb );
    setTabOrder( bandwidthComb, inversionComb );
    setTabOrder( inversionComb, modulationComb );
    setTabOrder( modulationComb, hierarchyComb );
    setTabOrder( hierarchyComb, guardComb );
    setTabOrder( guardComb, cancelBtn );
    setTabOrder( cancelBtn, okBtn );
    setTabOrder( okBtn, sourceComb );
}

/*
 *  Destroys the object and frees any allocated resources
 */
ChannelEditorUI::~ChannelEditorUI()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ChannelEditorUI::languageChange()
{
    setCaption( tr2i18n( "Channel editor" ) );
    textLabel1_4->setText( tr2i18n( "Source :" ) );
    textLabel1->setText( tr2i18n( "Name :" ) );
    textLabel2_2->setText( tr2i18n( "Nr :" ) );
    freqGroup->setTitle( QString::null );
    polGroup->setTitle( tr2i18n( "Polarity" ) );
    verticalRadio->setText( tr2i18n( "Vertical" ) );
    horizontalRadio->setText( tr2i18n( "Horizontal" ) );
    textLabel2->setText( tr2i18n( "Frequency :" ) );
    textLabel3->setText( tr2i18n( "Symbol rate :" ) );
    ftaCb->setText( tr2i18n( "Scrambled" ) );
    pidsGroup->setTitle( QString::null );
    apidBtn->setText( tr2i18n( "Audio pids ..." ) );
    textLabel1_3->setText( tr2i18n( "Subtitle pid :" ) );
    textLabel15->setText( tr2i18n( "Teletext pid :" ) );
    textLabel13->setText( tr2i18n( "Video pid :" ) );
    textLabel12->setText( tr2i18n( "Service id :" ) );
    textLabel1_2->setText( tr2i18n( "Transport stream id :" ) );
    extendedGroup->setTitle( QString::null );
    textLabel11->setText( tr2i18n( "Bandwidth :" ) );
    textLabel10->setText( tr2i18n( "FEC High" ) );
    textLabel8->setText( tr2i18n( "Transmission :" ) );
    textLabel9->setText( tr2i18n( "FEC Low" ) );
    textLabel7->setText( tr2i18n( "Guard interval :" ) );
    textLabel6->setText( tr2i18n( "Hierarchy :" ) );
    textLabel5->setText( tr2i18n( "Modulation :" ) );
    textLabel4->setText( tr2i18n( "Inversion :" ) );
    cancelBtn->setText( tr2i18n( "Cancel" ) );
    okBtn->setText( tr2i18n( "OK" ) );
}

#include "channeleditorui.moc"

Generated by  Doxygen 1.6.0   Back to index