#include #include /**************************************************************************** ** Form implementation generated from reading ui file '/home/lvanek/Projects/Own/kxmleditor/part/kxeattachdialogbase.ui' ** ** Created: Ne pro 12 11:48:59 2004 ** 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 "kxeattachdialogbase.h" #include #include #include #include #include #include #include /* * Constructs a KXEAttachDialogBase 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. */ KXEAttachDialogBase::KXEAttachDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "KXEAttachDialogBase" ); setSizeGripEnabled( TRUE ); KXEAttachDialogBaseLayout = new QVBoxLayout( this, 11, 6, "KXEAttachDialogBaseLayout"); Label = new QLabel( this, "Label" ); KXEAttachDialogBaseLayout->addWidget( Label ); attachURI = new KURLRequester( this, "attachURI" ); KXEAttachDialogBaseLayout->addWidget( attachURI ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); buttonHelp = new QPushButton( this, "buttonHelp" ); buttonHelp->setAutoDefault( TRUE ); Layout1->addWidget( buttonHelp ); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); buttonOk = new QPushButton( this, "buttonOk" ); buttonOk->setAutoDefault( TRUE ); buttonOk->setDefault( TRUE ); Layout1->addWidget( buttonOk ); buttonCancel = new QPushButton( this, "buttonCancel" ); buttonCancel->setAutoDefault( TRUE ); Layout1->addWidget( buttonCancel ); KXEAttachDialogBaseLayout->addLayout( Layout1 ); languageChange(); resize( QSize(319, 105).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) ); connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); // tab order setTabOrder( attachURI, buttonOk ); setTabOrder( buttonOk, buttonCancel ); setTabOrder( buttonCancel, buttonHelp ); } /* * Destroys the object and frees any allocated resources */ KXEAttachDialogBase::~KXEAttachDialogBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void KXEAttachDialogBase::languageChange() { setCaption( tr2i18n( "Attach to XML" ) ); Label->setText( tr2i18n( "attachment URI:" ) ); buttonHelp->setText( tr2i18n( "&Help" ) ); buttonHelp->setAccel( QKeySequence( tr2i18n( "F1" ) ) ); buttonOk->setText( tr2i18n( "&OK" ) ); buttonOk->setAccel( QKeySequence( QString::null ) ); buttonCancel->setText( tr2i18n( "&Cancel" ) ); buttonCancel->setAccel( QKeySequence( QString::null ) ); } #include "kxeattachdialogbase.moc"