/**************************************************************************** ** Form implementation generated from reading ui file 'tostoragedatafileui.ui' ** ** Created: Mon Feb 20 12:46:40 2006 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.4 edited Nov 24 2003 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "tostoragedatafileui.h" #include #include #include #include #include #include #include #include #include #include "tofilesize.h" /* * Constructs a toStorageDatafileUI as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ toStorageDatafileUI::toStorageDatafileUI( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "toStorageDatafileUI" ); toStorageDatafileUILayout = new QGridLayout( this, 1, 1, 11, 6, "toStorageDatafileUILayout"); NameLabel = new QLabel( this, "NameLabel" ); toStorageDatafileUILayout->addMultiCellWidget( NameLabel, 0, 0, 0, 2 ); Name = new QLineEdit( this, "Name" ); toStorageDatafileUILayout->addMultiCellWidget( Name, 1, 1, 0, 2 ); TextLabel1_2 = new QLabel( this, "TextLabel1_2" ); toStorageDatafileUILayout->addWidget( TextLabel1_2, 2, 0 ); PushButton1 = new QPushButton( this, "PushButton1" ); toStorageDatafileUILayout->addWidget( PushButton1, 3, 2 ); Filename = new QLineEdit( this, "Filename" ); toStorageDatafileUILayout->addWidget( Filename, 3, 0 ); InitialSize = new toFilesize( this, "InitialSize" ); toStorageDatafileUILayout->addMultiCellWidget( InitialSize, 4, 4, 0, 2 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); toStorageDatafileUILayout->addItem( Spacer1, 7, 1 ); AutoExtendGroup = new QGroupBox( this, "AutoExtendGroup" ); AutoExtendGroup->setColumnLayout(0, Qt::Vertical ); AutoExtendGroup->layout()->setSpacing( 6 ); AutoExtendGroup->layout()->setMargin( 11 ); AutoExtendGroupLayout = new QGridLayout( AutoExtendGroup->layout() ); AutoExtendGroupLayout->setAlignment( Qt::AlignTop ); AutoExtend = new QCheckBox( AutoExtendGroup, "AutoExtend" ); AutoExtendGroupLayout->addWidget( AutoExtend, 0, 0 ); UnlimitedMax = new QCheckBox( AutoExtendGroup, "UnlimitedMax" ); UnlimitedMax->setEnabled( FALSE ); AutoExtendGroupLayout->addWidget( UnlimitedMax, 2, 0 ); MaximumSize = new toFilesize( AutoExtendGroup, "MaximumSize" ); MaximumSize->setEnabled( FALSE ); AutoExtendGroupLayout->addWidget( MaximumSize, 3, 0 ); NextSize = new toFilesize( AutoExtendGroup, "NextSize" ); NextSize->setEnabled( FALSE ); AutoExtendGroupLayout->addWidget( NextSize, 1, 0 ); toStorageDatafileUILayout->addMultiCellWidget( AutoExtendGroup, 6, 6, 0, 2 ); languageChange(); resize( QSize(580, 480).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( AutoExtend, SIGNAL( toggled(bool) ), this, SLOT( autoExtend(bool) ) ); connect( UnlimitedMax, SIGNAL( toggled(bool) ), this, SLOT( maximumSize(bool) ) ); connect( PushButton1, SIGNAL( clicked() ), this, SLOT( browseFile() ) ); connect( Filename, SIGNAL( textChanged(const QString&) ), this, SLOT( valueChanged(const QString &) ) ); // buddies NameLabel->setBuddy( Name ); TextLabel1_2->setBuddy( Name ); } /* * Destroys the object and frees any allocated resources */ toStorageDatafileUI::~toStorageDatafileUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toStorageDatafileUI::languageChange() { setCaption( tr( "Form1" ) ); NameLabel->setText( tr( "&Tablespace name" ) ); TextLabel1_2->setText( tr( "&Filename" ) ); PushButton1->setText( tr( "&Browse" ) ); AutoExtendGroup->setTitle( tr( "Auto extend" ) ); AutoExtend->setText( tr( "&Auto extend datafile" ) ); UnlimitedMax->setText( tr( "&Unlimited max size" ) ); } void toStorageDatafileUI::browseFile() { qWarning( "toStorageDatafileUI::browseFile(): Not implemented yet" ); } void toStorageDatafileUI::autoExtend(bool) { qWarning( "toStorageDatafileUI::autoExtend(bool): Not implemented yet" ); } void toStorageDatafileUI::maximumSize(bool) { qWarning( "toStorageDatafileUI::maximumSize(bool): Not implemented yet" ); } void toStorageDatafileUI::valueChanged(const QString&) { qWarning( "toStorageDatafileUI::valueChanged(const QString&): Not implemented yet" ); }