KDevelop API Documentation

vcs/subversion/subversionprojectwidget.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 './subversionprojectwidget.ui' 00005 ** 00006 ** Created: Tue Oct 19 08:00:47 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 "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 * Constructs a subversionProjectWidget as a child of 'parent', with the 00026 * name 'name' and widget flags set to 'f'. 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 // buddies 00063 textLabel1->setBuddy( importURL ); 00064 } 00065 00066 /* 00067 * Destroys the object and frees any allocated resources 00068 */ 00069 subversionProjectWidget::~subversionProjectWidget() 00070 { 00071 // no need to delete child widgets, Qt does it all for us 00072 } 00073 00074 /* 00075 * Sets the strings of the subwidgets using the current 00076 * language. 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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:54 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003