Logo Search packages:      
Sourcecode: kaffeine version File versions

audioeditorui.cpp

#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './audioeditorui.ui'
**
** Created: So Mär 20 13:46:37 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 "audioeditorui.h"

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

/*
 *  Constructs a AudioEditorUI 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.
 */
AudioEditorUI::AudioEditorUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
      setName( "AudioEditorUI" );
    AudioEditorUILayout = new QGridLayout( this, 1, 1, 11, 6, "AudioEditorUILayout"); 

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

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

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

    pidList = new QListBox( groupBox10, "pidList" );

    groupBox10Layout->addWidget( pidList, 0, 0 );
    layout23->addWidget( groupBox10 );

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

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

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

    upBtn = new QPushButton( this, "upBtn" );
    layout15->addWidget( upBtn );

    downBtn = new QPushButton( this, "downBtn" );
    layout15->addWidget( downBtn );

    delBtn = new QPushButton( this, "delBtn" );
    layout15->addWidget( delBtn );
    layout16->addLayout( layout15 );
    spacer8 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout16->addItem( spacer8 );
    layout21->addLayout( layout16 );
    spacer10 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout21->addItem( spacer10 );

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

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

    updateBtn = new QPushButton( this, "updateBtn" );
    layout13->addWidget( updateBtn );

    newBtn = new QPushButton( this, "newBtn" );
    layout13->addWidget( newBtn );
    layout14->addLayout( layout13 );

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

    pidSpin = new QSpinBox( groupBox9, "pidSpin" );
    pidSpin->setMaxValue( 8191 );

    groupBox9Layout->addWidget( pidSpin, 0, 1 );

    textLabel3 = new QLabel( groupBox9, "textLabel3" );

    groupBox9Layout->addWidget( textLabel3, 0, 0 );

    textLabel4 = new QLabel( groupBox9, "textLabel4" );

    groupBox9Layout->addWidget( textLabel4, 1, 0 );

    ac3Cb = new QCheckBox( groupBox9, "ac3Cb" );

    groupBox9Layout->addWidget( ac3Cb, 2, 0 );

    langLe = new QLineEdit( groupBox9, "langLe" );
    langLe->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)2, (QSizePolicy::SizeType)0, 0, 0, langLe->sizePolicy().hasHeightForWidth() ) );

    groupBox9Layout->addWidget( langLe, 1, 1 );
    layout14->addWidget( groupBox9 );
    layout21->addLayout( layout14 );
    layout23->addLayout( layout21 );
    layout24->addLayout( layout23 );

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

    layout19 = new QHBoxLayout( 0, 0, 6, "layout19"); 
    spacer9 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout19->addItem( spacer9 );

    okBtn = new QPushButton( this, "okBtn" );
    layout19->addWidget( okBtn );
    layout24->addLayout( layout19 );

    AudioEditorUILayout->addLayout( layout24, 0, 0 );
    languageChange();
    resize( QSize(404, 284).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

    // tab order
    setTabOrder( okBtn, pidList );
    setTabOrder( pidList, upBtn );
    setTabOrder( upBtn, downBtn );
    setTabOrder( downBtn, delBtn );
    setTabOrder( delBtn, updateBtn );
    setTabOrder( updateBtn, newBtn );
    setTabOrder( newBtn, pidSpin );
    setTabOrder( pidSpin, langLe );
    setTabOrder( langLe, ac3Cb );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void AudioEditorUI::languageChange()
{
    setCaption( tr2i18n( "Audio pids editor" ) );
    groupBox10->setTitle( tr2i18n( "Audio pids :" ) );
    pidList->clear();
    pidList->insertItem( tr2i18n( "New Item" ) );
    upBtn->setText( tr2i18n( "Move up" ) );
    downBtn->setText( tr2i18n( "Move down" ) );
    delBtn->setText( tr2i18n( "Remove" ) );
    updateBtn->setText( tr2i18n( "<< Update selected" ) );
    newBtn->setText( tr2i18n( "<< New" ) );
    groupBox9->setTitle( tr2i18n( "Properties :" ) );
    textLabel3->setText( tr2i18n( "Pid :" ) );
    textLabel4->setText( tr2i18n( "Lang :" ) );
    ac3Cb->setText( tr2i18n( "AC3" ) );
    okBtn->setText( tr2i18n( "Close" ) );
}

#include "audioeditorui.moc"

Generated by  Doxygen 1.6.0   Back to index