#include <kdialog.h>
#include <tdelocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './imagesettingspage.ui'
**
** Created by: The TQt user interface compiler (TQt 3.5.0)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "imagesettingspage.h"

#include <ntqvariant.h>
#include <ntqpushbutton.h>
#include <ntqlabel.h>
#include <ntqbuttongroup.h>
#include <ntqradiobutton.h>
#include <ntqframe.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqcombobox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

/*
 *  Constructs a ImageSettingsPage as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
ImageSettingsPage::ImageSettingsPage( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "ImageSettingsPage" );
    ImageSettingsPageLayout = new TQGridLayout( this, 1, 1, 0, 6, "ImageSettingsPageLayout"); 

    textLabel1 = new TQLabel( this, "textLabel1" );
    TQFont textLabel1_font(  textLabel1->font() );
    textLabel1_font.setBold( true );
    textLabel1->setFont( textLabel1_font ); 

    ImageSettingsPageLayout->addMultiCellWidget( textLabel1, 0, 0, 0, 2 );
    spacer2_2 = new TQSpacerItem( 58, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    ImageSettingsPageLayout->addItem( spacer2_2, 1, 3 );
    spacer2_2_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    ImageSettingsPageLayout->addItem( spacer2_2_2, 1, 0 );
    spacer1 = new TQSpacerItem( 20, 104, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    ImageSettingsPageLayout->addItem( spacer1, 5, 2 );

    textLabel1_2 = new TQLabel( this, "textLabel1_2" );
    TQFont textLabel1_2_font(  textLabel1_2->font() );
    textLabel1_2_font.setBold( true );
    textLabel1_2->setFont( textLabel1_2_font ); 

    ImageSettingsPageLayout->addMultiCellWidget( textLabel1_2, 3, 3, 0, 2 );
    spacer2_2_2_2 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    ImageSettingsPageLayout->addItem( spacer2_2_2_2, 4, 0 );
    spacer4_3 = new TQSpacerItem( 20, 20, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    ImageSettingsPageLayout->addItem( spacer4_3, 2, 1 );

    kcfg_useOriginalImageAsFullImage = new TQButtonGroup( this, "kcfg_useOriginalImageAsFullImage" );
    kcfg_useOriginalImageAsFullImage->setFrameShape( TQButtonGroup::NoFrame );
    kcfg_useOriginalImageAsFullImage->setColumnLayout(0, TQt::Vertical );
    kcfg_useOriginalImageAsFullImage->layout()->setSpacing( 6 );
    kcfg_useOriginalImageAsFullImage->layout()->setMargin( 0 );
    kcfg_useOriginalImageAsFullImageLayout = new TQGridLayout( kcfg_useOriginalImageAsFullImage->layout() );
    kcfg_useOriginalImageAsFullImageLayout->setAlignment( TQt::AlignTop );

    radioButton3 = new TQRadioButton( kcfg_useOriginalImageAsFullImage, "radioButton3" );
    radioButton3->setChecked( true );

    kcfg_useOriginalImageAsFullImageLayout->addMultiCellWidget( radioButton3, 0, 0, 0, 1 );

    frame6 = new TQFrame( kcfg_useOriginalImageAsFullImage, "frame6" );
    frame6->setFrameShape( TQFrame::NoFrame );
    frame6->setFrameShadow( TQFrame::Plain );
    frame6Layout = new TQGridLayout( frame6, 1, 1, 0, 6, "frame6Layout"); 

    kcfg_fullResize = new TQCheckBox( frame6, "kcfg_fullResize" );
    kcfg_fullResize->setChecked( true );

    frame6Layout->addWidget( kcfg_fullResize, 1, 0 );

    textLabel2_2_2_2 = new TQLabel( frame6, "textLabel2_2_2_2" );

    frame6Layout->addWidget( textLabel2_2_2_2, 0, 0 );

    kcfg_fullQuality = new TQSpinBox( frame6, "kcfg_fullQuality" );
    kcfg_fullQuality->setMaxValue( 100 );

    frame6Layout->addWidget( kcfg_fullQuality, 0, 4 );

    kcfg_fullFormat = new TQComboBox( false, frame6, "kcfg_fullFormat" );

    frame6Layout->addWidget( kcfg_fullFormat, 0, 1 );

    textLabel4 = new TQLabel( frame6, "textLabel4" );

    frame6Layout->addWidget( textLabel4, 0, 3 );
    spacer4 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    frame6Layout->addItem( spacer4, 0, 2 );

    kcfg_fullSize = new TQSpinBox( frame6, "kcfg_fullSize" );
    kcfg_fullSize->setMaxValue( 9999 );
    kcfg_fullSize->setMinValue( 1 );
    kcfg_fullSize->setValue( 800 );

    frame6Layout->addWidget( kcfg_fullSize, 1, 1 );

    kcfg_copyOriginalImage = new TQCheckBox( frame6, "kcfg_copyOriginalImage" );
    kcfg_copyOriginalImage->setChecked( false );

    frame6Layout->addMultiCellWidget( kcfg_copyOriginalImage, 2, 2, 0, 4 );

    kcfg_useOriginalImageAsFullImageLayout->addWidget( frame6, 1, 1 );
    spacer2_2_2_3 = new TQSpacerItem( 16, 20, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    kcfg_useOriginalImageAsFullImageLayout->addItem( spacer2_2_2_3, 1, 0 );
    spacer4_3_2 = new TQSpacerItem( 20, 19, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    kcfg_useOriginalImageAsFullImageLayout->addItem( spacer4_3_2, 2, 1 );

    radioButton4 = new TQRadioButton( kcfg_useOriginalImageAsFullImage, "radioButton4" );

    kcfg_useOriginalImageAsFullImageLayout->addMultiCellWidget( radioButton4, 3, 3, 0, 1 );

    ImageSettingsPageLayout->addMultiCellWidget( kcfg_useOriginalImageAsFullImage, 1, 1, 1, 2 );
    spacer2_2_3 = new TQSpacerItem( 40, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    ImageSettingsPageLayout->addItem( spacer2_2_3, 4, 3 );

    layout13 = new TQGridLayout( 0, 1, 1, 0, 6, "layout13"); 

    kcfg_thumbnailSize = new TQSpinBox( this, "kcfg_thumbnailSize" );
    kcfg_thumbnailSize->setMaxValue( 9999 );
    kcfg_thumbnailSize->setMinValue( 1 );
    kcfg_thumbnailSize->setValue( 160 );

    layout13->addWidget( kcfg_thumbnailSize, 1, 1 );

    kcfg_thumbnailQuality = new TQSpinBox( this, "kcfg_thumbnailQuality" );
    kcfg_thumbnailQuality->setMaxValue( 100 );

    layout13->addWidget( kcfg_thumbnailQuality, 0, 4 );

    textLabel4_2 = new TQLabel( this, "textLabel4_2" );

    layout13->addWidget( textLabel4_2, 0, 3 );

    textLabel2_2_2 = new TQLabel( this, "textLabel2_2_2" );

    layout13->addWidget( textLabel2_2_2, 0, 0 );
    spacer4_2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout13->addItem( spacer4_2, 0, 2 );

    kcfg_thumbnailFormat = new TQComboBox( false, this, "kcfg_thumbnailFormat" );

    layout13->addWidget( kcfg_thumbnailFormat, 0, 1 );

    textLabel2_2 = new TQLabel( this, "textLabel2_2" );

    layout13->addWidget( textLabel2_2, 1, 0 );

    ImageSettingsPageLayout->addMultiCellLayout( layout13, 4, 4, 1, 2 );
    languageChange();
    resize( TQSize(381, 310).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( kcfg_fullResize, TQ_SIGNAL( toggled(bool) ), kcfg_fullSize, TQ_SLOT( setEnabled(bool) ) );
    connect( radioButton3, TQ_SIGNAL( toggled(bool) ), frame6, TQ_SLOT( setEnabled(bool) ) );

    // buddies
    textLabel2_2_2_2->setBuddy( kcfg_fullFormat );
    textLabel4->setBuddy( kcfg_fullQuality );
    textLabel4_2->setBuddy( kcfg_thumbnailQuality );
    textLabel2_2_2->setBuddy( kcfg_thumbnailFormat );
    textLabel2_2->setBuddy( kcfg_thumbnailSize );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void ImageSettingsPage::languageChange()
{
    setCaption( tr2i18n( "ImageSettingsPage" ) );
    textLabel1->setText( tr2i18n( "Full Image" ) );
    textLabel1_2->setText( tr2i18n( "Thumbnail" ) );
    kcfg_useOriginalImageAsFullImage->setTitle( TQString::null );
    radioButton3->setText( tr2i18n( "Save image" ) );
    kcfg_fullResize->setText( tr2i18n( "Max size:" ) );
    textLabel2_2_2_2->setText( tr2i18n( "Format:" ) );
    kcfg_fullFormat->clear();
    kcfg_fullFormat->insertItem( tr2i18n( "JPEG" ) );
    kcfg_fullFormat->insertItem( tr2i18n( "PNG" ) );
    textLabel4->setText( tr2i18n( "Quality:" ) );
    kcfg_copyOriginalImage->setText( tr2i18n( "Include full-size original images for download" ) );
    radioButton4->setText( tr2i18n( "Use original image" ) );
    textLabel4_2->setText( tr2i18n( "Quality:" ) );
    textLabel2_2_2->setText( tr2i18n( "Format:" ) );
    kcfg_thumbnailFormat->clear();
    kcfg_thumbnailFormat->insertItem( tr2i18n( "JPEG" ) );
    kcfg_thumbnailFormat->insertItem( tr2i18n( "PNG" ) );
    textLabel2_2->setText( tr2i18n( "Size:" ) );
}

#include "imagesettingspage.moc"
