Logo Search packages:      
Sourcecode: kaffeine version File versions

scandialogui.cpp

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

#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qheader.h>
#include <qlistview.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qlistbox.h>
#include <qframe.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

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

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

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

    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 );

    textLabel1 = new QLabel( groupBox10, "textLabel1" );

    groupBox10Layout->addMultiCellWidget( textLabel1, 0, 0, 0, 2 );

    channelsList = new QListView( groupBox10, "channelsList" );
    channelsList->addColumn( tr2i18n( "Name" ) );
    channelsList->setRootIsDecorated( TRUE );

    groupBox10Layout->addMultiCellWidget( channelsList, 1, 1, 0, 2 );

    newBtn = new QPushButton( groupBox10, "newBtn" );

    groupBox10Layout->addWidget( newBtn, 2, 0 );

    delBtn = new QPushButton( groupBox10, "delBtn" );

    groupBox10Layout->addWidget( delBtn, 2, 2 );
    spacer7 = new QSpacerItem( 40, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    groupBox10Layout->addItem( spacer7, 2, 1 );
    layout11->addWidget( groupBox10 );

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

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

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

    searchComb = new QComboBox( FALSE, searchGroup, "searchComb" );

    searchGroupLayout->addMultiCellWidget( searchComb, 0, 0, 0, 2 );
    layout39->addWidget( searchGroup );

    startBtn = new QPushButton( this, "startBtn" );
    startBtn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, startBtn->sizePolicy().hasHeightForWidth() ) );
    startBtn->setToggleButton( TRUE );
    layout39->addWidget( startBtn );
    layout46->addLayout( layout39 );
    spacer15 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout46->addItem( spacer15 );

    statusFrame = new QGroupBox( this, "statusFrame" );
    layout46->addWidget( statusFrame );
    spacer11 = new QSpacerItem( 21, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    layout46->addItem( spacer11 );

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

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

    ftaCb = new QCheckBox( filtersGroup, "ftaCb" );
    ftaCb->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, ftaCb->sizePolicy().hasHeightForWidth() ) );

    filtersGroupLayout->addMultiCellWidget( ftaCb, 0, 0, 0, 1 );

    radioCb = new QCheckBox( filtersGroup, "radioCb" );
    radioCb->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, radioCb->sizePolicy().hasHeightForWidth() ) );

    filtersGroupLayout->addMultiCellWidget( radioCb, 2, 2, 0, 1 );

    tvCb = new QCheckBox( filtersGroup, "tvCb" );
    tvCb->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, tvCb->sizePolicy().hasHeightForWidth() ) );

    filtersGroupLayout->addMultiCellWidget( tvCb, 1, 1, 0, 1 );

    providerCb = new QCheckBox( filtersGroup, "providerCb" );
    providerCb->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, providerCb->sizePolicy().hasHeightForWidth() ) );

    filtersGroupLayout->addWidget( providerCb, 3, 0 );

    providerComb = new QComboBox( FALSE, filtersGroup, "providerComb" );
    providerComb->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, providerComb->sizePolicy().hasHeightForWidth() ) );

    filtersGroupLayout->addWidget( providerComb, 3, 1 );
    layout38->addWidget( filtersGroup );

    addselectedBtn = new QPushButton( this, "addselectedBtn" );
    addselectedBtn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, addselectedBtn->sizePolicy().hasHeightForWidth() ) );
    layout38->addWidget( addselectedBtn );

    addfilteredBtn = new QPushButton( this, "addfilteredBtn" );
    addfilteredBtn->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, addfilteredBtn->sizePolicy().hasHeightForWidth() ) );
    layout38->addWidget( addfilteredBtn );
    layout46->addLayout( layout38 );
    layout11->addLayout( layout46 );

    groupBox11 = new QGroupBox( this, "groupBox11" );
    groupBox11->setColumnLayout(0, Qt::Vertical );
    groupBox11->layout()->setSpacing( 6 );
    groupBox11->layout()->setMargin( 11 );
    groupBox11Layout = new QVBoxLayout( groupBox11->layout() );
    groupBox11Layout->setAlignment( Qt::AlignTop );

    foundList = new QListBox( groupBox11, "foundList" );
    groupBox11Layout->addWidget( foundList );
    layout11->addWidget( groupBox11 );
    layout12->addLayout( layout11 );

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

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

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

    ScanDialogUILayout->addLayout( layout12, 0, 0 );
    languageChange();
    resize( QSize(686, 524).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

    // tab order
    setTabOrder( okBtn, foundList );
    setTabOrder( foundList, searchComb );
    setTabOrder( searchComb, startBtn );
    setTabOrder( startBtn, ftaCb );
    setTabOrder( ftaCb, tvCb );
    setTabOrder( tvCb, radioCb );
    setTabOrder( radioCb, providerCb );
    setTabOrder( providerCb, providerComb );
    setTabOrder( providerComb, addselectedBtn );
    setTabOrder( addselectedBtn, addfilteredBtn );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ScanDialogUI::languageChange()
{
    setCaption( tr2i18n( "Channels" ) );
    groupBox10->setTitle( tr2i18n( "Channels :" ) );
    textLabel1->setText( tr2i18n( "(Right click to edit/delete)" ) );
    channelsList->header()->setLabel( 0, tr2i18n( "Name" ) );
    newBtn->setText( tr2i18n( "New ..." ) );
    delBtn->setText( tr2i18n( "Delete all" ) );
    searchGroup->setTitle( tr2i18n( "Search on :" ) );
    startBtn->setText( tr2i18n( "START scan" ) );
    statusFrame->setTitle( QString::null );
    filtersGroup->setTitle( tr2i18n( "Filters :" ) );
    ftaCb->setText( tr2i18n( "Free to air" ) );
    radioCb->setText( tr2i18n( "Radio" ) );
    tvCb->setText( tr2i18n( "TV" ) );
    providerCb->setText( tr2i18n( "Provider :" ) );
    addselectedBtn->setText( tr2i18n( "<< Add selected" ) );
    addfilteredBtn->setText( tr2i18n( "<< Add filtered" ) );
    groupBox11->setTitle( tr2i18n( "Found :" ) );
    foundList->clear();
    foundList->insertItem( tr2i18n( "New Item" ) );
    okBtn->setText( tr2i18n( "Done" ) );
}

#include "scandialogui.moc"

Generated by  Doxygen 1.6.0   Back to index