KDevelop API Documentation

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: Tue Mar 22 23:55:48 2005
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.4   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 <qlineedit.h>
00017 #include <qcheckbox.h>
00018 #include <qlabel.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /*
00024  *  Constructs a RubyConfigWidgetBase as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 RubyConfigWidgetBase::RubyConfigWidgetBase( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031     setName( "RubyConfigWidgetBase" );
00032 
00033     interpreterEdit = new QLineEdit( this, "interpreterEdit" );
00034     interpreterEdit->setGeometry( QRect( 218, 13, 370, 21 ) );
00035 
00036     terminalCheckbox = new QCheckBox( this, "terminalCheckbox" );
00037     terminalCheckbox->setGeometry( QRect( 11, 41, 578, 40 ) );
00038 
00039     textLabel1 = new QLabel( this, "textLabel1" );
00040     textLabel1->setGeometry( QRect( 12, 13, 200, 21 ) );
00041     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)5, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
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     terminalCheckbox->setText( tr2i18n( "Run applications in terminal" ) );
00065     QWhatsThis::add( terminalCheckbox, tr2i18n( "Check this if you want your applications to be opened in terminal window." ) );
00066     textLabel1->setText( tr2i18n( "Ruby &interpreter:" ) );
00067     QWhatsThis::add( textLabel1, tr2i18n( "This is the path (or just name, if in $PATH) to Ruby interpreter. Defaults to \"ruby\"" ) );
00068 }
00069 
00070 #include "rubyconfigwidgetbase.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003