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

#include "renameimagesbase.h"

#include <ntqvariant.h>
#include <tdelistview.h>
#include <ntqpushbutton.h>
#include <ntqgroupbox.h>
#include <ntqlabel.h>
#include <ntqlineedit.h>
#include <ntqcheckbox.h>
#include <ntqspinbox.h>
#include <ntqlayout.h>
#include <ntqtooltip.h>
#include <ntqwhatsthis.h>

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

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

    m_seqLabel = new TQLabel( m_templateGroupBox, "m_seqLabel" );

    m_templateGroupBoxLayout->addWidget( m_seqLabel, 1, 0 );

    m_prefixEdit = new TQLineEdit( m_templateGroupBox, "m_prefixEdit" );

    m_templateGroupBoxLayout->addWidget( m_prefixEdit, 0, 1 );

    m_prefixLabel = new TQLabel( m_templateGroupBox, "m_prefixLabel" );

    m_templateGroupBoxLayout->addWidget( m_prefixLabel, 0, 0 );

    m_addFileNameCheck = new TQCheckBox( m_templateGroupBox, "m_addFileNameCheck" );

    m_templateGroupBoxLayout->addMultiCellWidget( m_addFileNameCheck, 2, 2, 0, 1 );

    m_addFileDateCheck = new TQCheckBox( m_templateGroupBox, "m_addFileDateCheck" );

    m_templateGroupBoxLayout->addMultiCellWidget( m_addFileDateCheck, 3, 3, 0, 1 );

    m_formatDateEdit = new TQLineEdit( m_templateGroupBox, "m_formatDateEdit" );

    m_templateGroupBoxLayout->addWidget( m_formatDateEdit, 4, 1 );

    layout1 = new TQHBoxLayout( 0, 0, 6, "layout1"); 
    spacer5 = new TQSpacerItem( 12, 14, TQSizePolicy::Fixed, TQSizePolicy::Minimum );
    layout1->addItem( spacer5 );

    m_formatDateCheck = new TQCheckBox( m_templateGroupBox, "m_formatDateCheck" );
    layout1->addWidget( m_formatDateCheck );

    m_templateGroupBoxLayout->addLayout( layout1, 4, 0 );

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

    m_seqSpin = new TQSpinBox( m_templateGroupBox, "m_seqSpin" );
    m_seqSpin->setMaxValue( 999999 );
    m_seqSpin->setMinValue( 1 );
    layout2->addWidget( m_seqSpin );
    spacer = new TQSpacerItem( 261, 21, TQSizePolicy::Expanding, TQSizePolicy::Minimum );
    layout2->addItem( spacer );

    m_templateGroupBoxLayout->addLayout( layout2, 1, 1 );
    RenameImagesBaseLayout->addWidget( m_templateGroupBox );

    m_addRemoveBox = new TQGroupBox( this, "m_addRemoveBox" );
    m_addRemoveBox->setAlignment( int( TQGroupBox::AlignTop | TQGroupBox::AlignHCenter ) );
    m_addRemoveBox->setColumnLayout(0, TQt::Vertical );
    m_addRemoveBox->layout()->setSpacing( 6 );
    m_addRemoveBox->layout()->setMargin( 6 );
    m_addRemoveBoxLayout = new TQGridLayout( m_addRemoveBox->layout() );
    m_addRemoveBoxLayout->setAlignment( TQt::AlignTop );

    m_addButton = new TQPushButton( m_addRemoveBox, "m_addButton" );

    m_addRemoveBoxLayout->addWidget( m_addButton, 0, 1 );

    m_removeButton = new TQPushButton( m_addRemoveBox, "m_removeButton" );
    m_removeButton->setEnabled( false );

    m_addRemoveBoxLayout->addWidget( m_removeButton, 1, 1 );

    m_listView = new TDEListView( m_addRemoveBox, "m_listView" );
    m_listView->addColumn( tr2i18n( "Album" ) );
    m_listView->addColumn( tr2i18n( "Source Image" ) );
    m_listView->addColumn( tr2i18n( "Target Image" ) );
    m_listView->addColumn( tr2i18n( "Result" ) );
    m_listView->setAllColumnsShowFocus( true );
    m_listView->setResizeMode( TDEListView::LastColumn );
    m_listView->setDragEnabled( true );

    m_addRemoveBoxLayout->addMultiCellWidget( m_listView, 0, 9, 0, 0 );
    spacer25 = new TQSpacerItem( 16, 175, TQSizePolicy::Minimum, TQSizePolicy::Expanding );
    m_addRemoveBoxLayout->addItem( spacer25, 9, 1 );

    m_reverseList = new TQPushButton( m_addRemoveBox, "m_reverseList" );

    m_addRemoveBoxLayout->addWidget( m_reverseList, 8, 1 );
    spacer3 = new TQSpacerItem( 16, 19, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    m_addRemoveBoxLayout->addItem( spacer3, 6, 1 );

    m_sortButton = new TQPushButton( m_addRemoveBox, "m_sortButton" );

    m_addRemoveBoxLayout->addWidget( m_sortButton, 7, 1 );

    m_moveDown = new TQPushButton( m_addRemoveBox, "m_moveDown" );

    m_addRemoveBoxLayout->addWidget( m_moveDown, 5, 1 );

    m_moveUp = new TQPushButton( m_addRemoveBox, "m_moveUp" );

    m_addRemoveBoxLayout->addWidget( m_moveUp, 4, 1 );

    m_pixLabel = new TQLabel( m_addRemoveBox, "m_pixLabel" );
    m_pixLabel->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)0, 0, 0, m_pixLabel->sizePolicy().hasHeightForWidth() ) );
    m_pixLabel->setMinimumSize( TQSize( 96, 96 ) );

    m_addRemoveBoxLayout->addWidget( m_pixLabel, 2, 1 );
    spacer3_2 = new TQSpacerItem( 16, 19, TQSizePolicy::Minimum, TQSizePolicy::Fixed );
    m_addRemoveBoxLayout->addItem( spacer3_2, 3, 1 );
    RenameImagesBaseLayout->addWidget( m_addRemoveBox );
    languageChange();
    resize( TQSize(570, 556).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPIBatchProcessImagesPlugin::RenameImagesBase::languageChange()
{
    setCaption( tr2i18n( "RenameImagesBase" ) );
    m_templateGroupBox->setTitle( tr2i18n( "Template for renaming files" ) );
    m_seqLabel->setText( tr2i18n( "Sequence number start value:" ) );
    m_prefixLabel->setText( tr2i18n( "Prefix string:" ) );
    m_addFileNameCheck->setText( tr2i18n( "Add original file name" ) );
    m_addFileDateCheck->setText( tr2i18n( "Add file date" ) );
    m_formatDateCheck->setText( tr2i18n( "Date format:" ) );
    m_addRemoveBox->setTitle( TQString::null );
    m_addButton->setText( tr2i18n( "Add" ) );
    m_removeButton->setText( tr2i18n( "Remove" ) );
    m_listView->header()->setLabel( 0, tr2i18n( "Album" ) );
    m_listView->header()->setLabel( 1, tr2i18n( "Source Image" ) );
    m_listView->header()->setLabel( 2, tr2i18n( "Target Image" ) );
    m_listView->header()->setLabel( 3, tr2i18n( "Result" ) );
    m_reverseList->setText( tr2i18n( "Reverse List" ) );
    m_sortButton->setText( tr2i18n( "Sort List" ) );
    m_moveDown->setText( tr2i18n( "Move &Down" ) );
    m_moveUp->setText( tr2i18n( "Move &Up" ) );
    m_pixLabel->setText( TQString::null );
}

#include "renameimagesbase.moc"
