#include <kdialog.h>
#include <tdelocale.h>

/****************************************************************************
** Form implementation generated from reading ui file 'scandialogui.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "scandialogui.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqheader.h>
#include <ntqlistview.h>
#include <ntqcombobox.h>
#include <ntqcheckbox.h>
#include <ntqframe.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a ScanDialogUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The qdialog will by default be modeless, unless you set 'modal' to
 *  true to construct a modal qdialog.
 */
ScanDialogUI::ScanDialogUI( TQWidget* parent, const char* name, bool modal, WFlags fl )
    : TQDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "ScanDialogUI" );
    ScanDialogUILayout = new TQGridLayout( this, 1, 1, 11, 6, "ScanDialogUILayout"); 

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

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

    groupBox10 = new TQGroupBox( this, "groupBox10" );
    groupBox10->setColumnLayout(0, TQt::Vertical );
    groupBox10->layout()->setSpacing( 6 );
    groupBox10->layout()->setMargin( 11 );
    groupBox10Layout = new TQGridLayout( groupBox10->layout() );
    groupBox10Layout->setAlignment( TQt::AlignTop );

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

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

    channelsList = new TQListView( groupBox10, "channelsList" );
    channelsList->addColumn( tr2i18n( "Name" ) );
    channelsList->addColumn( tr2i18n( "Source" ) );
    channelsList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)3, 0, 0, channelsList->sizePolicy().hasHeightForWidth() ) );
    channelsList->setRootIsDecorated( false );

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

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

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

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

    groupBox10Layout->addWidget( delBtn, 2, 2 );
    spacer7 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    groupBox10Layout->addItem( spacer7, 2, 1 );
    layout8->addWidget( groupBox10 );

    layout7 = new TQVBoxLayout( 0, 0, 6, "layout7"); 

    searchGroup = new TQGroupBox( this, "searchGroup" );
    searchGroup->setColumnLayout(0, TQt::Vertical );
    searchGroup->layout()->setSpacing( 6 );
    searchGroup->layout()->setMargin( 11 );
    searchGroupLayout = new TQGridLayout( searchGroup->layout() );
    searchGroupLayout->setAlignment( TQt::AlignTop );

    searchComb = new TQComboBox( false, searchGroup, "searchComb" );

    searchGroupLayout->addWidget( searchComb, 0, 0 );

    offsetGroup = new TQGroupBox( searchGroup, "offsetGroup" );
    offsetGroup->setColumnLayout(0, TQt::Vertical );
    offsetGroup->layout()->setSpacing( 6 );
    offsetGroup->layout()->setMargin( 11 );
    offsetGroupLayout = new TQGridLayout( offsetGroup->layout() );
    offsetGroupLayout->setAlignment( TQt::AlignTop );

    offset167m = new TQCheckBox( offsetGroup, "offset167m" );

    offsetGroupLayout->addWidget( offset167m, 1, 3 );

    textLabel2 = new TQLabel( offsetGroup, "textLabel2" );

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

    textLabel1_2 = new TQLabel( offsetGroup, "textLabel1_2" );

    offsetGroupLayout->addWidget( textLabel1_2, 1, 0 );

    offset167p = new TQCheckBox( offsetGroup, "offset167p" );

    offsetGroupLayout->addWidget( offset167p, 1, 2 );

    offset125p = new TQCheckBox( offsetGroup, "offset125p" );

    offsetGroupLayout->addMultiCellWidget( offset125p, 0, 0, 2, 3 );

    offset0 = new TQCheckBox( offsetGroup, "offset0" );
    offset0->setChecked( true );

    offsetGroupLayout->addWidget( offset0, 1, 1 );

    offset07 = new TQCheckBox( offsetGroup, "offset07" );
    offset07->setChecked( true );

    offsetGroupLayout->addWidget( offset07, 0, 1 );

    searchGroupLayout->addWidget( offsetGroup, 1, 0 );
    layout7->addWidget( searchGroup );

    startBtn = new TQPushButton( this, "startBtn" );
    startBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, startBtn->sizePolicy().hasHeightForWidth() ) );
    startBtn->setToggleButton( true );
    layout7->addWidget( startBtn );
    spacer15 = new TQSpacerItem( 20, 18, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer15 );

    statusFrame = new TQGroupBox( this, "statusFrame" );
    layout7->addWidget( statusFrame );
    spacer11 = new TQSpacerItem( 21, 19, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    layout7->addItem( spacer11 );

    filtersGroup = new TQGroupBox( this, "filtersGroup" );
    filtersGroup->setColumnLayout(0, TQt::Vertical );
    filtersGroup->layout()->setSpacing( 6 );
    filtersGroup->layout()->setMargin( 11 );
    filtersGroupLayout = new TQGridLayout( filtersGroup->layout() );
    filtersGroupLayout->setAlignment( TQt::AlignTop );

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

    filtersGroupLayout->addWidget( radioCb, 2, 0 );

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

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

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

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

    providerComb = new TQComboBox( false, filtersGroup, "providerComb" );
    providerComb->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)3, (TQSizePolicy::SizeType)0, 0, 0, providerComb->sizePolicy().hasHeightForWidth() ) );

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

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

    filtersGroupLayout->addMultiCellWidget( ftaCb, 0, 0, 0, 1 );
    layout7->addWidget( filtersGroup );

    addselectedBtn = new TQPushButton( this, "addselectedBtn" );
    addselectedBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, addselectedBtn->sizePolicy().hasHeightForWidth() ) );
    layout7->addWidget( addselectedBtn );

    addfilteredBtn = new TQPushButton( this, "addfilteredBtn" );
    addfilteredBtn->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)1, (TQSizePolicy::SizeType)0, 0, 0, addfilteredBtn->sizePolicy().hasHeightForWidth() ) );
    layout7->addWidget( addfilteredBtn );
    layout8->addLayout( layout7 );

    groupBox11 = new TQGroupBox( this, "groupBox11" );
    groupBox11->setColumnLayout(0, TQt::Vertical );
    groupBox11->layout()->setSpacing( 6 );
    groupBox11->layout()->setMargin( 11 );
    groupBox11Layout = new TQGridLayout( groupBox11->layout() );
    groupBox11Layout->setAlignment( TQt::AlignTop );

    foundList = new TQListView( groupBox11, "foundList" );
    foundList->addColumn( tr2i18n( "SNR" ) );
    foundList->addColumn( tr2i18n( "Name" ) );
    foundList->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)7, (TQSizePolicy::SizeType)3, 0, 0, foundList->sizePolicy().hasHeightForWidth() ) );

    groupBox11Layout->addWidget( foundList, 0, 0 );

    selectallBtn = new TQPushButton( groupBox11, "selectallBtn" );

    groupBox11Layout->addWidget( selectallBtn, 1, 0 );
    layout8->addWidget( groupBox11 );
    layout9->addLayout( layout8 );

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

    layout9_2 = new TQHBoxLayout( 0, 0, 6, "layout9_2"); 
    spacer4 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout9_2->addItem( spacer4 );

    okBtn = new TQPushButton( this, "okBtn" );
    layout9_2->addWidget( okBtn );
    layout9->addLayout( layout9_2 );

    ScanDialogUILayout->addLayout( layout9, 0, 0 );
    languageChange();
    resize( TQSize(790, 578).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( okBtn, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) );

    // tab order
    setTabOrder( okBtn, 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, TQt 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" ) );
    channelsList->header()->setLabel( 1, tr2i18n( "Source" ) );
    newBtn->setText( tr2i18n( "New..." ) );
    delBtn->setText( tr2i18n( "Delete All" ) );
    searchGroup->setTitle( tr2i18n( "Search On" ) );
    offsetGroup->setTitle( tr2i18n( "Offset (KHz)" ) );
    offset167m->setText( tr2i18n( "-167" ) );
    textLabel2->setText( tr2i18n( "(7MHz)" ) );
    textLabel1_2->setText( tr2i18n( "(8MHz)" ) );
    offset167p->setText( tr2i18n( "+167" ) );
    offset125p->setText( tr2i18n( "+125" ) );
    offset0->setText( tr2i18n( "0" ) );
    offset07->setText( tr2i18n( "0" ) );
    startBtn->setText( tr2i18n( "Start Scan" ) );
    statusFrame->setTitle( TQString::null );
    filtersGroup->setTitle( tr2i18n( "Filters" ) );
    radioCb->setText( tr2i18n( "Radio" ) );
    tvCb->setText( tr2i18n( "TV" ) );
    providerCb->setText( tr2i18n( "Provider:" ) );
    ftaCb->setText( tr2i18n( "Free to air" ) );
    addselectedBtn->setText( tr2i18n( "<< Add Selected" ) );
    addfilteredBtn->setText( tr2i18n( "<< Add Filtered" ) );
    groupBox11->setTitle( tr2i18n( "Found" ) );
    foundList->header()->setLabel( 0, tr2i18n( "SNR" ) );
    foundList->header()->setLabel( 1, tr2i18n( "Name" ) );
    selectallBtn->setText( tr2i18n( "Select All" ) );
    okBtn->setText( tr2i18n( "Done" ) );
}

