/**************************************************************************** ** Form implementation generated from reading ui file 'toeditextensionsetupui.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 "toeditextensionsetupui.h" #include #include #include #include #include #include #include #include "tohighlightedtext.h" /* * Constructs a toEditExtensionSetupUI as a child of 'parent', with the * name 'name' and widget flags set to 'f'. */ toEditExtensionSetupUI::toEditExtensionSetupUI( QWidget* parent, const char* name, WFlags fl ) : QWidget( parent, name, fl ) { if ( !name ) setName( "toEditExtensionSetupUI" ); toEditExtensionSetupUILayout = new QGridLayout( this, 1, 1, 11, 6, "toEditExtensionSetupUILayout"); Example = new toHighlightedText( this, "Example" ); Example->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, Example->sizePolicy().hasHeightForWidth() ) ); toEditExtensionSetupUILayout->addMultiCellWidget( Example, 11, 11, 0, 1 ); RightSeparator = new QCheckBox( this, "RightSeparator" ); toEditExtensionSetupUILayout->addMultiCellWidget( RightSeparator, 7, 7, 0, 1 ); EndBlockNewline = new QCheckBox( this, "EndBlockNewline" ); toEditExtensionSetupUILayout->addMultiCellWidget( EndBlockNewline, 8, 8, 0, 1 ); BlockOpenLine = new QCheckBox( this, "BlockOpenLine" ); toEditExtensionSetupUILayout->addMultiCellWidget( BlockOpenLine, 4, 4, 0, 1 ); CommaBefore = new QCheckBox( this, "CommaBefore" ); toEditExtensionSetupUILayout->addMultiCellWidget( CommaBefore, 3, 3, 0, 1 ); ExpandSpaces = new QCheckBox( this, "ExpandSpaces" ); toEditExtensionSetupUILayout->addMultiCellWidget( ExpandSpaces, 2, 2, 0, 1 ); OperatorSpace = new QCheckBox( this, "OperatorSpace" ); toEditExtensionSetupUILayout->addMultiCellWidget( OperatorSpace, 5, 5, 0, 1 ); KeywordUpper = new QCheckBox( this, "KeywordUpper" ); toEditExtensionSetupUILayout->addMultiCellWidget( KeywordUpper, 6, 6, 0, 1 ); TextLabel1 = new QLabel( this, "TextLabel1" ); toEditExtensionSetupUILayout->addWidget( TextLabel1, 0, 0 ); IndentLevel = new QSpinBox( this, "IndentLevel" ); toEditExtensionSetupUILayout->addWidget( IndentLevel, 0, 1 ); TextLabel1_2 = new QLabel( this, "TextLabel1_2" ); toEditExtensionSetupUILayout->addWidget( TextLabel1_2, 1, 0 ); CommentColumn = new QSpinBox( this, "CommentColumn" ); toEditExtensionSetupUILayout->addWidget( CommentColumn, 1, 1 ); ExampleLabel = new QLabel( this, "ExampleLabel" ); toEditExtensionSetupUILayout->addMultiCellWidget( ExampleLabel, 10, 10, 0, 1 ); AutoIndent = new QCheckBox( this, "AutoIndent" ); toEditExtensionSetupUILayout->addMultiCellWidget( AutoIndent, 9, 9, 0, 1 ); languageChange(); resize( QSize(533, 394).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( IndentLevel, SIGNAL( valueChanged(int) ), this, SLOT( changed(void) ) ); connect( ExpandSpaces, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( CommaBefore, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( BlockOpenLine, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( KeywordUpper, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( RightSeparator, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( EndBlockNewline, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( OperatorSpace, SIGNAL( toggled(bool) ), this, SLOT( changed(void) ) ); connect( CommentColumn, SIGNAL( valueChanged(int) ), this, SLOT( changed(void) ) ); // tab order setTabOrder( IndentLevel, CommentColumn ); setTabOrder( CommentColumn, ExpandSpaces ); setTabOrder( ExpandSpaces, CommaBefore ); setTabOrder( CommaBefore, BlockOpenLine ); setTabOrder( BlockOpenLine, OperatorSpace ); setTabOrder( OperatorSpace, KeywordUpper ); setTabOrder( KeywordUpper, RightSeparator ); setTabOrder( RightSeparator, EndBlockNewline ); // buddies TextLabel1->setBuddy( IndentLevel ); TextLabel1_2->setBuddy( CommentColumn ); } /* * Destroys the object and frees any allocated resources */ toEditExtensionSetupUI::~toEditExtensionSetupUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toEditExtensionSetupUI::languageChange() { setCaption( tr( "Form1" ) ); RightSeparator->setText( tr( "&Right align keywords in each statement." ) ); QToolTip::add( RightSeparator, QString::null ); EndBlockNewline->setText( tr( "Insert a &newline after each block" ) ); BlockOpenLine->setText( tr( "Place THEN, LOOP, AS and IS on new line at b&eginning of new block" ) ); QToolTip::add( BlockOpenLine, QString::null ); CommaBefore->setText( tr( "Place &comma on new line before item instead of after on same line" ) ); QToolTip::add( CommaBefore, QString::null ); ExpandSpaces->setText( tr( "&Expand spaces to tabs when indenting" ) ); QToolTip::add( ExpandSpaces, tr( "Transform spaces to tabs whenever posible when indenting." ) ); OperatorSpace->setText( tr( "Put spaces around operators" ) ); QToolTip::add( OperatorSpace, tr( "Insert extra spaces between operators." ) ); KeywordUpper->setText( tr( "Transform keywords to &uppercase" ) ); QToolTip::add( KeywordUpper, QString::null ); TextLabel1->setText( tr( "&Indentation level" ) ); TextLabel1_2->setText( tr( "&Same line comment column" ) ); ExampleLabel->setText( tr( "Example" ) ); AutoIndent->setText( tr( "Auto indent read only SQL text editors" ) ); } void toEditExtensionSetupUI::changed() { qWarning( "toEditExtensionSetupUI::changed(): Not implemented yet" ); }