interfaces Library API Documentation

editorchooser_ui.cpp

00001 #include <klocale.h>
00002 /****************************************************************************
00003 ** Form implementation generated from reading ui file './editorchooser_ui.ui'
00004 **
00005 ** Created: Sun Feb 27 22:03:32 2005
00006 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.1.2   edited Dec 19 11:45 $)
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 <qlabel.h>
00015 #include <qcombobox.h>
00016 #include <qlayout.h>
00017 #include <qtooltip.h>
00018 #include <qwhatsthis.h>
00019 
00020 /* 
00021  *  Constructs a EditorChooser_UI as a child of 'parent', with the 
00022  *  name 'name' and widget flags set to 'f'.
00023  */
00024 EditorChooser_UI::EditorChooser_UI( QWidget* parent, const char* name, WFlags fl )
00025     : QWidget( parent, name, fl )
00026 {
00027     if ( !name )
00028     setName( "EditorChooser" );
00029     EditorChooserLayout = new QVBoxLayout( this, 11, 6, "EditorChooserLayout"); 
00030 
00031     TextLabel1 = new QLabel( this, "TextLabel1" );
00032     TextLabel1->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
00033     EditorChooserLayout->addWidget( TextLabel1 );
00034 
00035     editorCombo = new QComboBox( FALSE, this, "editorCombo" );
00036     EditorChooserLayout->addWidget( editorCombo );
00037     QSpacerItem* spacer = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding );
00038     EditorChooserLayout->addItem( spacer );
00039     languageChange();
00040     resize( QSize(472, 187).expandedTo(minimumSizeHint()) );
00041     clearWState( WState_Polished );
00042 }
00043 
00044 /*
00045  *  Destroys the object and frees any allocated resources
00046  */
00047 EditorChooser_UI::~EditorChooser_UI()
00048 {
00049     // no need to delete child widgets, Qt does it all for us
00050 }
00051 
00052 /*
00053  *  Sets the strings of the subwidgets using the current
00054  *  language.
00055  */
00056 void EditorChooser_UI::languageChange()
00057 {
00058     setCaption( tr2i18n( "Editor Chooser" ) );
00059     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." ) );
00060 }
00061 
00062 #include "editorchooser_ui.moc"
KDE Logo
This file is part of the documentation for kdelibs Version 3.1.4.
Documentation copyright © 1996-2002 the KDE developers.
Generated on Sun Feb 27 22:16:14 2005 by doxygen 1.3.4 written by Dimitri van Heesch, © 1997-2001