KDevelop API Documentation

choosesubprojectdlgbase.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 './choosesubprojectdlgbase.ui'
00005 **
00006 ** Created: Tue Mar 22 23:57:44 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 "choosesubprojectdlgbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qpushbutton.h>
00016 #include <qheader.h>
00017 #include <klistview.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 
00022 /*
00023  *  Constructs a ChooseSubprojectDlgBase as a child of 'parent', with the
00024  *  name 'name' and widget flags set to 'f'.
00025  *
00026  *  The dialog will by default be modeless, unless you set 'modal' to
00027  *  TRUE to construct a modal dialog.
00028  */
00029 ChooseSubprojectDlgBase::ChooseSubprojectDlgBase( QWidget* parent, const char* name, bool modal, WFlags fl )
00030     : QDialog( parent, name, modal, fl )
00031 {
00032     if ( !name )
00033     setName( "ChooseSubprojectDlgBase" );
00034     setSizeGripEnabled( TRUE );
00035     ChooseSubprojectDlgBaseLayout = new QGridLayout( this, 1, 1, 11, 6, "ChooseSubprojectDlgBaseLayout"); 
00036 
00037     Layout1 = new QHBoxLayout( 0, 0, 6, "Layout1"); 
00038     Horizontal_Spacing2 = new QSpacerItem( 20, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
00039     Layout1->addItem( Horizontal_Spacing2 );
00040 
00041     buttonOk = new QPushButton( this, "buttonOk" );
00042     buttonOk->setAutoDefault( TRUE );
00043     buttonOk->setDefault( TRUE );
00044     Layout1->addWidget( buttonOk );
00045 
00046     buttonCancel = new QPushButton( this, "buttonCancel" );
00047     buttonCancel->setAutoDefault( TRUE );
00048     Layout1->addWidget( buttonCancel );
00049 
00050     ChooseSubprojectDlgBaseLayout->addLayout( Layout1, 1, 0 );
00051 
00052     subprojects_view = new KListView( this, "subprojects_view" );
00053     subprojects_view->addColumn( tr2i18n( "Subprojects" ) );
00054     subprojects_view->setResizeMode( KListView::LastColumn );
00055 
00056     ChooseSubprojectDlgBaseLayout->addWidget( subprojects_view, 0, 0 );
00057     languageChange();
00058     resize( QSize(511, 282).expandedTo(minimumSizeHint()) );
00059     clearWState( WState_Polished );
00060 
00061     // signals and slots connections
00062     connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00063     connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00064 
00065     // tab order
00066     setTabOrder( subprojects_view, buttonOk );
00067     setTabOrder( buttonOk, buttonCancel );
00068 }
00069 
00070 /*
00071  *  Destroys the object and frees any allocated resources
00072  */
00073 ChooseSubprojectDlgBase::~ChooseSubprojectDlgBase()
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 ChooseSubprojectDlgBase::languageChange()
00083 {
00084     setCaption( tr2i18n( "Select Subproject" ) );
00085     buttonOk->setText( tr2i18n( "&OK" ) );
00086     buttonOk->setAccel( QKeySequence( QString::null ) );
00087     buttonCancel->setText( tr2i18n( "&Cancel" ) );
00088     buttonCancel->setAccel( QKeySequence( QString::null ) );
00089     subprojects_view->header()->setLabel( 0, tr2i18n( "Subprojects" ) );
00090 }
00091 
00092 #include "choosesubprojectdlgbase.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:40 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003