#include #include /**************************************************************************** ** Form implementation generated from reading ui file '/home/lvanek/Projects/Own/kxmleditor/part/kxeprocinstrdialogbase.ui' ** ** Created: Ne pro 12 11:48:57 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 "kxeprocinstrdialogbase.h" #include #include #include #include #include #include #include #include #include /* * Constructs a KXEProcInstrDialogBase 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. */ KXEProcInstrDialogBase::KXEProcInstrDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl ) : QDialog( parent, name, modal, fl ) { if ( !name ) setName( "KXEProcInstrDialogBase" ); setSizeGripEnabled( TRUE ); KXEProcInstrDialogBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "KXEProcInstrDialogBaseLayout"); layout4 = new QHBoxLayout( 0, 0, 6, "layout4"); m_pLblTarget = new QLabel( this, "m_pLblTarget" ); layout4->addWidget( m_pLblTarget ); m_pEditTarget = new QLineEdit( this, "m_pEditTarget" ); layout4->addWidget( m_pEditTarget ); Spacer2 = new QSpacerItem( 60, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); layout4->addItem( Spacer2 ); m_pLblInsert = new QLabel( this, "m_pLblInsert" ); layout4->addWidget( m_pLblInsert ); m_pComboInsert = new QComboBox( FALSE, this, "m_pComboInsert" ); layout4->addWidget( m_pComboInsert ); KXEProcInstrDialogBaseLayout->addLayout( layout4, 0, 0 ); m_pEditData = new QTextEdit( this, "m_pEditData" ); m_pEditData->setWordWrap( QTextEdit::NoWrap ); KXEProcInstrDialogBaseLayout->addWidget( m_pEditData, 1, 0 ); Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); Layout1->addItem( Horizontal_Spacing2 ); m_pBtnOK = new QPushButton( this, "m_pBtnOK" ); m_pBtnOK->setAutoDefault( TRUE ); m_pBtnOK->setDefault( TRUE ); Layout1->addWidget( m_pBtnOK ); m_pBtnCancel = new QPushButton( this, "m_pBtnCancel" ); m_pBtnCancel->setAutoDefault( TRUE ); Layout1->addWidget( m_pBtnCancel ); KXEProcInstrDialogBaseLayout->addLayout( Layout1, 3, 0 ); m_pTextLabelMessage = new QLabel( this, "m_pTextLabelMessage" ); m_pTextLabelMessage->setPaletteForegroundColor( QColor( 255, 0, 0 ) ); KXEProcInstrDialogBaseLayout->addWidget( m_pTextLabelMessage, 2, 0 ); languageChange(); resize( QSize(367, 244).expandedTo(minimumSizeHint()) ); clearWState( WState_Polished ); // signals and slots connections connect( m_pBtnCancel, SIGNAL( clicked() ), this, SLOT( reject() ) ); // tab order setTabOrder( m_pEditTarget, m_pComboInsert ); setTabOrder( m_pComboInsert, m_pEditData ); setTabOrder( m_pEditData, m_pBtnOK ); setTabOrder( m_pBtnOK, m_pBtnCancel ); // buddies m_pLblTarget->setBuddy( m_pEditTarget ); m_pLblInsert->setBuddy( m_pComboInsert ); } /* * Destroys the object and frees any allocated resources */ KXEProcInstrDialogBase::~KXEProcInstrDialogBase() { // no need to delete child widgets, Qt does it all for us } /* * Sets the strings of the subwidgets using the current * language. */ void KXEProcInstrDialogBase::languageChange() { setCaption( tr2i18n( "Processing Instruction" ) ); m_pLblTarget->setText( tr2i18n( "&Target:" ) ); QWhatsThis::add( m_pLblTarget, tr2i18n( "Target
\n" "Define the target of this processing instruction here." ) ); QWhatsThis::add( m_pEditTarget, tr2i18n( "Target
\n" "Define the target of this processing instruction here." ) ); m_pLblInsert->setText( tr2i18n( "&Insert:" ) ); QWhatsThis::add( m_pLblInsert, tr2i18n( "Insert\n" "
\n" "Choose, where to place this processing instruction in the parent elements list." ) ); m_pComboInsert->clear(); m_pComboInsert->insertItem( tr2i18n( "at bottom" ) ); m_pComboInsert->insertItem( tr2i18n( "at top" ) ); QWhatsThis::add( m_pComboInsert, tr2i18n( "Insert\n" "
\n" "Choose, where to place this processing instruction in the parent elements list." ) ); QWhatsThis::add( m_pEditData, tr2i18n( "Here you can enter the data (the instructions) of this XML processing instruction." ) ); m_pBtnOK->setText( tr2i18n( "&OK" ) ); m_pBtnOK->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) ); m_pBtnCancel->setText( tr2i18n( "&Cancel" ) ); m_pBtnCancel->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) ); } #include "kxeprocinstrdialogbase.moc"