subversionprojectwidget.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 "subversionprojectwidget.h"
00013
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qlabel.h>
00017 #include <kurlrequester.h>
00018 #include <qgroupbox.h>
00019 #include <qradiobutton.h>
00020 #include <qlayout.h>
00021 #include <qtooltip.h>
00022 #include <qwhatsthis.h>
00023
00024
00025
00026
00027
00028 subversionProjectWidget::subversionProjectWidget( QWidget* parent, const char* name, WFlags fl )
00029 : QWidget( parent, name, fl )
00030 {
00031 if ( !name )
00032 setName( "subversionProjectWidget" );
00033 subversionProjectWidgetLayout = new QVBoxLayout( this, 11, 6, "subversionProjectWidgetLayout");
00034
00035 layout1 = new QHBoxLayout( 0, 0, 6, "layout1");
00036
00037 textLabel1 = new QLabel( this, "textLabel1" );
00038 layout1->addWidget( textLabel1 );
00039
00040 importURL = new KURLRequester( this, "importURL" );
00041 layout1->addWidget( importURL );
00042 subversionProjectWidgetLayout->addLayout( layout1 );
00043
00044 init = new QGroupBox( this, "init" );
00045 init->setColumnLayout(0, Qt::Vertical );
00046 init->layout()->setSpacing( 6 );
00047 init->layout()->setMargin( 11 );
00048 initLayout = new QVBoxLayout( init->layout() );
00049 initLayout->setAlignment( Qt::AlignTop );
00050
00051 yes = new QRadioButton( init, "yes" );
00052 yes->setChecked( TRUE );
00053 initLayout->addWidget( yes );
00054
00055 no = new QRadioButton( init, "no" );
00056 initLayout->addWidget( no );
00057 subversionProjectWidgetLayout->addWidget( init );
00058 languageChange();
00059 resize( QSize(438, 149).expandedTo(minimumSizeHint()) );
00060 clearWState( WState_Polished );
00061
00062
00063 textLabel1->setBuddy( importURL );
00064 }
00065
00066
00067
00068
00069 subversionProjectWidget::~subversionProjectWidget()
00070 {
00071
00072 }
00073
00074
00075
00076
00077
00078 void subversionProjectWidget::languageChange()
00079 {
00080 setCaption( tr2i18n( "New Subversion Project" ) );
00081 textLabel1->setText( tr2i18n( "&Import address :" ) );
00082 init->setTitle( tr2i18n( "Create &Standard Directories (tags/trunk/branches/)?" ) );
00083 yes->setText( tr2i18n( "Yes" ) );
00084 no->setText( tr2i18n( "No" ) );
00085 }
00086
00087 #include "subversionprojectwidget.moc"
This file is part of the documentation for KDevelop Version 3.1.2.