parts/appwizard/vcs_form.cpp
Go to the documentation of this file.00001
#include <kdialog.h>
00002
#include <klocale.h>
00003
00004
00005
00006
00007
00008
00009
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
00025
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
00055 connect(
combo, SIGNAL( activated(
int) ),
stack, SLOT( raiseWidget(
int) ) );
00056
00057
00058
textLabel1->setBuddy(
combo );
00059 }
00060
00061
00062
00063
00064 VcsForm::~VcsForm()
00065 {
00066
00067 }
00068
00069
00070
00071
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"
This file is part of the documentation for KDevelop Version 3.0.4.