KDevelop API Documentation

checkoutdialogbase.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 './checkoutdialogbase.ui'
00005 **
00006 ** Created: Tue Feb 22 09:16:25 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 "checkoutdialogbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qgroupbox.h>
00017 #include <qlabel.h>
00018 #include <kurlrequester.h>
00019 #include <qcombobox.h>
00020 #include <qlineedit.h>
00021 #include <qcheckbox.h>
00022 #include <qheader.h>
00023 #include <klistview.h>
00024 #include <qlayout.h>
00025 #include <qtooltip.h>
00026 #include <qwhatsthis.h>
00027 
00028 /*
00029  *  Constructs a CheckoutDialogBase as a child of 'parent', with the
00030  *  name 'name' and widget flags set to 'f'.
00031  */
00032 CheckoutDialogBase::CheckoutDialogBase( QWidget* parent, const char* name, WFlags fl )
00033     : QWidget( parent, name, fl )
00034 {
00035     if ( !name )
00036     setName( "CheckoutDialogBase" );
00037     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, sizePolicy().hasHeightForWidth() ) );
00038     CheckoutDialogBaseLayout = new QVBoxLayout( this, 11, 6, "CheckoutDialogBaseLayout"); 
00039 
00040     groupBox1 = new QGroupBox( this, "groupBox1" );
00041     groupBox1->setColumnLayout(0, Qt::Vertical );
00042     groupBox1->layout()->setSpacing( 6 );
00043     groupBox1->layout()->setMargin( 11 );
00044     groupBox1Layout = new QVBoxLayout( groupBox1->layout() );
00045     groupBox1Layout->setAlignment( Qt::AlignTop );
00046 
00047     textLabel1_2 = new QLabel( groupBox1, "textLabel1_2" );
00048     groupBox1Layout->addWidget( textLabel1_2 );
00049 
00050     workURLRequester = new KURLRequester( groupBox1, "workURLRequester" );
00051     groupBox1Layout->addWidget( workURLRequester );
00052 
00053     layout4 = new QGridLayout( 0, 1, 1, 0, 6, "layout4"); 
00054 
00055     serverPaths = new QComboBox( FALSE, groupBox1, "serverPaths" );
00056     serverPaths->setEditable( TRUE );
00057 
00058     layout4->addWidget( serverPaths, 1, 1 );
00059 
00060     textLabel2 = new QLabel( groupBox1, "textLabel2" );
00061     textLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, textLabel2->sizePolicy().hasHeightForWidth() ) );
00062 
00063     layout4->addWidget( textLabel2, 0, 1 );
00064     groupBox1Layout->addLayout( layout4 );
00065     CheckoutDialogBaseLayout->addWidget( groupBox1 );
00066 
00067     groupBox2 = new QGroupBox( this, "groupBox2" );
00068     groupBox2->setColumnLayout(0, Qt::Vertical );
00069     groupBox2->layout()->setSpacing( 6 );
00070     groupBox2->layout()->setMargin( 11 );
00071     groupBox2Layout = new QVBoxLayout( groupBox2->layout() );
00072     groupBox2Layout->setAlignment( Qt::AlignTop );
00073 
00074     layout5 = new QGridLayout( 0, 1, 1, 0, 6, "layout5"); 
00075     spacer4 = new QSpacerItem( 156, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00076     layout5->addItem( spacer4, 1, 1 );
00077 
00078     textLabel1_4 = new QLabel( groupBox2, "textLabel1_4" );
00079 
00080     layout5->addWidget( textLabel1_4, 0, 0 );
00081 
00082     textLabel1_3 = new QLabel( groupBox2, "textLabel1_3" );
00083     textLabel1_3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, textLabel1_3->sizePolicy().hasHeightForWidth() ) );
00084 
00085     layout5->addWidget( textLabel1_3, 0, 2 );
00086 
00087     tagEdit = new QLineEdit( groupBox2, "tagEdit" );
00088     tagEdit->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, tagEdit->sizePolicy().hasHeightForWidth() ) );
00089 
00090     layout5->addWidget( tagEdit, 1, 2 );
00091 
00092     moduleEdit = new QLineEdit( groupBox2, "moduleEdit" );
00093 
00094     layout5->addWidget( moduleEdit, 1, 0 );
00095     groupBox2Layout->addLayout( layout5 );
00096 
00097     pruneDirsCheck = new QCheckBox( groupBox2, "pruneDirsCheck" );
00098     pruneDirsCheck->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, pruneDirsCheck->sizePolicy().hasHeightForWidth() ) );
00099     pruneDirsCheck->setChecked( TRUE );
00100     groupBox2Layout->addWidget( pruneDirsCheck );
00101 
00102     modulesListView = new KListView( groupBox2, "modulesListView" );
00103     modulesListView->addColumn( tr2i18n( "Module" ) );
00104     modulesListView->addColumn( tr2i18n( "Real Path" ) );
00105     modulesListView->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)3, 0, 0, modulesListView->sizePolicy().hasHeightForWidth() ) );
00106     groupBox2Layout->addWidget( modulesListView );
00107 
00108     layout5_2 = new QHBoxLayout( 0, 0, 6, "layout5_2"); 
00109     spacer4_2 = new QSpacerItem( 421, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00110     layout5_2->addItem( spacer4_2 );
00111 
00112     fetchModulesButton = new QPushButton( groupBox2, "fetchModulesButton" );
00113     fetchModulesButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)0, 0, 0, fetchModulesButton->sizePolicy().hasHeightForWidth() ) );
00114     fetchModulesButton->setAutoDefault( TRUE );
00115     layout5_2->addWidget( fetchModulesButton );
00116     groupBox2Layout->addLayout( layout5_2 );
00117     CheckoutDialogBaseLayout->addWidget( groupBox2 );
00118     languageChange();
00119     resize( QSize(486, 470).expandedTo(minimumSizeHint()) );
00120     clearWState( WState_Polished );
00121 
00122     // tab order
00123     setTabOrder( workURLRequester, serverPaths );
00124     setTabOrder( serverPaths, moduleEdit );
00125     setTabOrder( moduleEdit, tagEdit );
00126     setTabOrder( tagEdit, modulesListView );
00127     setTabOrder( modulesListView, pruneDirsCheck );
00128     setTabOrder( pruneDirsCheck, fetchModulesButton );
00129 
00130     // buddies
00131     textLabel1_4->setBuddy( moduleEdit );
00132     textLabel1_3->setBuddy( tagEdit );
00133 }
00134 
00135 /*
00136  *  Destroys the object and frees any allocated resources
00137  */
00138 CheckoutDialogBase::~CheckoutDialogBase()
00139 {
00140     // no need to delete child widgets, Qt does it all for us
00141 }
00142 
00143 /*
00144  *  Sets the strings of the subwidgets using the current
00145  *  language.
00146  */
00147 void CheckoutDialogBase::languageChange()
00148 {
00149     setCaption( tr2i18n( "CVS Server Configuration" ) );
00150     groupBox1->setTitle( tr2i18n( "Configuration" ) );
00151     textLabel1_2->setText( tr2i18n( "&Local destination directory:" ) );
00152     textLabel2->setText( tr2i18n( "&Server path (e.g. :pserver:marios@cvs.kde.org:/home/kde):" ) );
00153     groupBox2->setTitle( tr2i18n( "Select Module" ) );
00154     textLabel1_4->setText( tr2i18n( "&Module:" ) );
00155     textLabel1_3->setText( tr2i18n( "&Tag/branch:" ) );
00156     pruneDirsCheck->setText( tr2i18n( "&Prune directories" ) );
00157     QWhatsThis::add( pruneDirsCheck, tr2i18n( "Creates subdirs if needed" ) );
00158     modulesListView->header()->setLabel( 0, tr2i18n( "Module" ) );
00159     modulesListView->header()->setLabel( 1, tr2i18n( "Real Path" ) );
00160     fetchModulesButton->setText( tr2i18n( "&Fetch Modules List" ) );
00161     QToolTip::add( fetchModulesButton, tr2i18n( "Fetch modules list from server" ) );
00162     QWhatsThis::add( fetchModulesButton, tr2i18n( "Click to fetch modules list from server you specified" ) );
00163 }
00164 
00165 #include "checkoutdialogbase.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 Tue Feb 22 09:22:43 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003