/**************************************************************************** ** Form implementation generated from reading ui file 'todebugchangeui.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 "todebugchangeui.h" #include #include #include #include #include #include #include #include #include "tomarkedtext.h" /* * Constructs a toDebugChangeUI 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. */ toDebugChangeUI::toDebugChangeUI( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "toDebugChangeUI" ); toDebugChangeUILayout = new QGridLayout( this, 1, 1, 11, 6, "toDebugChangeUILayout"); NullValue = new QCheckBox( this, "NullValue" ); toDebugChangeUILayout->addWidget( NullValue, 1, 0 ); PushButton1_2 = new QPushButton( this, "PushButton1_2" ); toDebugChangeUILayout->addWidget( PushButton1_2, 3, 2 ); PushButton1 = new QPushButton( this, "PushButton1" ); PushButton1->setDefault( TRUE ); toDebugChangeUILayout->addWidget( PushButton1, 3, 1 ); HeadLabel = new QLabel( this, "HeadLabel" ); HeadLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, HeadLabel->sizePolicy().hasHeightForWidth() ) ); toDebugChangeUILayout->addMultiCellWidget( HeadLabel, 0, 0, 0, 2 ); TextLabel1 = new QLabel( this, "TextLabel1" ); TextLabel1->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) ); toDebugChangeUILayout->addWidget( TextLabel1, 1, 1 ); Value = new toMarkedText( this, "Value" ); Value->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)7, 0, 0, Value->sizePolicy().hasHeightForWidth() ) ); toDebugChangeUILayout->addMultiCellWidget( Value, 2, 2, 0, 2 ); Index = new QSpinBox( this, "Index" ); Index->setMaxValue( 2147483647 ); Index->setMinValue( -2147483647 ); Index->setValue( 1 ); toDebugChangeUILayout->addWidget( Index, 1, 2 ); languageChange(); resize( QSize(396, 180).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( PushButton1, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( PushButton1_2, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( NullValue, SIGNAL( toggled(bool) ), Value, SLOT( setDisabled(bool) ) ); // tab order setTabOrder( PushButton1, PushButton1_2 ); // buddies TextLabel1->setBuddy( Index ); } /* * Destroys the object and frees any allocated resources */ toDebugChangeUI::~toDebugChangeUI() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void toDebugChangeUI::languageChange() { setCaption( tr( "Change value of watch" ) ); NullValue->setText( tr( "NULL" ) ); PushButton1_2->setText( tr( "Cancel" ) ); PushButton1->setText( tr( "&Ok" ) ); TextLabel1->setText( tr( "&Index" ) ); }