/****************************************************************************
** Form implementation generated from reading ui file 'toeditextensiongotoui.ui'
**
** Created: Tue Sep 18 08:21:22 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "toeditextensiongotoui.h"

#include <qvariant.h>
#include <qspinbox.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

/*
 *  Constructs a toEditExtensionGotoUI 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.
 */
toEditExtensionGotoUI::toEditExtensionGotoUI( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "todebuggotolineUI" );
    todebuggotolineUILayout = new QGridLayout( this, 1, 1, 11, 6, "todebuggotolineUILayout"); 

    Line = new QSpinBox( this, "Line" );

    todebuggotolineUILayout->addWidget( Line, 0, 1 );

    layout1 = new QHBoxLayout( 0, 0, 6, "layout1"); 
    spacer1 = new QSpacerItem( 80, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout1->addItem( spacer1 );

    pushButton1 = new QPushButton( this, "pushButton1" );
    pushButton1->setDefault( TRUE );
    layout1->addWidget( pushButton1 );

    pushButton2 = new QPushButton( this, "pushButton2" );
    layout1->addWidget( pushButton2 );

    todebuggotolineUILayout->addMultiCellLayout( layout1, 2, 2, 0, 1 );
    spacer2 = new QSpacerItem( 20, 21, QSizePolicy::Minimum, QSizePolicy::Expanding );
    todebuggotolineUILayout->addItem( spacer2, 1, 1 );

    textLabel1 = new QLabel( this, "textLabel1" );

    todebuggotolineUILayout->addWidget( textLabel1, 0, 0 );
    languageChange();
    resize( QSize(224, 117).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( pushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) );
    connect( pushButton2, SIGNAL( clicked() ), this, SLOT( reject() ) );

    // tab order
    setTabOrder( Line, pushButton1 );
    setTabOrder( pushButton1, pushButton2 );
}

/*
 *  Destroys the object and frees any allocated resources
 */
toEditExtensionGotoUI::~toEditExtensionGotoUI()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void toEditExtensionGotoUI::languageChange()
{
    setCaption( tr( "Go to line" ) );
    pushButton1->setText( tr( "&Ok" ) );
    pushButton2->setText( tr( "&Cancel" ) );
    textLabel1->setText( tr( "Line Number" ) );
}

