KDevelop API Documentation

createpcsdialogbase.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 './createpcsdialogbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:53:05 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 "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  *  Constructs a CreatePCSDialogBase as a child of 'parent', with the
00027  *  name 'name' and widget flags set to 'f'.
00028  *
00029  *  The wizard will by default be modeless, unless you set 'modal' to
00030  *  TRUE to construct a modal wizard.
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     // signals and slots connections
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  *  Destroys the object and frees any allocated resources
00072  */
00073 CreatePCSDialogBase::~CreatePCSDialogBase()
00074 {
00075     // no need to delete child widgets, Qt does it all for us
00076 }
00077 
00078 /*
00079  *  Sets the strings of the subwidgets using the current
00080  *  language.
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"
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:46 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003