KDevelop API Documentation

svn_co.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 './svn_co.ui'
00005 **
00006 ** Created: Tue Mar 22 23:59:37 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 "svn_co.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <kurlrequester.h>
00019 #include <klineedit.h>
00020 #include <qbuttongroup.h>
00021 #include <qradiobutton.h>
00022 #include <qlayout.h>
00023 #include <qtooltip.h>
00024 #include <qwhatsthis.h>
00025 
00026 /*
00027  *  Constructs a svn_co as a child of 'parent', with the
00028  *  name 'name' and widget flags set to 'f'.
00029  *
00030  *  The dialog will by default be modeless, unless you set 'modal' to
00031  *  TRUE to construct a modal dialog.
00032  */
00033 svn_co::svn_co( QWidget* parent, const char* name, bool modal, WFlags fl )
00034     : QDialog( parent, name, modal, fl )
00035 {
00036     if ( !name )
00037     setName( "svn_co" );
00038     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
00039     svn_coLayout = new QVBoxLayout( this, 11, 6, "svn_coLayout"); 
00040 
00041     server = new QGroupBox( this, "server" );
00042     server->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, server->sizePolicy().hasHeightForWidth() ) );
00043     server->setColumnLayout(0, Qt::Vertical );
00044     server->layout()->setSpacing( 6 );
00045     server->layout()->setMargin( 11 );
00046     serverLayout = new QVBoxLayout( server->layout() );
00047     serverLayout->setAlignment( Qt::AlignTop );
00048 
00049     layout8 = new QHBoxLayout( 0, 0, 6, "layout8"); 
00050 
00051     textLabel3 = new QLabel( server, "textLabel3" );
00052     layout8->addWidget( textLabel3 );
00053 
00054     serverURL = new KURLRequester( server, "serverURL" );
00055     serverURL->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, serverURL->sizePolicy().hasHeightForWidth() ) );
00056     layout8->addWidget( serverURL );
00057     serverLayout->addLayout( layout8 );
00058 
00059     layout6 = new QHBoxLayout( 0, 0, 6, "layout6"); 
00060 
00061     textLabel1_2 = new QLabel( server, "textLabel1_2" );
00062     layout6->addWidget( textLabel1_2 );
00063 
00064     revision = new KLineEdit( server, "revision" );
00065     layout6->addWidget( revision );
00066     serverLayout->addLayout( layout6 );
00067 
00068     buttonGroup1 = new QButtonGroup( server, "buttonGroup1" );
00069     buttonGroup1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, buttonGroup1->sizePolicy().hasHeightForWidth() ) );
00070     buttonGroup1->setFrameShape( QButtonGroup::WinPanel );
00071     buttonGroup1->setFrameShadow( QButtonGroup::Sunken );
00072     buttonGroup1->setExclusive( TRUE );
00073     buttonGroup1->setColumnLayout(0, Qt::Vertical );
00074     buttonGroup1->layout()->setSpacing( 6 );
00075     buttonGroup1->layout()->setMargin( 11 );
00076     buttonGroup1Layout = new QVBoxLayout( buttonGroup1->layout() );
00077     buttonGroup1Layout->setAlignment( Qt::AlignTop );
00078 
00079     layout11 = new QVBoxLayout( 0, 0, 6, "layout11"); 
00080 
00081     isStandard = new QRadioButton( buttonGroup1, "isStandard" );
00082     isStandard->setChecked( TRUE );
00083     layout11->addWidget( isStandard );
00084 
00085     radioButton1_2 = new QRadioButton( buttonGroup1, "radioButton1_2" );
00086     layout11->addWidget( radioButton1_2 );
00087     buttonGroup1Layout->addLayout( layout11 );
00088     serverLayout->addWidget( buttonGroup1 );
00089     svn_coLayout->addWidget( server );
00090 
00091     local = new QGroupBox( this, "local" );
00092     local->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, local->sizePolicy().hasHeightForWidth() ) );
00093     local->setColumnLayout(0, Qt::Vertical );
00094     local->layout()->setSpacing( 6 );
00095     local->layout()->setMargin( 11 );
00096     localLayout = new QVBoxLayout( local->layout() );
00097     localLayout->setAlignment( Qt::AlignTop );
00098 
00099     layout8_2 = new QHBoxLayout( 0, 0, 6, "layout8_2"); 
00100 
00101     textLabel1 = new QLabel( local, "textLabel1" );
00102     layout8_2->addWidget( textLabel1 );
00103 
00104     localDir = new KURLRequester( local, "localDir" );
00105     localDir->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)5, 0, 0, localDir->sizePolicy().hasHeightForWidth() ) );
00106     layout8_2->addWidget( localDir );
00107     localLayout->addLayout( layout8_2 );
00108 
00109     layout9 = new QHBoxLayout( 0, 0, 6, "layout9"); 
00110 
00111     textLabel2 = new QLabel( local, "textLabel2" );
00112     layout9->addWidget( textLabel2 );
00113 
00114     newDir = new KLineEdit( local, "newDir" );
00115     layout9->addWidget( newDir );
00116     localLayout->addLayout( layout9 );
00117     svn_coLayout->addWidget( local );
00118 
00119     layout6_2 = new QHBoxLayout( 0, 0, 6, "layout6_2"); 
00120     spacer2 = new QSpacerItem( 191, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00121     layout6_2->addItem( spacer2 );
00122 
00123     layout5 = new QHBoxLayout( 0, 0, 6, "layout5"); 
00124 
00125     ok = new QPushButton( this, "ok" );
00126     ok->setDefault( TRUE );
00127     layout5->addWidget( ok );
00128 
00129     cancel = new QPushButton( this, "cancel" );
00130     layout5->addWidget( cancel );
00131     layout6_2->addLayout( layout5 );
00132     svn_coLayout->addLayout( layout6_2 );
00133     languageChange();
00134     resize( QSize(509, 360).expandedTo(minimumSizeHint()) );
00135     clearWState( WState_Polished );
00136 
00137     // signals and slots connections
00138     connect( ok, SIGNAL( clicked() ), this, SLOT( accept() ) );
00139     connect( cancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00140 
00141     // buddies
00142     textLabel3->setBuddy( serverURL );
00143     textLabel1_2->setBuddy( revision );
00144     textLabel1->setBuddy( localDir );
00145     textLabel2->setBuddy( newDir );
00146 }
00147 
00148 /*
00149  *  Destroys the object and frees any allocated resources
00150  */
00151 svn_co::~svn_co()
00152 {
00153     // no need to delete child widgets, Qt does it all for us
00154 }
00155 
00156 /*
00157  *  Sets the strings of the subwidgets using the current
00158  *  language.
00159  */
00160 void svn_co::languageChange()
00161 {
00162     setCaption( tr2i18n( "Subversion Module Checkout" ) );
00163     server->setTitle( tr2i18n( "Server Settings" ) );
00164     textLabel3->setText( tr2i18n( "Checkout &from:" ) );
00165     textLabel1_2->setText( tr2i18n( "&Revision:" ) );
00166     revision->setText( tr2i18n( "HEAD" ) );
00167     buttonGroup1->setTitle( tr2i18n( "This Project has Standard &Trunk/Branches/Tags/Directories" ) );
00168     isStandard->setText( tr2i18n( "Yes" ) );
00169     radioButton1_2->setText( tr2i18n( "No" ) );
00170     local->setTitle( tr2i18n( "Local Directory" ) );
00171     textLabel1->setText( tr2i18n( "C&heckout in:" ) );
00172     textLabel2->setText( tr2i18n( "&Name of the newly created directory:" ) );
00173     ok->setText( tr2i18n( "&OK" ) );
00174     cancel->setText( tr2i18n( "&Cancel" ) );
00175 }
00176 
00177 #include "svn_co.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:59 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003