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 by: The User Interface Compiler ($Id: qt/main.cpp   3.3.6   edited Aug 31 2005 $)
00007 **
00008 ** WARNING! All changes made in this file will be lost!
00009 ****************************************************************************/
00010 
00011 #include "editorchooser_ui.h"
00012 
00013 #include <qvariant.h>
00014 #include <kdialog.h>
00015 #include <qpushbutton.h>
00016 #include <qlabel.h>
00017 #include <qcombobox.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a EditorChooser_UI as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  */
00026 EditorChooser_UI::EditorChooser_UI( QWidget* parent, const char* name, WFlags fl )
00027     : QWidget( parent, name, fl )
00028 {
00029     if ( !name )
00030     setName( "EditorChooser" );
00031     EditorChooserLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "EditorChooserLayout"); 
00032 
00033     layout4 = new QVBoxLayout( 0, 0, KDialog::spacingHint(), "layout4"); 
00034 
00035     TextLabel1 = new QLabel( this, "TextLabel1" );
00036     TextLabel1->setMinimumSize( QSize( 460, 0 ) );
00037     TextLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
00038     layout4->addWidget( TextLabel1 );
00039 
00040     editorCombo = new QComboBox( FALSE, this, "editorCombo" );
00041     layout4->addWidget( editorCombo );
00042     EditorChooserLayout->addLayout( layout4 );
00043     languageChange();
00044     resize( QSize(482, 141).expandedTo(minimumSizeHint()) );
00045     clearWState( WState_Polished );
00046 
00047     // tab order
00048 }
00049 
00050 /*
00051  *  Destroys the object and frees any allocated resources
00052  */
00053 EditorChooser_UI::~EditorChooser_UI()
00054 {
00055     // no need to delete child widgets, Qt does it all for us
00056 }
00057 
00058 /*
00059  *  Sets the strings of the subwidgets using the current
00060  *  language.
00061  */
00062 void EditorChooser_UI::languageChange()
00063 {
00064     setCaption( tr2i18n( "Editor Chooser" ) );
00065     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." ) );
00066 }
00067 
00068 #include "editorchooser_ui.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys