#include #include /**************************************************************************** ** Form implementation generated from reading ui file '/home/oliver/work/programming/kyammi/src/ApplyToAllBase.ui' ** ** Created: Sun Jul 31 13:19:22 2005 ** 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 "ApplyToAllBase.h" #include #include #include #include #include #include #include /* * Constructs a ApplyToAllBase 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. */ ApplyToAllBase::ApplyToAllBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "ApplyToAllBase" ); ApplyToAllBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "ApplyToAllBaseLayout"); PushButtonOk = new QPushButton( this, "PushButtonOk" ); ApplyToAllBaseLayout->addWidget( PushButtonOk, 2, 0 ); PushButtonCancel = new QPushButton( this, "PushButtonCancel" ); ApplyToAllBaseLayout->addWidget( PushButtonCancel, 2, 1 ); PushButtonAbort = new QPushButton( this, "PushButtonAbort" ); ApplyToAllBaseLayout->addWidget( PushButtonAbort, 2, 2 ); TextLabel = new QLabel( this, "TextLabel" ); ApplyToAllBaseLayout->addMultiCellWidget( TextLabel, 0, 0, 0, 2 ); CheckBoxApply = new QCheckBox( this, "CheckBoxApply" ); ApplyToAllBaseLayout->addMultiCellWidget( CheckBoxApply, 1, 1, 0, 2 ); languageChange(); resize( QSize(481, 180).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( PushButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( PushButtonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); // tab order setTabOrder( CheckBoxApply, PushButtonOk ); setTabOrder( PushButtonOk, PushButtonCancel ); setTabOrder( PushButtonCancel, PushButtonAbort ); } /* * Destroys the object and frees any allocated resources */ ApplyToAllBase::~ApplyToAllBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void ApplyToAllBase::languageChange() { setCaption( tr2i18n( "confirm" ) ); PushButtonOk->setText( tr2i18n( "Yes" ) ); PushButtonCancel->setText( tr2i18n( "No" ) ); PushButtonAbort->setText( tr2i18n( "Abort" ) ); TextLabel->setText( QString::null ); CheckBoxApply->setText( tr2i18n( "apply answer to all affected items" ) ); } #include "ApplyToAllBase.moc"