/****************************************************************************
** Form implementation generated from reading ui file 'toscriptui.ui'
**
** Created: Tue Sep 18 08:21:23 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "toscriptui.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qtabwidget.h>
#include <qgroupbox.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qheader.h>
#include <qlistview.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <qframe.h>
#include <qspinbox.h>
#include <qlineedit.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include "tofilesize.h"

/*
 *  Constructs a toScriptUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
toScriptUI::toScriptUI( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "toScriptUI" );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)5, 0, 0, sizePolicy().hasHeightForWidth() ) );
    toScriptUILayout = new QGridLayout( this, 1, 1, 0, 6, "toScriptUILayout"); 

    Tabs = new QTabWidget( this, "Tabs" );

    tab = new QWidget( Tabs, "tab" );
    tabLayout = new QGridLayout( tab, 1, 1, -1, -1, "tabLayout"); 

    Destination = new QGroupBox( tab, "Destination" );
    Destination->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, Destination->sizePolicy().hasHeightForWidth() ) );
    Destination->setColumnLayout(0, Qt::Vertical );
    Destination->layout()->setSpacing( 6 );
    Destination->layout()->setMargin( 11 );
    DestinationLayout = new QGridLayout( Destination->layout() );
    DestinationLayout->setAlignment( Qt::AlignTop );

    TextLabel2_4 = new QLabel( Destination, "TextLabel2_4" );

    DestinationLayout->addWidget( TextLabel2_4, 0, 0 );

    TextLabel2_2_3 = new QLabel( Destination, "TextLabel2_2_3" );

    DestinationLayout->addWidget( TextLabel2_2_3, 2, 0 );

    DestinationConnection = new QComboBox( FALSE, Destination, "DestinationConnection" );

    DestinationLayout->addWidget( DestinationConnection, 1, 0 );

    DestinationSchema = new QComboBox( FALSE, Destination, "DestinationSchema" );

    DestinationLayout->addWidget( DestinationSchema, 3, 0 );

    DestinationObjects = new QListView( Destination, "DestinationObjects" );
    DestinationObjects->addColumn( tr( "Objects" ) );
    DestinationObjects->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, DestinationObjects->sizePolicy().hasHeightForWidth() ) );
    DestinationObjects->setRootIsDecorated( TRUE );

    DestinationLayout->addWidget( DestinationObjects, 5, 0 );

    TextLabel1_2 = new QLabel( Destination, "TextLabel1_2" );
    TextLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)4, 0, 0, TextLabel1_2->sizePolicy().hasHeightForWidth() ) );

    DestinationLayout->addWidget( TextLabel1_2, 4, 0 );

    tabLayout->addMultiCellWidget( Destination, 0, 2, 2, 2 );

    ModeGroup = new QButtonGroup( tab, "ModeGroup" );
    ModeGroup->setColumnLayout(0, Qt::Vertical );
    ModeGroup->layout()->setSpacing( 6 );
    ModeGroup->layout()->setMargin( 11 );
    ModeGroupLayout = new QGridLayout( ModeGroup->layout() );
    ModeGroupLayout->setAlignment( Qt::AlignTop );

    Compare = new QRadioButton( ModeGroup, "Compare" );
    Compare->setChecked( TRUE );
    ModeGroup->insert( Compare, 0 );

    ModeGroupLayout->addWidget( Compare, 0, 0 );

    Extract = new QRadioButton( ModeGroup, "Extract" );
    Extract->setChecked( FALSE );
    ModeGroup->insert( Extract, 1 );

    ModeGroupLayout->addWidget( Extract, 1, 0 );

    IncludeCode = new QCheckBox( ModeGroup, "IncludeCode" );
    IncludeCode->setChecked( TRUE );
    ModeGroup->insert( IncludeCode, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeCode, 7, 7, 2, 3 );

    IncludeStorage = new QCheckBox( ModeGroup, "IncludeStorage" );
    IncludeStorage->setChecked( TRUE );
    ModeGroup->insert( IncludeStorage, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeStorage, 4, 4, 2, 3 );

    IncludeParallell = new QCheckBox( ModeGroup, "IncludeParallell" );
    IncludeParallell->setChecked( TRUE );
    ModeGroup->insert( IncludeParallell, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeParallell, 5, 5, 2, 3 );

    IncludePartition = new QCheckBox( ModeGroup, "IncludePartition" );
    IncludePartition->setChecked( TRUE );
    ModeGroup->insert( IncludePartition, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludePartition, 6, 6, 2, 3 );

    IncludeIndexes = new QCheckBox( ModeGroup, "IncludeIndexes" );
    IncludeIndexes->setChecked( TRUE );
    ModeGroup->insert( IncludeIndexes, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeIndexes, 2, 2, 2, 3 );

    IncludeComment = new QCheckBox( ModeGroup, "IncludeComment" );
    IncludeComment->setEnabled( TRUE );
    IncludeComment->setChecked( TRUE );
    ModeGroup->insert( IncludeComment, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeComment, 8, 8, 2, 3 );

    IncludeGrants = new QCheckBox( ModeGroup, "IncludeGrants" );
    IncludeGrants->setChecked( TRUE );
    ModeGroup->insert( IncludeGrants, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeGrants, 3, 3, 2, 3 );

    IncludeConstraints = new QCheckBox( ModeGroup, "IncludeConstraints" );
    IncludeConstraints->setChecked( TRUE );
    ModeGroup->insert( IncludeConstraints, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeConstraints, 1, 1, 2, 3 );

    IncludeDDL = new QCheckBox( ModeGroup, "IncludeDDL" );
    IncludeDDL->setEnabled( FALSE );
    IncludeDDL->setChecked( TRUE );
    ModeGroup->insert( IncludeDDL, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeDDL, 0, 0, 2, 3 );

    Search = new QRadioButton( ModeGroup, "Search" );
    ModeGroup->insert( Search, 3 );

    ModeGroupLayout->addWidget( Search, 2, 0 );

    Line3 = new QFrame( ModeGroup, "Line3" );
    Line3->setFrameStyle( QFrame::VLine | QFrame::Sunken );

    ModeGroupLayout->addMultiCellWidget( Line3, 0, 14, 1, 1 );
    Spacer10_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    ModeGroupLayout->addMultiCell( Spacer10_2, 5, 14, 0, 0 );

    Migrate = new QRadioButton( ModeGroup, "Migrate" );
    Migrate->setEnabled( TRUE );
    Migrate->setChecked( FALSE );
    ModeGroup->insert( Migrate, 2 );

    ModeGroupLayout->addWidget( Migrate, 3, 0 );

    Report = new QRadioButton( ModeGroup, "Report" );
    Report->setEnabled( TRUE );
    Report->setChecked( FALSE );
    ModeGroup->insert( Report, 4 );

    ModeGroupLayout->addWidget( Report, 4, 0 );

    IncludePrompt = new QCheckBox( ModeGroup, "IncludePrompt" );
    IncludePrompt->setEnabled( FALSE );
    IncludePrompt->setFocusPolicy( QCheckBox::NoFocus );
    IncludePrompt->setChecked( FALSE );
    ModeGroup->insert( IncludePrompt, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludePrompt, 9, 9, 2, 3 );
    Spacer9_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    ModeGroupLayout->addItem( Spacer9_2, 14, 2 );

    IncludeHeader = new QCheckBox( ModeGroup, "IncludeHeader" );
    IncludeHeader->setEnabled( FALSE );
    IncludeHeader->setChecked( TRUE );
    ModeGroup->insert( IncludeHeader, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeHeader, 10, 10, 2, 3 );

    Schema = new QComboBox( FALSE, ModeGroup, "Schema" );
    Schema->setEditable( TRUE );
    Schema->setDuplicatesEnabled( FALSE );

    ModeGroupLayout->addWidget( Schema, 13, 3 );

    TextLabel3 = new QLabel( ModeGroup, "TextLabel3" );

    ModeGroupLayout->addWidget( TextLabel3, 13, 2 );

    IncludeContent = new QCheckBox( ModeGroup, "IncludeContent" );
    IncludeContent->setEnabled( FALSE );
    IncludeContent->setFocusPolicy( QCheckBox::NoFocus );
    IncludeContent->setChecked( FALSE );
    ModeGroup->insert( IncludeContent, 10 );

    ModeGroupLayout->addMultiCellWidget( IncludeContent, 11, 11, 2, 3 );

    TextLabel1_3 = new QLabel( ModeGroup, "TextLabel1_3" );

    ModeGroupLayout->addWidget( TextLabel1_3, 12, 2 );

    CommitDistance = new QSpinBox( ModeGroup, "CommitDistance" );
    CommitDistance->setEnabled( FALSE );
    CommitDistance->setMaxValue( 1000000 );

    ModeGroupLayout->addWidget( CommitDistance, 12, 3 );

    tabLayout->addWidget( ModeGroup, 0, 0 );

    SearchGroup = new QButtonGroup( tab, "SearchGroup" );
    SearchGroup->setEnabled( FALSE );
    SearchGroup->setColumnLayout(0, Qt::Vertical );
    SearchGroup->layout()->setSpacing( 6 );
    SearchGroup->layout()->setMargin( 11 );
    SearchGroupLayout = new QGridLayout( SearchGroup->layout() );
    SearchGroupLayout->setAlignment( Qt::AlignTop );

    SearchWord = new QLineEdit( SearchGroup, "SearchWord" );

    SearchGroupLayout->addMultiCellWidget( SearchWord, 2, 2, 0, 1 );

    AnyWords = new QRadioButton( SearchGroup, "AnyWords" );
    AnyWords->setChecked( TRUE );
    SearchGroup->insert( AnyWords, 2 );

    SearchGroupLayout->addWidget( AnyWords, 0, 0 );

    AllWords = new QRadioButton( SearchGroup, "AllWords" );
    AllWords->setFocusPolicy( QRadioButton::NoFocus );
    AllWords->setChecked( FALSE );
    SearchGroup->insert( AllWords, 1 );

    SearchGroupLayout->addWidget( AllWords, 0, 1 );

    RegExp = new QRadioButton( SearchGroup, "RegExp" );
    RegExp->setFocusPolicy( QRadioButton::NoFocus );
    RegExp->setChecked( FALSE );
    SearchGroup->insert( RegExp, 3 );

    SearchGroupLayout->addWidget( RegExp, 1, 1 );

    ExactMatch = new QRadioButton( SearchGroup, "ExactMatch" );
    ExactMatch->setFocusPolicy( QRadioButton::NoFocus );
    SearchGroup->insert( ExactMatch, 4 );

    SearchGroupLayout->addWidget( ExactMatch, 1, 0 );

    tabLayout->addWidget( SearchGroup, 2, 0 );

    GroupBox2 = new QGroupBox( tab, "GroupBox2" );
    GroupBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, GroupBox2->sizePolicy().hasHeightForWidth() ) );
    GroupBox2->setColumnLayout(0, Qt::Vertical );
    GroupBox2->layout()->setSpacing( 6 );
    GroupBox2->layout()->setMargin( 11 );
    GroupBox2Layout = new QGridLayout( GroupBox2->layout() );
    GroupBox2Layout->setAlignment( Qt::AlignTop );

    TextLabel2 = new QLabel( GroupBox2, "TextLabel2" );

    GroupBox2Layout->addWidget( TextLabel2, 0, 0 );

    TextLabel2_2 = new QLabel( GroupBox2, "TextLabel2_2" );

    GroupBox2Layout->addWidget( TextLabel2_2, 2, 0 );

    SourceConnection = new QComboBox( FALSE, GroupBox2, "SourceConnection" );

    GroupBox2Layout->addWidget( SourceConnection, 1, 0 );

    SourceSchema = new QComboBox( FALSE, GroupBox2, "SourceSchema" );

    GroupBox2Layout->addWidget( SourceSchema, 3, 0 );

    SourceObjects = new QListView( GroupBox2, "SourceObjects" );
    SourceObjects->addColumn( tr( "Objects" ) );
    SourceObjects->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, SourceObjects->sizePolicy().hasHeightForWidth() ) );
    SourceObjects->setRootIsDecorated( TRUE );

    GroupBox2Layout->addWidget( SourceObjects, 5, 0 );

    TextLabel1 = new QLabel( GroupBox2, "TextLabel1" );
    TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)4, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );

    GroupBox2Layout->addWidget( TextLabel1, 4, 0 );

    tabLayout->addMultiCellWidget( GroupBox2, 0, 2, 1, 1 );

    OutputGroup = new QButtonGroup( tab, "OutputGroup" );
    OutputGroup->setEnabled( FALSE );
    OutputGroup->setColumnLayout(0, Qt::Vertical );
    OutputGroup->layout()->setSpacing( 6 );
    OutputGroup->layout()->setMargin( 11 );
    OutputGroupLayout = new QGridLayout( OutputGroup->layout() );
    OutputGroupLayout->setAlignment( Qt::AlignTop );

    OutputTab = new QRadioButton( OutputGroup, "OutputTab" );
    OutputTab->setChecked( TRUE );
    OutputGroup->insert( OutputTab, 1 );

    OutputGroupLayout->addWidget( OutputTab, 0, 0 );

    OutputDir = new QRadioButton( OutputGroup, "OutputDir" );
    OutputDir->setFocusPolicy( QRadioButton::NoFocus );
    OutputGroup->insert( OutputDir, 3 );

    OutputGroupLayout->addWidget( OutputDir, 0, 2 );

    OutputFile = new QRadioButton( OutputGroup, "OutputFile" );
    OutputFile->setFocusPolicy( QRadioButton::NoFocus );

    OutputGroupLayout->addWidget( OutputFile, 0, 1 );

    Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 

    Filename = new QLineEdit( OutputGroup, "Filename" );
    Filename->setEnabled( FALSE );
    Layout1->addWidget( Filename );

    Browse = new QPushButton( OutputGroup, "Browse" );
    Browse->setEnabled( FALSE );
    Layout1->addWidget( Browse );

    OutputGroupLayout->addMultiCellLayout( Layout1, 1, 1, 0, 2 );

    tabLayout->addWidget( OutputGroup, 1, 0 );
    Tabs->insertTab( tab, QString::fromLatin1("") );

    ResizeTab = new QWidget( Tabs, "ResizeTab" );
    ResizeTabLayout = new QGridLayout( ResizeTab, 1, 1, 11, 6, "ResizeTabLayout"); 

    ButtonGroup2_2 = new QButtonGroup( ResizeTab, "ButtonGroup2_2" );
    ButtonGroup2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)4, 0, 0, ButtonGroup2_2->sizePolicy().hasHeightForWidth() ) );
    ButtonGroup2_2->setColumnLayout(0, Qt::Vertical );
    ButtonGroup2_2->layout()->setSpacing( 6 );
    ButtonGroup2_2->layout()->setMargin( 11 );
    ButtonGroup2_2Layout = new QGridLayout( ButtonGroup2_2->layout() );
    ButtonGroup2_2Layout->setAlignment( Qt::AlignTop );

    DontResize = new QRadioButton( ButtonGroup2_2, "DontResize" );
    DontResize->setChecked( TRUE );

    ButtonGroup2_2Layout->addWidget( DontResize, 0, 0 );

    AutoResize = new QRadioButton( ButtonGroup2_2, "AutoResize" );

    ButtonGroup2_2Layout->addWidget( AutoResize, 0, 1 );

    CustomResize = new QRadioButton( ButtonGroup2_2, "CustomResize" );

    ButtonGroup2_2Layout->addWidget( CustomResize, 0, 2 );

    ResizeTabLayout->addWidget( ButtonGroup2_2, 0, 0 );

    Frame4 = new QFrame( ResizeTab, "Frame4" );
    Frame4->setEnabled( FALSE );
    Frame4->setFrameShape( QFrame::StyledPanel );
    Frame4->setFrameShadow( QFrame::Raised );
    Frame4Layout = new QGridLayout( Frame4, 1, 1, 11, 6, "Frame4Layout"); 
    Spacer2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
    Frame4Layout->addItem( Spacer2, 3, 0 );

    Sizes = new QListView( Frame4, "Sizes" );
    Sizes->addColumn( tr( "Limit" ) );
    Sizes->addColumn( tr( "Initial" ) );
    Sizes->addColumn( tr( "Next" ) );
    Sizes->setAllColumnsShowFocus( TRUE );

    Frame4Layout->addMultiCellWidget( Sizes, 0, 3, 2, 3 );

    Limit = new toFilesize( Frame4, "Limit" );
    Limit->setFocusPolicy( toFilesize::TabFocus );

    Frame4Layout->addMultiCellWidget( Limit, 0, 0, 0, 1 );

    Initial = new toFilesize( Frame4, "Initial" );
    Initial->setFocusPolicy( toFilesize::TabFocus );

    Frame4Layout->addMultiCellWidget( Initial, 1, 1, 0, 1 );

    Next = new toFilesize( Frame4, "Next" );
    Next->setFocusPolicy( toFilesize::TabFocus );

    Frame4Layout->addMultiCellWidget( Next, 2, 2, 0, 1 );

    AddButton = new QPushButton( Frame4, "AddButton" );
    AddButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, AddButton->sizePolicy().hasHeightForWidth() ) );
    AddButton->setDefault( TRUE );

    Frame4Layout->addWidget( AddButton, 4, 1 );

    Remove = new QPushButton( Frame4, "Remove" );
    Remove->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, Remove->sizePolicy().hasHeightForWidth() ) );

    Frame4Layout->addWidget( Remove, 4, 3 );
    Spacer9 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
    Frame4Layout->addItem( Spacer9, 4, 0 );
    Spacer10 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    Frame4Layout->addItem( Spacer10, 4, 2 );

    ResizeTabLayout->addWidget( Frame4, 1, 0 );
    Tabs->insertTab( ResizeTab, QString::fromLatin1("") );

    ResultTab = new QWidget( Tabs, "ResultTab" );
    Tabs->insertTab( ResultTab, QString::fromLatin1("") );

    DifferenceTab = new QWidget( Tabs, "DifferenceTab" );
    Tabs->insertTab( DifferenceTab, QString::fromLatin1("") );

    toScriptUILayout->addWidget( Tabs, 0, 0 );
    languageChange();
    resize( QSize(888, 791).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( CustomResize, SIGNAL( toggled(bool) ), Frame4, SLOT( setEnabled(bool) ) );
    connect( Search, SIGNAL( toggled(bool) ), Schema, SLOT( setDisabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeConstraints, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeIndexes, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeGrants, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeStorage, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeParallell, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeComment, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludeCode, SLOT( setEnabled(bool) ) );
    connect( IncludeDDL, SIGNAL( toggled(bool) ), IncludePartition, SLOT( setEnabled(bool) ) );
    connect( Search, SIGNAL( toggled(bool) ), SearchGroup, SLOT( setEnabled(bool) ) );
    connect( OutputTab, SIGNAL( toggled(bool) ), Filename, SLOT( setDisabled(bool) ) );
    connect( OutputTab, SIGNAL( toggled(bool) ), Browse, SLOT( setDisabled(bool) ) );
    connect( Extract, SIGNAL( toggled(bool) ), OutputDir, SLOT( setEnabled(bool) ) );
    connect( IncludeContent, SIGNAL( toggled(bool) ), CommitDistance, SLOT( setEnabled(bool) ) );

    // tab order
    setTabOrder( Tabs, Compare );
    setTabOrder( Compare, IncludeDDL );
    setTabOrder( IncludeDDL, IncludeConstraints );
    setTabOrder( IncludeConstraints, IncludeIndexes );
    setTabOrder( IncludeIndexes, IncludeGrants );
    setTabOrder( IncludeGrants, IncludeStorage );
    setTabOrder( IncludeStorage, IncludeParallell );
    setTabOrder( IncludeParallell, IncludePartition );
    setTabOrder( IncludePartition, IncludeCode );
    setTabOrder( IncludeCode, IncludeComment );
    setTabOrder( IncludeComment, IncludeContent );
    setTabOrder( IncludeContent, IncludePrompt );
    setTabOrder( IncludePrompt, IncludeHeader );
    setTabOrder( IncludeHeader, Schema );
    setTabOrder( Schema, OutputTab );
    setTabOrder( OutputTab, Filename );
    setTabOrder( Filename, Browse );
    setTabOrder( Browse, AnyWords );
    setTabOrder( AnyWords, SearchWord );
    setTabOrder( SearchWord, SourceConnection );
    setTabOrder( SourceConnection, SourceSchema );
    setTabOrder( SourceSchema, SourceObjects );
    setTabOrder( SourceObjects, DestinationConnection );
    setTabOrder( DestinationConnection, DestinationSchema );
    setTabOrder( DestinationSchema, DestinationObjects );
    setTabOrder( DestinationObjects, OutputFile );
    setTabOrder( OutputFile, DontResize );
    setTabOrder( DontResize, AutoResize );
    setTabOrder( AutoResize, CustomResize );
    setTabOrder( CustomResize, Limit );
    setTabOrder( Limit, Initial );
    setTabOrder( Initial, Next );
    setTabOrder( Next, Sizes );
    setTabOrder( Sizes, AddButton );
    setTabOrder( AddButton, Remove );
    setTabOrder( Remove, ExactMatch );
    setTabOrder( ExactMatch, RegExp );
    setTabOrder( RegExp, Extract );
    setTabOrder( Extract, Migrate );
    setTabOrder( Migrate, AllWords );
    setTabOrder( AllWords, OutputDir );

    // buddies
    TextLabel1_2->setBuddy( DestinationObjects );
    TextLabel1->setBuddy( SourceObjects );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toScriptUI::languageChange()
{
    setCaption( tr( "Form1" ) );
    Destination->setTitle( tr( "&Destination" ) );
    TextLabel2_4->setText( tr( "Connection" ) );
    TextLabel2_2_3->setText( tr( "Schema" ) );
    DestinationSchema->clear();
    DestinationSchema->insertItem( tr( "All" ) );
    DestinationObjects->header()->setLabel( 0, tr( "Objects" ) );
    TextLabel1_2->setText( tr( "&Include objects" ) );
    ModeGroup->setTitle( tr( "&Options" ) );
    Compare->setText( tr( "Compare" ) );
    QToolTip::add( Compare, tr( "Compare two databases or schemas" ) );
    Extract->setText( tr( "Extract" ) );
    QToolTip::add( Extract, tr( "Extract script to recreate database objects." ) );
    IncludeCode->setText( tr( "Include code specification" ) );
    IncludeStorage->setText( tr( "Include storage specification" ) );
    IncludeParallell->setText( tr( "Include parallel specification" ) );
    IncludePartition->setText( tr( "Include partition specification" ) );
    IncludeIndexes->setText( tr( "Include indexes" ) );
    IncludeComment->setText( tr( "Include comments" ) );
    IncludeGrants->setText( tr( "Include grants" ) );
    IncludeConstraints->setText( tr( "Include constraints" ) );
    IncludeDDL->setText( tr( "Include DDL" ) );
    Search->setText( tr( "Search" ) );
    Migrate->setText( tr( "Migrate" ) );
    QToolTip::add( Migrate, tr( "Create database scripts to convert schema or database from source to destination" ) );
    Report->setText( tr( "Report" ) );
    QToolTip::add( Report, tr( "Create database scripts to convert schema or database from source to destination" ) );
    IncludePrompt->setText( tr( "Generate prompts" ) );
    QToolTip::add( IncludePrompt, tr( "Generate prompts to display progress in SQLPlus" ) );
    IncludeHeader->setText( tr( "Generate header" ) );
    QToolTip::add( IncludeHeader, tr( "Generate header at the top of the script" ) );
    Schema->clear();
    Schema->insertItem( tr( "Same" ) );
    Schema->insertItem( tr( "None" ) );
    TextLabel3->setText( tr( "Generated schema" ) );
    QToolTip::add( TextLabel3, tr( "Select the schema to generate in script" ) );
    IncludeContent->setText( tr( "Include content of tables" ) );
    TextLabel1_3->setText( tr( "Commit distance" ) );
    QToolTip::add( TextLabel1_3, tr( "The number of insertstatements to make between each commit (0 means whole table)" ) );
    SearchGroup->setTitle( tr( "&Search" ) );
    AnyWords->setText( tr( "Contain any words" ) );
    AllWords->setText( tr( "Contain all words" ) );
    RegExp->setText( tr( "RegExp" ) );
    ExactMatch->setText( tr( "Exact match" ) );
    GroupBox2->setTitle( tr( "&Source" ) );
    TextLabel2->setText( tr( "Connection" ) );
    TextLabel2_2->setText( tr( "Schema" ) );
    SourceSchema->clear();
    SourceSchema->insertItem( tr( "All" ) );
    SourceObjects->header()->setLabel( 0, tr( "Objects" ) );
    TextLabel1->setText( tr( "&Include objects" ) );
    OutputGroup->setTitle( tr( "Output" ) );
    OutputTab->setText( tr( "Output tab" ) );
    OutputDir->setText( tr( "Output dir" ) );
    QToolTip::add( OutputDir, tr( "Output to directory so that each object is placed in a different file." ) );
    OutputFile->setText( tr( "Output file" ) );
    Browse->setText( tr( "Browse" ) );
    Tabs->changeTab( tab, tr( "Configuration" ) );
    ButtonGroup2_2->setTitle( tr( "Script Resize" ) );
    DontResize->setText( tr( "Don't resize" ) );
    AutoResize->setText( tr( "Auto resize" ) );
    CustomResize->setText( tr( "Custom resize" ) );
    Sizes->header()->setLabel( 0, tr( "Limit" ) );
    Sizes->header()->setLabel( 1, tr( "Initial" ) );
    Sizes->header()->setLabel( 2, tr( "Next" ) );
    AddButton->setText( tr( "&Add" ) );
    Remove->setText( tr( "&Remove" ) );
    Tabs->changeTab( ResizeTab, tr( "Resize" ) );
    Tabs->changeTab( ResultTab, tr( "Result" ) );
    Tabs->changeTab( DifferenceTab, tr( "Difference" ) );
}

