choosesubprojectdlgbase.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 "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
00024
00025
00026
00027
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
00062 connect( buttonOk, SIGNAL( clicked() ), this, SLOT( accept() ) );
00063 connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( reject() ) );
00064
00065
00066 setTabOrder( subprojects_view, buttonOk );
00067 setTabOrder( buttonOk, buttonCancel );
00068 }
00069
00070
00071
00072
00073 ChooseSubprojectDlgBase::~ChooseSubprojectDlgBase()
00074 {
00075
00076 }
00077
00078
00079
00080
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"
This file is part of the documentation for KDevelop Version 3.1.2.