KDevelop API Documentation

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