/**************************************************************************** ** Form implementation generated from reading ui file 'tostoragedialogui.ui' ** ** Created: Mon Feb 20 12:46:42 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 "tostoragedialogui.h" #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 toStorageDialogUI 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. */ toStorageDialogUI::toStorageDialogUI( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ), image0( (const char **) image0_data ) { if ( !name ) setName( "toStorageDialogUI" ); toStorageDialogUILayout = new QGridLayout( this, 1, 1, 11, 6, "toStorageDialogUILayout"); ToolButton1 = new QToolButton( this, "ToolButton1" ); ToolButton1->setPixmap( image0 ); toStorageDialogUILayout->addWidget( ToolButton1, 3, 2 ); DialogTab = new QTabWidget( this, "DialogTab" ); DefaultPage = new QWidget( DialogTab, "DefaultPage" ); DialogTab->insertTab( DefaultPage, QString::fromLatin1("") ); toStorageDialogUILayout->addMultiCellWidget( DialogTab, 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 ); toStorageDialogUILayout->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() ) ); toStorageDialogUILayout->addMultiCellWidget( PushButton2, 1, 1, 1, 2 ); Spacer2 = new QSpacerItem( 71, 20, QSizePolicy::Maximum, QSizePolicy::Minimum ); toStorageDialogUILayout->addItem( Spacer2, 3, 1 ); Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); toStorageDialogUILayout->addItem( Spacer1, 2, 2 ); languageChange(); resize( QSize(576, 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) ) ); // tab order setTabOrder( DialogTab, OkButton ); setTabOrder( OkButton, PushButton2 ); } /* * Destroys the object and frees any allocated resources */ toStorageDialogUI::~toStorageDialogUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toStorageDialogUI::languageChange() { setCaption( tr( "Modify tablespace" ) ); ToolButton1->setText( QString::null ); QToolTip::add( ToolButton1, tr( "Display the SQL used to generate the specified object" ) ); DialogTab->changeTab( DefaultPage, tr( "Tab 2" ) ); OkButton->setText( tr( "&Ok" ) ); PushButton2->setText( tr( "Cancel" ) ); } void toStorageDialogUI::displaySQL() { qWarning( "toStorageDialogUI::displaySQL(): Not implemented yet" ); }