editorchooser_ui.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './editorchooser_ui.ui'
00005 **
00006 ** Created: Mon Jul 16 17:58:46 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "editorchooser_ui.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qpushbutton.h>
00017 #include <qlabel.h>
00018 #include <qcombobox.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /*
00024  *  Constructs a EditorChooser_UI as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 EditorChooser_UI::EditorChooser_UI( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031     setName( "EditorChooser" );
00032     EditorChooserLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "EditorChooserLayout"); 
00033 
00034     layout4 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 
00035 
00036     TextLabel1 = new QLabel( this, "TextLabel1" );
00037     TextLabel1->setMinimumSize( QSize( 460, 0 ) );
00038     TextLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
00039     layout4->addWidget( TextLabel1 );
00040 
00041     editorCombo = new QComboBox( FALSE, this, "editorCombo" );
00042     layout4->addWidget( editorCombo );
00043     EditorChooserLayout->addLayout( layout4 );
00044     languageChange();
00045     resize( QSize(482, 141).expandedTo(minimumSizeHint()) );
00046     clearWState( WState_Polished );
00047 
00048     // tab order
00049 }
00050 
00051 /*
00052  *  Destroys the object and frees any allocated resources
00053  */
00054 EditorChooser_UI::~EditorChooser_UI()
00055 {
00056     // no need to delete child widgets, Qt does it all for us
00057 }
00058 
00059 /*
00060  *  Sets the strings of the subwidgets using the current
00061  *  language.
00062  */
00063 void EditorChooser_UI::languageChange()
00064 {
00065     setCaption( tr2i18n( "Editor Chooser" ) );
00066     TextLabel1->setText( tr2i18n( "Please choose the default text editing component that you wish to use in this application. If you choose <B>System Default</B>, the application will honor your changes in the Control Center. All other choices will override that setting." ) );
00067 }
00068 
00069 #include "editorchooser_ui.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys