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
|
/****************************************************************************
** Form implementation generated from reading ui file 'toworksheetsetupui.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 "toworksheetsetupui.h"
#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlineedit.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
/*
* Constructs a toWorksheetSetupUI as a child of 'parent', with the
* name 'name' and widget flags set to 'f'.
*/
toWorksheetSetupUI::toWorksheetSetupUI( QWidget* parent, const char* name, WFlags fl )
: QWidget( parent, name, fl )
{
if ( !name )
setName( "toWorksheetSetupUI" );
toWorksheetSetupUILayout = new QGridLayout( this, 1, 1, 0, 6, "toWorksheetSetupUILayout");
GroupBox1 = new QGroupBox( this, "GroupBox1" );
GroupBox1->setColumnLayout(0, Qt::Vertical );
GroupBox1->layout()->setSpacing( 6 );
GroupBox1->layout()->setMargin( 11 );
GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
GroupBox1Layout->setAlignment( Qt::AlignTop );
AutoSave = new QCheckBox( GroupBox1, "AutoSave" );
GroupBox1Layout->addMultiCellWidget( AutoSave, 0, 0, 0, 2 );
CheckSave = new QCheckBox( GroupBox1, "CheckSave" );
GroupBox1Layout->addMultiCellWidget( CheckSave, 1, 1, 0, 2 );
LogAtEnd = new QCheckBox( GroupBox1, "LogAtEnd" );
GroupBox1Layout->addMultiCellWidget( LogAtEnd, 2, 2, 0, 2 );
LogMulti = new QCheckBox( GroupBox1, "LogMulti" );
GroupBox1Layout->addMultiCellWidget( LogMulti, 3, 3, 0, 2 );
Statistics = new QCheckBox( GroupBox1, "Statistics" );
GroupBox1Layout->addMultiCellWidget( Statistics, 4, 4, 0, 2 );
TimedStatistics = new QCheckBox( GroupBox1, "TimedStatistics" );
GroupBox1Layout->addMultiCellWidget( TimedStatistics, 5, 5, 0, 2 );
DisplayNumber = new QCheckBox( GroupBox1, "DisplayNumber" );
GroupBox1Layout->addMultiCellWidget( DisplayNumber, 6, 6, 0, 2 );
MoveToError = new QCheckBox( GroupBox1, "MoveToError" );
GroupBox1Layout->addMultiCellWidget( MoveToError, 7, 7, 0, 2 );
History = new QCheckBox( GroupBox1, "History" );
GroupBox1Layout->addMultiCellWidget( History, 8, 8, 0, 2 );
DefaultFile = new QLineEdit( GroupBox1, "DefaultFile" );
DefaultFile->setFrameShape( QLineEdit::LineEditPanel );
DefaultFile->setFrameShadow( QLineEdit::Sunken );
GroupBox1Layout->addWidget( DefaultFile, 11, 1 );
FileChoose = new QPushButton( GroupBox1, "FileChoose" );
GroupBox1Layout->addWidget( FileChoose, 11, 2 );
TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
GroupBox1Layout->addWidget( TextLabel1, 11, 0 );
Spacer1 = new QSpacerItem( 20, 160, QSizePolicy::Minimum, QSizePolicy::Expanding );
GroupBox1Layout->addItem( Spacer1, 12, 1 );
ExecLog = new QCheckBox( GroupBox1, "ExecLog" );
GroupBox1Layout->addMultiCellWidget( ExecLog, 9, 9, 0, 2 );
ToplevelDescribe = new QCheckBox( GroupBox1, "ToplevelDescribe" );
GroupBox1Layout->addMultiCellWidget( ToplevelDescribe, 10, 10, 0, 2 );
toWorksheetSetupUILayout->addWidget( GroupBox1, 0, 0 );
languageChange();
resize( QSize(568, 480).expandedTo(minimumSizeHint()) );
clearWState( WState_Polished );
// signals and slots connections
connect( FileChoose, SIGNAL( clicked() ), this, SLOT( chooseFile() ) );
connect( History, SIGNAL( toggled(bool) ), ExecLog, SLOT( setEnabled(bool) ) );
// tab order
setTabOrder( AutoSave, CheckSave );
setTabOrder( CheckSave, LogAtEnd );
setTabOrder( LogAtEnd, LogMulti );
setTabOrder( LogMulti, Statistics );
setTabOrder( Statistics, TimedStatistics );
setTabOrder( TimedStatistics, DisplayNumber );
setTabOrder( DisplayNumber, History );
setTabOrder( History, ExecLog );
setTabOrder( ExecLog, DefaultFile );
setTabOrder( DefaultFile, FileChoose );
// buddies
TextLabel1->setBuddy( DefaultFile );
}
/*
* Destroys the object and frees any allocated resources
*/
toWorksheetSetupUI::~toWorksheetSetupUI()
{
// no need to delete child widgets, Qt does it all for us
}
/*
* Sets the strings of the subwidgets using the current
* language.
*/
void toWorksheetSetupUI::languageChange()
{
setCaption( tr( "Form1" ) );
QToolTip::add( this, tr( "Automatically save file when closing editor (Without asking any questions)." ) );
GroupBox1->setTitle( tr( "SQL Editor" ) );
AutoSave->setText( tr( "Auto &save" ) );
CheckSave->setText( tr( "Ask about saving &changes" ) );
QToolTip::add( CheckSave, tr( "Ask about saving changes when closing worksheet." ) );
LogAtEnd->setText( tr( "Add &log entries at end" ) );
QToolTip::add( LogAtEnd, tr( "Add newly executed queries at end of log instead of top. Changing this will mess up the log in the windows that are opened." ) );
LogMulti->setText( tr( "&Multiple lines in log." ) );
QToolTip::add( LogMulti, tr( "Display multiple lines in the SQL column of the logging." ) );
Statistics->setText( tr( "&Enable statistics" ) );
QToolTip::add( Statistics, tr( "Enable statistic collection per default." ) );
TimedStatistics->setText( tr( "Enable &timed statistics" ) );
QToolTip::add( TimedStatistics, tr( "Enable timed statistics as well when collecting normal statistics." ) );
DisplayNumber->setText( tr( "&Display number column" ) );
QToolTip::add( DisplayNumber, tr( "Add a numbering column to the left of the result." ) );
MoveToError->setText( tr( "Move &cursor to error" ) );
QToolTip::add( MoveToError, tr( "Move the cursor to an error if the error occurs." ) );
History->setText( tr( "Save previous results" ) );
QToolTip::add( History, tr( "Keep previous results in while editor is open. Will consume lot of memory." ) );
FileChoose->setText( tr( "&Browse" ) );
TextLabel1->setText( tr( "Default &file" ) );
QToolTip::add( TextLabel1, tr( "File to automatically open in a new editor." ) );
ExecLog->setText( tr( "Execute directly when selecting in log" ) );
QToolTip::add( ExecLog, tr( "Execute a statement when it is\n"
" selected in the log, if disabled simply selected\n"
" the statement in the log." ) );
ToplevelDescribe->setText( tr( "Display column descriptions in own toplevel window." ) );
QToolTip::add( ToplevelDescribe, tr( "Execute a statement when it is\n"
" selected in the log, if disabled simply selected\n"
" the statement in the log." ) );
}
void toWorksheetSetupUI::chooseFile()
{
qWarning( "toWorksheetSetupUI::chooseFile(): Not implemented yet" );
}
|