/****************************************************************************
** Form implementation generated from reading ui file 'todroptablespaceui.ui'
**
** Created: Tue Sep 18 08:21:30 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 "todroptablespaceui.h"

#include <qvariant.h>
#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a toDropTablespaceUI as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
toDropTablespaceUI::toDropTablespaceUI( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "toDropTablespaceUI" );

    buttonGroup3 = new QButtonGroup( this, "buttonGroup3" );
    buttonGroup3->setGeometry( QRect( 10, 10, 410, 110 ) );

    CascadeCheck = new QCheckBox( buttonGroup3, "CascadeCheck" );
    CascadeCheck->setEnabled( FALSE );
    CascadeCheck->setGeometry( QRect( 40, 50, 340, 20 ) );

    dataFileCheck = new QCheckBox( buttonGroup3, "dataFileCheck" );
    dataFileCheck->setEnabled( FALSE );
    dataFileCheck->setGeometry( QRect( 40, 80, 150, 20 ) );

    IncludingObjectsCheck = new QCheckBox( buttonGroup3, "IncludingObjectsCheck" );
    IncludingObjectsCheck->setGeometry( QRect( 10, 20, 220, 20 ) );
    IncludingObjectsCheck->setChecked( FALSE );
    languageChange();
    resize( QSize(436, 133).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( IncludingObjectsCheck, SIGNAL( toggled(bool) ), CascadeCheck, SLOT( setEnabled(bool) ) );
    connect( IncludingObjectsCheck, SIGNAL( toggled(bool) ), dataFileCheck, SLOT( setEnabled(bool) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toDropTablespaceUI::languageChange()
{
    setCaption( tr( "Form1" ) );
    buttonGroup3->setTitle( tr( "Options" ) );
    CascadeCheck->setText( tr( "even if there is some forerign key referencing them" ) );
    dataFileCheck->setText( tr( "Delete datafiles" ) );
    IncludingObjectsCheck->setText( tr( "Drop even if it contains objects" ) );
}

