00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00025
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
00049 }
00050
00051
00052
00053
00054 EditorChooser_UI::~EditorChooser_UI()
00055 {
00056
00057 }
00058
00059
00060
00061
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"