KDevelop API Documentation

editors/editor-chooser/editchooser.cpp

Go to the documentation of this file.
00001 #include <kdialog.h> 00002 #include <klocale.h> 00003 /**************************************************************************** 00004 ** Form implementation generated from reading ui file './editchooser.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:35:46 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 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 * Constructs a EditChooser as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 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 * Destroys the object and frees any allocated resources 00058 */ 00059 EditChooser::~EditChooser() 00060 { 00061 // no need to delete child widgets, Qt does it all for us 00062 } 00063 00064 /* 00065 * Sets the strings of the subwidgets using the current 00066 * language. 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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:38:55 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003