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 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
|
/****************************************************************************
** Form implementation generated from reading ui file 'torollbackdialogui.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 "torollbackdialogui.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qtoolbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qcombobox.h>
#include <qlineedit.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 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" );
}
|