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

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

#include "dlgadvancedbase.h"

#include <ntqvariant.h>
#include <kdialog.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqcheckbox.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a DlgAdvancedBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
DlgAdvancedBase::DlgAdvancedBase( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "DlgAdvancedBase" );
    DlgAdvancedBaseLayout = new TQVBoxLayout( this, 0, KDialog::spacingHint(), "DlgAdvancedBaseLayout"); 

    gb_advanced = new TQGroupBox( this, "gb_advanced" );
    gb_advanced->setColumnLayout(0, TQt::Vertical );
    gb_advanced->layout()->setSpacing( KDialog::spacingHint() );
    gb_advanced->layout()->setMargin( KDialog::marginHint() );
    gb_advancedLayout = new TQGridLayout( gb_advanced->layout() );
    gb_advancedLayout->setAlignment( TQt::AlignTop );

    lb_adding = new TQLabel( gb_advanced, "lb_adding" );

    gb_advancedLayout->addMultiCellWidget( lb_adding, 0, 0, 0, 1 );
    spacer2 = new TQSpacerItem( 40, 20, TQSizePolicy::Preferred, TQSizePolicy::Minimum );
    gb_advancedLayout->addItem( spacer2, 2, 0 );

    cb_iconify = new TQCheckBox( gb_advanced, "cb_iconify" );

    gb_advancedLayout->addMultiCellWidget( cb_iconify, 2, 2, 1, 2 );

    cb_advanced = new TQCheckBox( gb_advanced, "cb_advanced" );

    gb_advancedLayout->addMultiCellWidget( cb_advanced, 3, 3, 0, 2 );

    cb_partial = new TQCheckBox( gb_advanced, "cb_partial" );

    gb_advancedLayout->addMultiCellWidget( cb_partial, 4, 4, 0, 2 );

    cb_remove = new TQCheckBox( gb_advanced, "cb_remove" );

    gb_advancedLayout->addMultiCellWidget( cb_remove, 5, 5, 0, 2 );

    cb_getsizes = new TQCheckBox( gb_advanced, "cb_getsizes" );

    gb_advancedLayout->addMultiCellWidget( cb_getsizes, 6, 6, 0, 1 );

    cb_expertmode = new TQCheckBox( gb_advanced, "cb_expertmode" );

    gb_advancedLayout->addMultiCellWidget( cb_expertmode, 7, 7, 0, 3 );

    cb_konqiIntegration = new TQCheckBox( gb_advanced, "cb_konqiIntegration" );

    gb_advancedLayout->addMultiCellWidget( cb_konqiIntegration, 8, 8, 0, 2 );

    cb_ShowMain = new TQCheckBox( gb_advanced, "cb_ShowMain" );

    gb_advancedLayout->addMultiCellWidget( cb_ShowMain, 9, 9, 0, 2 );

    cb_individual = new TQCheckBox( gb_advanced, "cb_individual" );

    gb_advancedLayout->addMultiCellWidget( cb_individual, 1, 1, 0, 2 );

    bg_adding = new TQButtonGroup( gb_advanced, "bg_adding" );
    bg_adding->setFrameShape( TQButtonGroup::NoFrame );
    bg_adding->setFrameShadow( TQButtonGroup::Sunken );
    bg_adding->setExclusive( false );
    bg_adding->setColumnLayout(0, TQt::Vertical );
    bg_adding->layout()->setSpacing( KDialog::spacingHint() );
    bg_adding->layout()->setMargin( 0 );
    bg_addingLayout = new TQHBoxLayout( bg_adding->layout() );
    bg_addingLayout->setAlignment( TQt::AlignTop );

    rb_queued = new TQRadioButton( bg_adding, "rb_queued" );
    bg_addingLayout->addWidget( rb_queued );

    rb_delayed = new TQRadioButton( bg_adding, "rb_delayed" );
    bg_addingLayout->addWidget( rb_delayed );

    gb_advancedLayout->addWidget( bg_adding, 0, 2 );
    spacer1 = new TQSpacerItem( 35, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    gb_advancedLayout->addItem( spacer1, 0, 3 );
    DlgAdvancedBaseLayout->addWidget( gb_advanced );
    languageChange();
    resize( TQSize(368, 285).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( cb_ShowMain, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_advanced, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_expertmode, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_getsizes, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_iconify, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_individual, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_konqiIntegration, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_partial, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_remove, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( rb_delayed, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( rb_queued, TQ_SIGNAL( toggled(bool) ), this, TQ_SLOT( slotChanged() ) );
    connect( cb_individual, TQ_SIGNAL( toggled(bool) ), cb_iconify, TQ_SLOT( setEnabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void DlgAdvancedBase::languageChange()
{
    gb_advanced->setTitle( tr2i18n( "Advanced Options" ) );
    lb_adding->setText( tr2i18n( "Add new transfers as:" ) );
    cb_iconify->setText( tr2i18n( "Iconified" ) );
    cb_advanced->setText( tr2i18n( "Advanced individual windows" ) );
    cb_partial->setText( tr2i18n( "Mark partial downloads" ) );
    cb_remove->setText( tr2i18n( "Remove files from a list after success" ) );
    cb_getsizes->setText( tr2i18n( "Get file sizes" ) );
    cb_expertmode->setText( tr2i18n( "Expert mode (do not prompt for Cancel or Delete)" ) );
    cb_konqiIntegration->setText( tr2i18n( "Use KGet as Download Manager for Konqueror" ) );
    cb_ShowMain->setText( tr2i18n( "Show main window at startup" ) );
    cb_individual->setText( tr2i18n( "Show individual windows" ) );
    bg_adding->setTitle( TQString::null );
    rb_queued->setText( tr2i18n( "Queued" ) );
    rb_delayed->setText( tr2i18n( "Delayed" ) );
}

/****************************************************************************
** DlgAdvancedBase meta object code from reading C++ file 'dlgadvancedbase.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 "dlgadvancedbase.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 *DlgAdvancedBase::className() const
{
    return "DlgAdvancedBase";
}

TQMetaObject *DlgAdvancedBase::metaObj = 0;
static TQMetaObjectCleanUp cleanUp_DlgAdvancedBase( "DlgAdvancedBase", &DlgAdvancedBase::staticMetaObject );

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

#endif // TQT_NO_TRANSLATION

TQMetaObject* DlgAdvancedBase::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 = TQWidget::staticMetaObject();
    static const TQUMethod slot_0 = {"languageChange", 0, 0 };
    static const TQUMethod slot_1 = {"slotChanged", 0, 0 };
    static const TQMetaData slot_tbl[] = {
	{ "languageChange()", &slot_0, TQMetaData::Protected },
	{ "slotChanged()", &slot_1, TQMetaData::Protected }
    };
    metaObj = TQMetaObject::new_metaobject(
	"DlgAdvancedBase", parentObject,
	slot_tbl, 2,
	0, 0,
#ifndef TQT_NO_PROPERTIES
	0, 0,
	0, 0,
#endif // TQT_NO_PROPERTIES
	0, 0 );
    cleanUp_DlgAdvancedBase.setMetaObject( metaObj );
#ifdef TQT_THREAD_SUPPORT
    if (tqt_sharedMetaObjectMutex) tqt_sharedMetaObjectMutex->unlock();
#endif // TQT_THREAD_SUPPORT
    return metaObj;
}

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

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

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

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

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