editors/editor-chooser/editchooser.cpp
Go to the documentation of this file.00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
#include "editchooser.h"
00013
00014
#include <qvariant.h>
00015
#include <kdialog.h>
00016
#include <qgroupbox.h>
00017
#include <qcombobox.h>
00018
#include <qlabel.h>
00019
#include <qlayout.h>
00020
#include <qtooltip.h>
00021
#include <qwhatsthis.h>
00022
00023
00024
00025
00026
00027 EditChooser::EditChooser(
QWidget* parent,
const char* name, WFlags fl )
00028 :
QWidget( parent, name, fl )
00029 {
00030
if ( !name )
00031 setName(
"EditChooser" );
00032
EditChooserLayout =
new QVBoxLayout(
this, KDialog::marginHint(), KDialog::spacingHint(),
"EditChooserLayout");
00033
00034
GroupBox1 =
new QGroupBox(
this,
"GroupBox1" );
00035
GroupBox1->setColumnLayout(0, Qt::Vertical );
00036
GroupBox1->layout()->setSpacing( KDialog::spacingHint() );
00037
GroupBox1->layout()->setMargin( KDialog::marginHint() );
00038
GroupBox1Layout =
new QGridLayout(
GroupBox1->layout() );
00039
GroupBox1Layout->setAlignment( Qt::AlignTop );
00040
00041
EditorPart =
new QComboBox( FALSE,
GroupBox1,
"EditorPart" );
00042
00043
GroupBox1Layout->addWidget(
EditorPart, 0, 0 );
00044
00045
TextLabel1 =
new QLabel(
GroupBox1,
"TextLabel1" );
00046
00047
GroupBox1Layout->addWidget(
TextLabel1, 1, 0 );
00048
EditChooserLayout->addWidget(
GroupBox1 );
00049
Spacer1 =
new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
00050
EditChooserLayout->addItem(
Spacer1 );
00051
languageChange();
00052 resize(
QSize(308, 214).expandedTo(minimumSizeHint()) );
00053 clearWState( WState_Polished );
00054 }
00055
00056
00057
00058
00059 EditChooser::~EditChooser()
00060 {
00061
00062 }
00063
00064
00065
00066
00067
00068 void EditChooser::languageChange()
00069 {
00070 setCaption( tr2i18n(
"Form1" ) );
00071
GroupBox1->setTitle( tr2i18n(
"&Embedded Editor" ) );
00072
TextLabel1->setText( tr2i18n(
"<i>Note:</i> Changing the preferred editor will not affect\n"
00073
"already open files." ) );
00074 }
00075
00076
#include "editchooser.moc"
This file is part of the documentation for KDevelop Version 3.0.4.