rubyconfigwidgetbase.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 "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
00025
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
00047 textLabel1->setBuddy( interpreterEdit );
00048 }
00049
00050
00051
00052
00053 RubyConfigWidgetBase::~RubyConfigWidgetBase()
00054 {
00055
00056 }
00057
00058
00059
00060
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"
This file is part of the documentation for KDevelop Version 3.1.2.