#include #include /**************************************************************************** ** Form implementation generated from reading ui file '/home/lvanek/Projects/Own/kxmleditor/part/kxechoosestringdialogbase.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 "kxechoosestringdialogbase.h" #include #include #include #include #include #include #include /* * Constructs a KXEChooseStringDialogBase 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. */ KXEChooseStringDialogBase::KXEChooseStringDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "KXEChooseStringDialogBase" ); KXEChooseStringDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "KXEChooseStringDialogBaseLayout"); m_pComboBox = new QComboBox( FALSE, this, "m_pComboBox" ); KXEChooseStringDialogBaseLayout->addMultiCellWidget( m_pComboBox, 1, 1, 0, 1 ); Layout3 = new QHBoxLayout( 0, 0, 6, "Layout3"); Spacer4 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout3->addItem( Spacer4 ); m_pPushButtonOk = new QPushButton( this, "m_pPushButtonOk" ); Layout3->addWidget( m_pPushButtonOk ); m_pPushButtonCancel = new QPushButton( this, "m_pPushButtonCancel" ); Layout3->addWidget( m_pPushButtonCancel ); KXEChooseStringDialogBaseLayout->addMultiCellLayout( Layout3, 2, 2, 0, 1 ); m_pTextLabel = new QLabel( this, "m_pTextLabel" ); KXEChooseStringDialogBaseLayout->addWidget( m_pTextLabel, 0, 0 ); Spacer1 = new QSpacerItem( 117, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); KXEChooseStringDialogBaseLayout->addItem( Spacer1, 0, 1 ); languageChange(); resize( QSize(228, 137).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( m_pPushButtonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); connect( m_pPushButtonOk, SIGNAL( clicked() ), this, SLOT( slotOk() ) ); // buddies m_pTextLabel->setBuddy( m_pComboBox ); } /* * Destroys the object and frees any allocated resources */ KXEChooseStringDialogBase::~KXEChooseStringDialogBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void KXEChooseStringDialogBase::languageChange() { setCaption( tr2i18n( "Choose string" ) ); QWhatsThis::add( m_pComboBox, tr2i18n( "Enter string\n" "
\n" "Enter or choose string, that you want." ) ); m_pPushButtonOk->setText( tr2i18n( "&OK" ) ); m_pPushButtonCancel->setText( tr2i18n( "&Cancel" ) ); m_pTextLabel->setText( tr2i18n( "&Enter string:" ) ); QWhatsThis::add( m_pTextLabel, tr2i18n( "Enter string\n" "
\n" "Enter or choose string, that you want." ) ); } void KXEChooseStringDialogBase::slotOk() { qWarning( "KXEChooseStringDialogBase::slotOk(): Not implemented yet" ); } #include "kxechoosestringdialogbase.moc"