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 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307
|
/****************************************************************************
** Form implementation generated from reading ui file 'tobrowsertableui.ui'
**
** Created: Mon Feb 20 12:46:38 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 "tobrowsertableui.h"
#include <qvariant.h>
#include <qscrollview.h>
#include <qpushbutton.h>
#include <qtoolbutton.h>
#include <qtabwidget.h>
#include <qwidget.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qcombobox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>
#include "toresultcombo.h"
#include "tohighlightedtext.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#......",
"......#####.....",
".........###....",
"..........###...",
"...........##...",
"................",
"................"};
static const char* const image1_data[] = {
"16 16 3 1",
". c None",
"# c #000000",
"a c #00ff00",
"..........###...",
"..........#a#...",
"..........#a#...",
".......####a####",
".......#aaaaaaa#",
".......####a####",
"..........#a#...",
"..........#a#...",
"..........###...",
"................",
"................",
"................",
"................",
"................",
"................",
"................"};
static const char* const image2_data[] = {
"16 16 3 1",
". c None",
"# c #000000",
"a c #ff0000",
"................",
"................",
"................",
".......#########",
".......#aaaaaaa#",
".......#########",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................",
"................"};
/*
* Constructs a toBrowserTableUI 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.
*/
toBrowserTableUI::toBrowserTableUI( QWidget* parent, const char* name, bool modal, WFlags fl )
: QDialog( parent, name, modal, fl ),
image0( (const char **) image0_data ),
image1( (const char **) image1_data ),
image2( (const char **) image2_data )
{
if ( !name )
setName( "toBrowserTableUI" );
toBrowserTableUILayout = new QGridLayout( this, 1, 1, 11, 6, "toBrowserTableUILayout");
PushButton1 = new QPushButton( this, "PushButton1" );
PushButton1->setDefault( TRUE );
toBrowserTableUILayout->addWidget( PushButton1, 1, 2 );
PushButton2 = new QPushButton( this, "PushButton2" );
toBrowserTableUILayout->addWidget( PushButton2, 1, 3 );
ToolButton1 = new QToolButton( this, "ToolButton1" );
ToolButton1->setFocusPolicy( QToolButton::StrongFocus );
ToolButton1->setPixmap( image0 );
toBrowserTableUILayout->addWidget( ToolButton1, 1, 0 );
Spacer1 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
toBrowserTableUILayout->addItem( Spacer1, 1, 1 );
Tabs = new QTabWidget( this, "Tabs" );
tab = new QWidget( Tabs, "tab" );
tabLayout = new QVBoxLayout( tab, 11, 6, "tabLayout");
SchemaLabel = new QLabel( tab, "SchemaLabel" );
tabLayout->addWidget( SchemaLabel );
Schema = new toResultCombo( tab, "Schema" );
tabLayout->addWidget( Schema );
TextLabel1 = new QLabel( tab, "TextLabel1" );
tabLayout->addWidget( TextLabel1 );
Name = new QLineEdit( tab, "Name" );
tabLayout->addWidget( Name );
TextLabel1_3 = new QLabel( tab, "TextLabel1_3" );
tabLayout->addWidget( TextLabel1_3 );
Comment = new QLineEdit( tab, "Comment" );
tabLayout->addWidget( Comment );
TablespaceLabel = new QLabel( tab, "TablespaceLabel" );
tabLayout->addWidget( TablespaceLabel );
Tablespace = new QComboBox( FALSE, tab, "Tablespace" );
tabLayout->addWidget( Tablespace );
TextLabel1_3_2 = new QLabel( tab, "TextLabel1_3_2" );
tabLayout->addWidget( TextLabel1_3_2 );
ExtraDeclarations = new toHighlightedText( tab, "ExtraDeclarations" );
ExtraDeclarations->setFocusPolicy( toHighlightedText::WheelFocus );
tabLayout->addWidget( ExtraDeclarations );
TextLabel1_3_2_2 = new QLabel( tab, "TextLabel1_3_2_2" );
tabLayout->addWidget( TextLabel1_3_2_2 );
StorageDeclarations = new toHighlightedText( tab, "StorageDeclarations" );
StorageDeclarations->setFocusPolicy( toHighlightedText::WheelFocus );
tabLayout->addWidget( StorageDeclarations );
ParallelLabel = new QLabel( tab, "ParallelLabel" );
tabLayout->addWidget( ParallelLabel );
ParallelDeclarations = new toHighlightedText( tab, "ParallelDeclarations" );
ParallelDeclarations->setFocusPolicy( toHighlightedText::WheelFocus );
tabLayout->addWidget( ParallelDeclarations );
Tabs->insertTab( tab, QString::fromLatin1("") );
ColumnTab = new QWidget( Tabs, "ColumnTab" );
ColumnTabLayout = new QGridLayout( ColumnTab, 1, 1, 11, 6, "ColumnTabLayout");
ColumnList = new QScrollView( ColumnTab, "ColumnList" );
ColumnList->setFocusPolicy( QScrollView::StrongFocus );
ColumnTabLayout->addMultiCellWidget( ColumnList, 1, 1, 0, 3 );
AddColumn = new QToolButton( ColumnTab, "AddColumn" );
AddColumn->setFocusPolicy( QToolButton::TabFocus );
AddColumn->setPixmap( image1 );
ColumnTabLayout->addWidget( AddColumn, 0, 2 );
RemoveColumn = new QToolButton( ColumnTab, "RemoveColumn" );
RemoveColumn->setFocusPolicy( QToolButton::TabFocus );
RemoveColumn->setPixmap( image2 );
ColumnTabLayout->addWidget( RemoveColumn, 0, 3 );
spacer3 = new QSpacerItem( 340, 21, QSizePolicy::Expanding, QSizePolicy::Minimum );
ColumnTabLayout->addItem( spacer3, 0, 1 );
CustomDeclarations = new QCheckBox( ColumnTab, "CustomDeclarations" );
ColumnTabLayout->addWidget( CustomDeclarations, 0, 0 );
Tabs->insertTab( ColumnTab, QString::fromLatin1("") );
toBrowserTableUILayout->addMultiCellWidget( Tabs, 0, 0, 0, 3 );
languageChange();
resize( QSize(651, 561).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
connect( PushButton2, SIGNAL( clicked() ), this, SLOT( reject() ) );
connect( ToolButton1, SIGNAL( clicked() ), this, SLOT( displaySQL() ) );
connect( AddColumn, SIGNAL( clicked() ), this, SLOT( addColumn() ) );
connect( RemoveColumn, SIGNAL( clicked() ), this, SLOT( removeColumn() ) );
connect( CustomDeclarations, SIGNAL( toggled(bool) ), this, SLOT( toggleCustom(bool) ) );
// tab order
setTabOrder( Tabs, Name );
setTabOrder( Name, Comment );
setTabOrder( Comment, Tablespace );
setTabOrder( Tablespace, ExtraDeclarations );
setTabOrder( ExtraDeclarations, ToolButton1 );
setTabOrder( ToolButton1, PushButton1 );
setTabOrder( PushButton1, PushButton2 );
setTabOrder( PushButton2, AddColumn );
setTabOrder( AddColumn, RemoveColumn );
setTabOrder( RemoveColumn, ColumnList );
// buddies
SchemaLabel->setBuddy( Name );
TextLabel1->setBuddy( Name );
TextLabel1_3->setBuddy( Comment );
TablespaceLabel->setBuddy( Tablespace );
TextLabel1_3_2->setBuddy( ExtraDeclarations );
TextLabel1_3_2_2->setBuddy( StorageDeclarations );
ParallelLabel->setBuddy( ParallelDeclarations );
}
/*
* Destroys the object and frees any allocated resources
*/
toBrowserTableUI::~toBrowserTableUI()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void toBrowserTableUI::languageChange()
{
setCaption( tr( "Table columns" ) );
PushButton1->setText( tr( "&Ok" ) );
PushButton2->setText( tr( "Cancel" ) );
ToolButton1->setText( QString::null );
QToolTip::add( ToolButton1, tr( "Display SQL to create this constraint" ) );
SchemaLabel->setText( tr( "&Schema" ) );
TextLabel1->setText( tr( "&Name" ) );
TextLabel1_3->setText( tr( "C&omment" ) );
TablespaceLabel->setText( tr( "&Tablespace" ) );
TextLabel1_3_2->setText( tr( "&Extra declarations" ) );
TextLabel1_3_2_2->setText( tr( "&Storage declarations" ) );
ParallelLabel->setText( tr( "&Parallel declarations" ) );
Tabs->changeTab( tab, tr( "&General" ) );
AddColumn->setText( QString::null );
RemoveColumn->setText( QString::null );
CustomDeclarations->setText( tr( "Custom column declarations" ) );
Tabs->changeTab( ColumnTab, tr( "&Columns" ) );
}
void toBrowserTableUI::displaySQL()
{
qWarning( "toBrowserTableUI::displaySQL(): Not implemented yet" );
}
void toBrowserTableUI::addColumn()
{
qWarning( "toBrowserTableUI::addColumn(): Not implemented yet" );
}
void toBrowserTableUI::removeColumn()
{
qWarning( "toBrowserTableUI::removeColumn(): Not implemented yet" );
}
void toBrowserTableUI::toggleCustom(bool)
{
qWarning( "toBrowserTableUI::toggleCustom(bool): Not implemented yet" );
}
|