/**************************************************************************** ** Form implementation generated from reading ui file 'torollbackdialogui.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 "torollbackdialogui.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include static const char* const image0_data[] = { "16 16 14 1", ". c None", "# c #000000", "i c #181841", "e c #20205a", "k c #202462", "c c #292873", "l c #292c7b", "h c #313083", "b c #393cac", "d c #4140b4", "f c #4a4ccd", "j c #5a59f6", "g c #5a5df6", "a c #5a5dff", "................", ".###..###..##...", "#..#.#..#..#....", "##...#...#.#....", "..#..#####.#....", "...#.#aab#.#....", "#..##cdaef##..#.", ".##.#ghiha#####.", "....#aajkl#.....", ".....#aaa#......", "......#####.....", ".........###....", "..........###...", "...........##...", "................", "................"}; /* * Constructs a toRollbackDialogUI as a child of 'parent', with the * name 'name' and widget flags set to 'f'. * * The dialog will by default be modeless, unless you set 'modal' to * TRUE to construct a modal dialog. */ toRollbackDialogUI::toRollbackDialogUI( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ), image0( (const char **) image0_data ) { if ( !name ) setName( "toRollbackDialogUI" ); toRollbackDialogUILayout = new QGridLayout( this, 1, 1, 11, 6, "toRollbackDialogUILayout"); ToolButton1 = new QToolButton( this, "ToolButton1" ); ToolButton1->setPixmap( image0 ); toRollbackDialogUILayout->addWidget( ToolButton1, 3, 2 ); DialogTabs = new QTabWidget( this, "DialogTabs" ); DefaultPage = new QWidget( DialogTabs, "DefaultPage" ); DefaultPageLayout = new QGridLayout( DefaultPage, 1, 1, 11, 6, "DefaultPageLayout"); Public = new QCheckBox( DefaultPage, "Public" ); Public->setChecked( TRUE ); DefaultPageLayout->addWidget( Public, 4, 0 ); TextLabel1 = new QLabel( DefaultPage, "TextLabel1" ); DefaultPageLayout->addWidget( TextLabel1, 0, 0 ); Tablespace = new QComboBox( FALSE, DefaultPage, "Tablespace" ); DefaultPageLayout->addWidget( Tablespace, 3, 0 ); Name = new QLineEdit( DefaultPage, "Name" ); DefaultPageLayout->addWidget( Name, 1, 0 ); TextLabel2 = new QLabel( DefaultPage, "TextLabel2" ); DefaultPageLayout->addWidget( TextLabel2, 2, 0 ); Spacer3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); DefaultPageLayout->addItem( Spacer3, 5, 0 ); DialogTabs->insertTab( DefaultPage, QString::fromLatin1("") ); toRollbackDialogUILayout->addMultiCellWidget( DialogTabs, 0, 3, 0, 0 ); OkButton = new QPushButton( this, "OkButton" ); OkButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, OkButton->sizePolicy().hasHeightForWidth() ) ); OkButton->setDefault( TRUE ); toRollbackDialogUILayout->addMultiCellWidget( OkButton, 0, 0, 1, 2 ); PushButton2 = new QPushButton( this, "PushButton2" ); PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)4, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) ); toRollbackDialogUILayout->addMultiCellWidget( PushButton2, 1, 1, 1, 2 ); Spacer2 = new QSpacerItem( 71, 20, QSizePolicy::Maximum, QSizePolicy::Minimum ); toRollbackDialogUILayout->addItem( Spacer2, 3, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); toRollbackDialogUILayout->addItem( Spacer1, 2, 2 ); languageChange(); resize( QSize(556, 480).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( OkButton, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( PushButton2, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( ToolButton1, SIGNAL( clicked() ), this, SLOT( displaySQL(void) ) ); connect( Name, SIGNAL( textChanged(const QString&) ), this, SLOT( valueChanged(const QString &) ) ); // tab order setTabOrder( DialogTabs, OkButton ); setTabOrder( OkButton, PushButton2 ); // buddies TextLabel1->setBuddy( Name ); TextLabel2->setBuddy( Tablespace ); } /* * Destroys the object and frees any allocated resources */ toRollbackDialogUI::~toRollbackDialogUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toRollbackDialogUI::languageChange() { setCaption( tr( "Modify tablespace" ) ); ToolButton1->setText( QString::null ); QToolTip::add( ToolButton1, tr( "Display the SQL used to generate the specified object" ) ); Public->setText( tr( "&Public" ) ); QToolTip::add( Public, tr( "If this should be a publicly available rollback segment" ) ); TextLabel1->setText( tr( "&Name" ) ); TextLabel2->setText( tr( "&Tablespace" ) ); DialogTabs->changeTab( DefaultPage, tr( "Rollback Segment" ) ); OkButton->setText( tr( "&Ok" ) ); PushButton2->setText( tr( "Cancel" ) ); } void toRollbackDialogUI::displaySQL() { qWarning( "toRollbackDialogUI::displaySQL(): Not implemented yet" ); } void toRollbackDialogUI::valueChanged(const QString&) { qWarning( "toRollbackDialogUI::valueChanged(const QString&): Not implemented yet" ); }