1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137
|
/****************************************************************************
** Form implementation generated from reading ui file 'tostoragedialogui.ui'
**
** Created by: The User Interface Compiler ($Id: qt/main.cpp 3.3.6 edited Aug 31 2005 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/
#include "tostoragedialogui.h"
#include <qvariant.h>
#include <qtoolbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
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" );
}
|