/**************************************************************************** ** Form implementation generated from reading ui file 'tostoragedefinitionui.ui' ** ** Created: Mon Feb 20 12:46:41 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 "tostoragedefinitionui.h" #include #include #include #include #include #include #include #include #include #include #include "tofilesize.h" /* * Constructs a toStorageDefinitionUI as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ toStorageDefinitionUI::toStorageDefinitionUI( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "toStorageDefinitionUI" ); toStorageDefinitionUILayout = new QGridLayout( this, 1, 1, 11, 6, "toStorageDefinitionUILayout"); InitialSize = new toFilesize( this, "InitialSize" ); toStorageDefinitionUILayout->addMultiCellWidget( InitialSize, 0, 0, 0, 1 ); GroupBox1 = new QGroupBox( this, "GroupBox1" ); GroupBox1->setColumnLayout(0, Qt::Vertical ); GroupBox1->layout()->setSpacing( 6 ); GroupBox1->layout()->setMargin( 11 ); GroupBox1Layout = new QGridLayout( GroupBox1->layout() ); GroupBox1Layout->setAlignment( Qt::AlignTop ); Line1 = new QFrame( GroupBox1, "Line1" ); Line1->setFrameStyle( QFrame::VLine | QFrame::Sunken ); GroupBox1Layout->addMultiCellWidget( Line1, 0, 2, 1, 1 ); InitialExtent = new QSpinBox( GroupBox1, "InitialExtent" ); InitialExtent->setMaxValue( 2147483647 ); InitialExtent->setMinValue( 1 ); InitialExtent->setValue( 1 ); GroupBox1Layout->addWidget( InitialExtent, 2, 0 ); MaximumExtent = new QSpinBox( GroupBox1, "MaximumExtent" ); MaximumExtent->setEnabled( FALSE ); MaximumExtent->setMaxValue( 2147483647 ); MaximumExtent->setMinValue( 1 ); MaximumExtent->setValue( 1 ); GroupBox1Layout->addWidget( MaximumExtent, 2, 2 ); TextLabel1 = new QLabel( GroupBox1, "TextLabel1" ); GroupBox1Layout->addWidget( TextLabel1, 1, 2 ); TextLabel2 = new QLabel( GroupBox1, "TextLabel2" ); GroupBox1Layout->addWidget( TextLabel2, 1, 0 ); UnlimitedExtent = new QCheckBox( GroupBox1, "UnlimitedExtent" ); UnlimitedExtent->setChecked( TRUE ); GroupBox1Layout->addWidget( UnlimitedExtent, 0, 2 ); toStorageDefinitionUILayout->addMultiCellWidget( GroupBox1, 2, 2, 0, 1 ); NextSize = new toFilesize( this, "NextSize" ); toStorageDefinitionUILayout->addMultiCellWidget( NextSize, 1, 1, 0, 1 ); Optimal = new QGroupBox( this, "Optimal" ); Optimal->setColumnLayout(0, Qt::Vertical ); Optimal->layout()->setSpacing( 6 ); Optimal->layout()->setMargin( 11 ); OptimalLayout = new QGridLayout( Optimal->layout() ); OptimalLayout->setAlignment( Qt::AlignTop ); OptimalNull = new QCheckBox( Optimal, "OptimalNull" ); OptimalNull->setChecked( TRUE ); OptimalLayout->addWidget( OptimalNull, 0, 0 ); OptimalSize = new toFilesize( Optimal, "OptimalSize" ); OptimalLayout->addWidget( OptimalSize, 1, 0 ); toStorageDefinitionUILayout->addMultiCellWidget( Optimal, 3, 3, 0, 1 ); TextLabel3 = new QLabel( this, "TextLabel3" ); toStorageDefinitionUILayout->addWidget( TextLabel3, 4, 0 ); PCTIncrease = new QSpinBox( this, "PCTIncrease" ); PCTIncrease->setMaxValue( 1000 ); PCTIncrease->setLineStep( 10 ); toStorageDefinitionUILayout->addWidget( PCTIncrease, 4, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); toStorageDefinitionUILayout->addMultiCell( Spacer1, 5, 5, 0, 1 ); languageChange(); resize( QSize(596, 480).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( UnlimitedExtent, SIGNAL( toggled(bool) ), MaximumExtent, SLOT( setDisabled(bool) ) ); connect( OptimalNull, SIGNAL( toggled(bool) ), OptimalSize, SLOT( setDisabled(bool) ) ); // buddies TextLabel1->setBuddy( MaximumExtent ); TextLabel2->setBuddy( InitialSize ); TextLabel3->setBuddy( PCTIncrease ); } /* * Destroys the object and frees any allocated resources */ toStorageDefinitionUI::~toStorageDefinitionUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toStorageDefinitionUI::languageChange() { setCaption( tr( "Form1" ) ); QToolTip::add( this, tr( "Optimal allocation of extents. Will free unused extents down to specified value" ) ); GroupBox1->setTitle( tr( "&Extents" ) ); TextLabel1->setText( tr( "&Maximum extents" ) ); QToolTip::add( TextLabel1, tr( "Maximum number of extents to allocate for an object" ) ); TextLabel2->setText( tr( "&Initial size" ) ); QToolTip::add( TextLabel2, tr( "Number of extents to initially allocate" ) ); UnlimitedExtent->setText( tr( "&Unlimited extents" ) ); QToolTip::add( UnlimitedExtent, tr( "No limit to the number of extents to allocate if needed" ) ); Optimal->setTitle( tr( "&Optimal size" ) ); OptimalNull->setText( tr( "&No optimal size" ) ); TextLabel3->setText( tr( "&Default PCT increase" ) ); QToolTip::add( TextLabel3, tr( "Default increase in size of next allocated extent. A size of 0 will prevent background coalesce of free space" ) ); }