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

#include "uploadwidget.h"

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

/*
 *  Constructs a KIPIPicasawebExportPlugin::UploadWidget as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KIPIPicasawebExportPlugin::UploadWidget::UploadWidget( TQWidget* parent, const char* name, WFlags fl )
    : TQWidget( parent, name, fl )
{
    if ( !name )
	setName( "UploadWidget" );
    setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)5, (TQSizePolicy::SizeType)5, 0, 42, sizePolicy().hasHeightForWidth() ) );

    m_selectionFrame = new TQFrame( this, "m_selectionFrame" );
    m_selectionFrame->setGeometry( TQRect( 390, 50, 220, 140 ) );
    m_selectionFrame->setFrameShape( TQFrame::StyledPanel );
    m_selectionFrame->setFrameShadow( TQFrame::Raised );

    buttonGroup1 = new TQButtonGroup( m_selectionFrame, "buttonGroup1" );
    buttonGroup1->setGeometry( TQRect( 10, 20, 200, 70 ) );

    m_selectImagesButton = new TQRadioButton( buttonGroup1, "m_selectImagesButton" );
    m_selectImagesButton->setGeometry( TQRect( 10, 40, 180, 21 ) );

    m_currentSelectionButton = new TQRadioButton( buttonGroup1, "m_currentSelectionButton" );
    m_currentSelectionButton->setGeometry( TQRect( 10, 20, 187, 21 ) );

    m_selectPhotosButton = new TQPushButton( m_selectionFrame, "m_selectPhotosButton" );
    m_selectPhotosButton->setGeometry( TQRect( 60, 100, 101, 30 ) );

    groupBox2 = new TQGroupBox( this, "groupBox2" );
    groupBox2->setGeometry( TQRect( 390, 200, 220, 90 ) );

    m_changeUserButton = new TQPushButton( groupBox2, "m_changeUserButton" );
    m_changeUserButton->setGeometry( TQRect( 90, 50, 110, 30 ) );

    textLabel4 = new TQLabel( groupBox2, "textLabel4" );
    textLabel4->setGeometry( TQRect( 10, 20, 70, 21 ) );

    m_userNameDisplayLabel = new TQLabel( groupBox2, "m_userNameDisplayLabel" );
    m_userNameDisplayLabel->setGeometry( TQRect( 90, 20, 120, 17 ) );
    m_userNameDisplayLabel->setAlignment( int( TQLabel::WordBreak | TQLabel::AlignVCenter ) );

    m_WidgetLabel = new TQLabel( this, "m_WidgetLabel" );
    m_WidgetLabel->setGeometry( TQRect( 10, 10, 240, 30 ) );
    TQFont m_WidgetLabel_font(  m_WidgetLabel->font() );
    m_WidgetLabel_font.setPointSize( 18 );
    m_WidgetLabel->setFont( m_WidgetLabel_font ); 
    m_WidgetLabel->setAlignment( int( TQLabel::AlignCenter ) );

    m_startUploadButton = new TQPushButton( this, "m_startUploadButton" );
    m_startUploadButton->setGeometry( TQRect( 490, 10, 120, 31 ) );

    groupBox1 = new TQGroupBox( this, "groupBox1" );
    groupBox1->setGeometry( TQRect( 10, 50, 370, 240 ) );

    tagsTxtLabel = new TQLabel( groupBox1, "tagsTxtLabel" );
    tagsTxtLabel->setGeometry( TQRect( 10, 80, 42, 22 ) );

    m_newAlbumButton = new TQPushButton( groupBox1, "m_newAlbumButton" );
    m_newAlbumButton->setGeometry( TQRect( 280, 20, 80, 25 ) );

    m_reloadAlbumsListButton = new TQPushButton( groupBox1, "m_reloadAlbumsListButton" );
    m_reloadAlbumsListButton->setGeometry( TQRect( 210, 20, 60, 25 ) );

    textLabel1 = new TQLabel( groupBox1, "textLabel1" );
    textLabel1->setGeometry( TQRect( 10, 20, 50, 25 ) );

    m_tagsLineEdit = new TQLineEdit( groupBox1, "m_tagsLineEdit" );
    m_tagsLineEdit->setGeometry( TQRect( 60, 80, 300, 23 ) );

    m_exportApplicationTags = new TQRadioButton( groupBox1, "m_exportApplicationTags" );
    m_exportApplicationTags->setGeometry( TQRect( 60, 110, 180, 21 ) );

    m_albumsListComboBox = new TQComboBox( false, groupBox1, "m_albumsListComboBox" );
    m_albumsListComboBox->setGeometry( TQRect( 60, 20, 140, 21 ) );
    m_albumsListComboBox->setEditable( false );

    m_resizeGroupBox = new TQGroupBox( groupBox1, "m_resizeGroupBox" );
    m_resizeGroupBox->setGeometry( TQRect( 10, 150, 350, 70 ) );

    m_resizeCheckBox = new TQCheckBox( m_resizeGroupBox, "m_resizeCheckBox" );
    m_resizeCheckBox->setGeometry( TQRect( 10, 10, 151, 21 ) );

    textLabel3 = new TQLabel( m_resizeGroupBox, "textLabel3" );
    textLabel3->setGeometry( TQRect( 10, 40, 90, 20 ) );

    textLabel1_2 = new TQLabel( m_resizeGroupBox, "textLabel1_2" );
    textLabel1_2->setGeometry( TQRect( 180, 40, 91, 21 ) );

    m_dimensionSpinBox = new TQSpinBox( m_resizeGroupBox, "m_dimensionSpinBox" );
    m_dimensionSpinBox->setGeometry( TQRect( 100, 40, 71, 21 ) );
    m_dimensionSpinBox->setMaxValue( 3200 );

    m_imageQualitySpinBox = new TQSpinBox( m_resizeGroupBox, "m_imageQualitySpinBox" );
    m_imageQualitySpinBox->setGeometry( TQRect( 280, 40, 60, 20 ) );
    languageChange();
    resize( TQSize(618, 299).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPIPicasawebExportPlugin::UploadWidget::languageChange()
{
    setCaption( tr2i18n( "PicasaWeb Exporter Upload" ) );
    buttonGroup1->setTitle( tr2i18n( "Images to upload" ) );
    m_selectImagesButton->setText( tr2i18n( "Select Images for Upload" ) );
    m_currentSelectionButton->setText( tr2i18n( "Currentl&y Selected Images" ) );
    m_selectPhotosButton->setText( tr2i18n( "Select Photos" ) );
    groupBox2->setTitle( tr2i18n( "Account Details" ) );
    m_changeUserButton->setText( tr2i18n( "Change User" ) );
    textLabel4->setText( tr2i18n( "Username:" ) );
    m_userNameDisplayLabel->setText( TQString::null );
    m_WidgetLabel->setText( tr2i18n( "PicasaWeb Uploader" ) );
    m_startUploadButton->setText( tr2i18n( "Start Uploading" ) );
    groupBox1->setTitle( TQString::null );
    tagsTxtLabel->setText( tr2i18n( "Tags:<p align=\"center\"></p>" ) );
    m_newAlbumButton->setText( tr2i18n( "New &Album" ) );
    m_reloadAlbumsListButton->setText( tr2i18n( "Reload" ) );
    textLabel1->setText( tr2i18n( "Album:" ) );
    m_exportApplicationTags->setText( tr2i18n( "E&xport Application Tags" ) );
    m_resizeGroupBox->setTitle( TQString::null );
    m_resizeCheckBox->setText( tr2i18n( "Resi&ze" ) );
    textLabel3->setText( tr2i18n( "Size (pixels):" ) );
    textLabel1_2->setText( tr2i18n( "Compression:" ) );
}

#include "uploadwidget.moc"
