KDevelop API Documentation

parts/appwizard/vcs_form.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 './vcs_form.ui' 00005 ** 00006 ** Created: Wed Oct 6 17:19:46 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 "vcs_form.h" 00013 00014 #include <qvariant.h> 00015 #include <kdialog.h> 00016 #include <qwidgetstack.h> 00017 #include <qlabel.h> 00018 #include <qcombobox.h> 00019 #include <qlayout.h> 00020 #include <qtooltip.h> 00021 #include <qwhatsthis.h> 00022 00023 /* 00024 * Constructs a VcsForm as a child of 'parent', with the 00025 * name 'name' and widget flags set to 'f'. 00026 */ 00027 VcsForm::VcsForm( QWidget* parent, const char* name, WFlags fl ) 00028 : QWidget( parent, name, fl ) 00029 { 00030 if ( !name ) 00031 setName( "VcsForm" ); 00032 VcsFormLayout = new QGridLayout( this, 1, 1, KDialog::marginHint(), KDialog::spacingHint(), "VcsFormLayout"); 00033 00034 stack = new QWidgetStack( this, "stack" ); 00035 00036 page = new QWidget( stack, "page" ); 00037 stack->addWidget( page, 0 ); 00038 00039 VcsFormLayout->addMultiCellWidget( stack, 1, 1, 0, 2 ); 00040 00041 textLabel1 = new QLabel( this, "textLabel1" ); 00042 00043 VcsFormLayout->addWidget( textLabel1, 0, 0 ); 00044 00045 combo = new QComboBox( FALSE, this, "combo" ); 00046 00047 VcsFormLayout->addWidget( combo, 0, 1 ); 00048 spacer1 = new QSpacerItem( 110, 20, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00049 VcsFormLayout->addItem( spacer1, 0, 2 ); 00050 languageChange(); 00051 resize( QSize(600, 480).expandedTo(minimumSizeHint()) ); 00052 clearWState( WState_Polished ); 00053 00054 // signals and slots connections 00055 connect( combo, SIGNAL( activated(int) ), stack, SLOT( raiseWidget(int) ) ); 00056 00057 // buddies 00058 textLabel1->setBuddy( combo ); 00059 } 00060 00061 /* 00062 * Destroys the object and frees any allocated resources 00063 */ 00064 VcsForm::~VcsForm() 00065 { 00066 // no need to delete child widgets, Qt does it all for us 00067 } 00068 00069 /* 00070 * Sets the strings of the subwidgets using the current 00071 * language. 00072 */ 00073 void VcsForm::languageChange() 00074 { 00075 setCaption( tr2i18n( "Vcs Form" ) ); 00076 textLabel1->setText( tr2i18n( "&Version control system:" ) ); 00077 } 00078 00079 #include "vcs_form.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 Wed Oct 6 17:39:09 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003