KDevelop API Documentation

languages/ruby/rubyconfigwidgetbase.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 './rubyconfigwidgetbase.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:32:43 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 "rubyconfigwidgetbase.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qlabel.h> 00017 #include <qlineedit.h> 00018 #include <qlayout.h> 00019 #include <qtooltip.h> 00020 #include <qwhatsthis.h> 00021 00022 /* 00023 * Constructs a RubyConfigWidgetBase as a child of 'parent', with the 00024 * name 'name' and widget flags set to 'f'. 00025 */ 00026 RubyConfigWidgetBase::RubyConfigWidgetBase( QWidget* parent, const char* name, WFlags fl ) 00027 : QWidget( parent, name, fl ) 00028 { 00029 if ( !name ) 00030 setName( "RubyConfigWidgetBase" ); 00031 RubyConfigWidgetBaseLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "RubyConfigWidgetBaseLayout"); 00032 00033 textLabel1 = new QLabel( this, "textLabel1" ); 00034 00035 RubyConfigWidgetBaseLayout->addWidget( textLabel1, 0, 0 ); 00036 00037 interpreterEdit = new QLineEdit( this, "interpreterEdit" ); 00038 00039 RubyConfigWidgetBaseLayout->addWidget( interpreterEdit, 0, 1 ); 00040 spacer1 = new QSpacerItem( 20, 40, QSizePolicy::Minimum, QSizePolicy::Expanding ); 00041 RubyConfigWidgetBaseLayout->addItem( spacer1, 1, 1 ); 00042 languageChange(); 00043 resize( QSize(600, 482).expandedTo(minimumSizeHint()) ); 00044 clearWState( WState_Polished ); 00045 00046 // buddies 00047 textLabel1->setBuddy( interpreterEdit ); 00048 } 00049 00050 /* 00051 * Destroys the object and frees any allocated resources 00052 */ 00053 RubyConfigWidgetBase::~RubyConfigWidgetBase() 00054 { 00055 // no need to delete child widgets, Qt does it all for us 00056 } 00057 00058 /* 00059 * Sets the strings of the subwidgets using the current 00060 * language. 00061 */ 00062 void RubyConfigWidgetBase::languageChange() 00063 { 00064 setCaption( tr2i18n( "Form1" ) ); 00065 textLabel1->setText( tr2i18n( "Ruby &interpreter:" ) ); 00066 } 00067 00068 #include "rubyconfigwidgetbase.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:39:06 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003