languages/ruby/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 <qlabel.h>
00017
#include <qlineedit.h>
00018
#include <qlayout.h>
00019
#include <qtooltip.h>
00020
#include <qwhatsthis.h>
00021
00022
00023
00024
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
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 setCaption( tr2i18n(
"Form1" ) );
00065
textLabel1->setText( tr2i18n(
"Ruby &interpreter:" ) );
00066 }
00067
00068
#include "rubyconfigwidgetbase.moc"
This file is part of the documentation for KDevelop Version 3.0.4.