#include /**************************************************************************** ** Form implementation generated from reading ui file '/home/doros/src/local/kde/katapult/katapult/settings.ui' ** ** Created: Fri Feb 18 12:48:28 2005 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) ** ** WARNING! All changes made in this file will be lost! ****************************************************************************/ #include "settings.h" #include #include #include #include #include #include #include #include /* * Constructs a MyDialog1 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. */ MyDialog1::MyDialog1( TQWidget* parent, const char* name, bool modal, WFlags fl ) : TQDialog( parent, name, modal, fl ) { if ( !name ) setName( "MyDialog1" ); setSizeGripEnabled( TRUE ); MyDialog1Layout = new TQGridLayout( this, 1, 1, 11, 6, "MyDialog1Layout"); listBox = new TQListBox( this, "listBox" ); listBox->setSizePolicy( TQSizePolicy( (TQSizePolicy::SizeType)0, (TQSizePolicy::SizeType)7, 0, 0, listBox->sizePolicy().hasHeightForWidth() ) ); MyDialog1Layout->addWidget( listBox, 0, 0 ); tabWidget = new TQTabWidget( this, "tabWidget" ); Widget2 = new TQWidget( tabWidget, "Widget2" ); tabWidget->insertTab( Widget2, TQString("") ); Widget3 = new TQWidget( tabWidget, "Widget3" ); tabWidget->insertTab( Widget3, TQString("") ); MyDialog1Layout->addWidget( tabWidget, 0, 1 ); Layout1 = new TQHBoxLayout( 0, 0, 6, "Layout1"); buttonHelp = new TQPushButton( this, "buttonHelp" ); buttonHelp->setAutoDefault( TRUE ); Layout1->addWidget( buttonHelp ); TQt::Horizontal_Spacing2 = new TQSpacerItem( 20, 20, TQSizePolicy::Expanding, TQSizePolicy::Minimum ); Layout1->addItem(TQt::Horizontal_Spacing2 ); buttonOk = new TQPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); buttonOk->setDefault( TRUE ); Layout1->addWidget( buttonOk ); buttonCancel = new TQPushButton( this, "buttonCancel" ); buttonCancel->setAutoDefault( TRUE ); Layout1->addWidget( buttonCancel ); MyDialog1Layout->addMultiCellLayout( Layout1, 1, 1, 0, 1 ); languageChange(); resize( TQSize(597, 364).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonOk, TQ_SIGNAL( clicked() ), this, TQ_SLOT( accept() ) ); connect( buttonCancel, TQ_SIGNAL( clicked() ), this, TQ_SLOT( reject() ) ); } /* * Destroys the object and frees any allocated resources */ MyDialog1::~MyDialog1() { // no need to delete child widgets, TQt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void MyDialog1::languageChange() { setCaption( tr2i18n( "MyDialog1" ) ); listBox->clear(); listBox->insertItem( tr2i18n( "New Item" ) ); tabWidget->changeTab( Widget2, tr2i18n( "Tab" ) ); tabWidget->changeTab( Widget3, tr2i18n( "Tab" ) ); buttonHelp->setText( tr2i18n( "&Help" ) ); buttonHelp->setAccel( TQKeySequence( tr2i18n( "F1" ) ) ); buttonOk->setText( tr2i18n( "&OK" ) ); buttonOk->setAccel( TQKeySequence( TQString() ) ); buttonCancel->setText( tr2i18n( "&Cancel" ) ); buttonCancel->setAccel( TQKeySequence( TQString() ) ); } #include "settings.moc"