/****************************************************************************
** ScanDialogUI meta object code from reading C++ file 'scandialogui.h'
**
** Created by: The TQt Meta Object Compiler version 26 (TQt 3.5.0)
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#undef TQT_NO_COMPAT
#include "scandialogui.h"
#include <ntqmetaobject.h>
#include <ntqapplication.h>

#include <private/qucomextra_p.h>
#if !defined(Q_MOC_OUTPUT_REVISION) || (Q_MOC_OUTPUT_REVISION != 26)
#error "This file was generated using the moc from 3.5.0. It"
#error "cannot be used with the include files from this version of TQt."
#error "(The moc has changed too much.)"
#endif

const char *ScanDialogUI::className() const
{
    return "ScanDialogUI";
}

TQMetaObject *ScanDialogUI::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_ScanDialogUI( "ScanDialogUI", &ScanDialogUI::staticMetaObject );

#ifndef TQT_NO_TRANSLATION
TQString ScanDialogUI::tr( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ScanDialogUI", s, c, TQApplication::DefaultCodec );
    else
	return TQString::fromLatin1( s );
}
#ifndef TQT_NO_TRANSLATION_UTF8
TQString ScanDialogUI::trUtf8( const char *s, const char *c )
{
    if ( tqApp )
	return tqApp->translate( "ScanDialogUI", s, c, TQApplication::UnicodeUTF8 );
    else
	return TQString::fromUtf8( s );
}
#endif // TQT_NO_TRANSLATION_UTF8

#endif // TQT_NO_TRANSLATION

TQMetaObject* ScanDialogUI::staticMetaObject()
{
    if ( metaObj ) {
	return metaObj;
}
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->lock();
    if ( metaObj ) {
	if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
	return metaObj;
    }
#endif // TQT_THREAD_SUPPORT
    TQMetaObject* parentObject = TQDialog::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"ScanDialogUI", parentObject,
	slot_tbl, 1,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_ScanDialogUI.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

void* ScanDialogUI::tqt_cast( const char* clname )
{
    if ( !qstrcmp( clname, "ScanDialogUI" ) )
	return this;
    return TQDialog::tqt_cast( clname );
}

bool ScanDialogUI::tqt_invoke( int _id, TQUObject* _o )
{
    switch ( _id - staticMetaObject()->slotOffset() ) {
    case 0: languageChange(); break;
    default:
	return TQDialog::tqt_invoke( _id, _o );
    }
    return true;
}

bool ScanDialogUI::tqt_emit( int _id, TQUObject* _o )
{
    return TQDialog::tqt_emit(_id,_o);
}
#ifndef TQT_NO_PROPERTIES

bool ScanDialogUI::tqt_property( int id, int f, TQVariant* v)
{
    return TQDialog::tqt_property( id, f, v);
}

bool ScanDialogUI::tqt_static_property( TQObject* , int , int , TQVariant* ){ return false; }
#endif // TQT_NO_PROPERTIES
