KDevelop API Documentation

languages/perl/perlconfigwidgetbase.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 './perlconfigwidgetbase.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:56:37 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 "perlconfigwidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qlabel.h> 00017 #include <qlineedit.h> 00018 #include <qcheckbox.h> 00019 #include <qlayout.h> 00020 #include <qtooltip.h> 00021 #include <qwhatsthis.h> 00022 00023 /* 00024 * Constructs a PerlConfigWidgetBase as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 00026 */ 00027 PerlConfigWidgetBase::PerlConfigWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00028 : QWidget( parent, name, fl ) 00029 { 00030 if ( !name ) 00031 setName( "perl_config_widget" ); 00032 perl_config_widgetLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "perl_config_widgetLayout"); 00033 00034 interpreter_label = new QLabel( this, "interpreter_label" ); 00035 perl_config_widgetLayout->addWidget( interpreter_label ); 00036 00037 Layout1 = new QHBoxLayout( 0, 0, KDialog::spacingHint(), "Layout1"); 00038 00039 interpreter_edit = new QLineEdit( this, "interpreter_edit" ); 00040 Layout1->addWidget( interpreter_edit ); 00041 Spacer1 = new QSpacerItem( 0, 0, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00042 Layout1->addItem( Spacer1 ); 00043 perl_config_widgetLayout->addLayout( Layout1 ); 00044 Spacer3 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Minimum ); 00045 perl_config_widgetLayout->addItem( Spacer3 ); 00046 00047 terminal_box = new QCheckBox( this, "terminal_box" ); 00048 perl_config_widgetLayout->addWidget( terminal_box ); 00049 Spacer2 = new QSpacerItem( 0, 0, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00050 perl_config_widgetLayout->addItem( Spacer2 ); 00051 languageChange(); 00052 resize( QSize(600, 480).expandedTo(minimumSizeHint()) ); 00053 clearWState( WState_Polished ); 00054 00055 // buddies 00056 interpreter_label->setBuddy( interpreter_edit ); 00057 } 00058 00059 /* 00060 * Destroys the object and frees any allocated resources 00061 */ 00062 PerlConfigWidgetBase::~PerlConfigWidgetBase() 00063 { 00064 // no need to delete child widgets, Qt does it all for us 00065 } 00066 00067 /* 00068 * Sets the strings of the subwidgets using the current 00069 * language. 00070 */ 00071 void PerlConfigWidgetBase::languageChange() 00072 { 00073 setCaption( tr2i18n( "Perl" ) ); 00074 interpreter_label->setText( tr2i18n( "Perl &interpreter:" ) ); 00075 terminal_box->setText( tr2i18n( "&Execute programs in a terminal" ) ); 00076 } 00077 00078 #include "perlconfigwidgetbase.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 Tue Oct 19 08:01:46 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003