languages/cpp/createpcsdialogbase.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 "createpcsdialogbase.h"
00013
00014
#include <qvariant.h>
00015
#include <qpushbutton.h>
00016
#include <qwidget.h>
00017
#include <qheader.h>
00018
#include <klistview.h>
00019
#include <qprogressbar.h>
00020
#include <qlabel.h>
00021
#include <qlayout.h>
00022
#include <qtooltip.h>
00023
#include <qwhatsthis.h>
00024
00025
00026
00027
00028
00029
00030
00031
00032 CreatePCSDialogBase::CreatePCSDialogBase(
QWidget* parent,
const char* name,
bool modal, WFlags fl )
00033 :
QWizard( parent, name, modal, fl )
00034 {
00035
if ( !name )
00036 setName(
"CreatePCSDialogBase" );
00037
00038
page =
new QWidget(
this,
"page" );
00039
pageLayout =
new QVBoxLayout(
page, 11, 6,
"pageLayout");
00040
00041
importerListView =
new KListView(
page,
"importerListView" );
00042
importerListView->
addColumn( QString::null );
00043
importerListView->setResizeMode( KListView::LastColumn );
00044
pageLayout->addWidget(
importerListView );
00045 addPage(
page,
QString(
"") );
00046
00047
settingsPage =
new QWidget(
this,
"settingsPage" );
00048 addPage(
settingsPage,
QString(
"") );
00049
00050
finalPage =
new QWidget(
this,
"finalPage" );
00051
finalPageLayout =
new QVBoxLayout(
finalPage, 11, 6,
"finalPageLayout");
00052
00053
progressBar =
new QProgressBar(
finalPage,
"progressBar" );
00054
finalPageLayout->addWidget(
progressBar );
00055
00056
currentFile =
new QLabel(
finalPage,
"currentFile" );
00057
finalPageLayout->addWidget(
currentFile );
00058
spacer2_2 =
new QSpacerItem( 20, 81, QSizePolicy::Minimum, QSizePolicy::Expanding );
00059
finalPageLayout->addItem(
spacer2_2 );
00060 addPage(
finalPage,
QString(
"") );
00061
languageChange();
00062 resize(
QSize(477, 411).expandedTo(minimumSizeHint()) );
00063 clearWState( WState_Polished );
00064
00065
00066 connect(
this, SIGNAL( selected(
const QString&) ),
this, SLOT(
slotSelected(
const QString&) ) );
00067 connect(
importerListView, SIGNAL( clicked(
QListViewItem*) ),
this, SLOT(
slotSelectionChanged(
QListViewItem*) ) );
00068 }
00069
00070
00071
00072
00073 CreatePCSDialogBase::~CreatePCSDialogBase()
00074 {
00075
00076 }
00077
00078
00079
00080
00081
00082 void CreatePCSDialogBase::languageChange()
00083 {
00084 setCaption( tr2i18n(
"New Persistant Class Store" ) );
00085
importerListView->header()->setLabel( 0, QString::null );
00086 setTitle(
page, tr2i18n(
"Choose Library" ) );
00087 setTitle(
settingsPage, tr2i18n(
"Library Settings" ) );
00088
currentFile->setText( QString::null );
00089 setTitle(
finalPage, tr2i18n(
"Creating..." ) );
00090 }
00091
00092 void CreatePCSDialogBase::slotSelected(
const QString&)
00093 {
00094 qWarning(
"CreatePCSDialogBase::slotSelected(const QString&): Not implemented yet" );
00095 }
00096
00097 void CreatePCSDialogBase::slotSelectionChanged(
QListViewItem*)
00098 {
00099 qWarning(
"CreatePCSDialogBase::slotSelectionChanged(QListViewItem*): Not implemented yet" );
00100 }
00101
00102
#include "createpcsdialogbase.moc"
This file is part of the documentation for KDevelop Version 3.0.4.