KDevelop API Documentation

parts/ctags/occurestagsdlg.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 './occurestagsdlg.ui' 00005 ** 00006 ** Created: Tue Oct 19 07:49:30 2004 00007 ** by: The User Interface Compiler ($Id: qt/main.cpp 3.3.3 edited Nov 24 2003 $) 00008 ** 00009 ** WARNING! All changes made in this file will be lost! 00010 ****************************************************************************/ 00011 00012 #include "occurestagsdlg.h" 00013 00014 #include <qvariant.h> 00015 #include <qpushbutton.h> 00016 #include <qlistbox.h> 00017 #include <qlayout.h> 00018 #include <qtooltip.h> 00019 #include <qwhatsthis.h> 00020 00021 /* 00022 * Constructs a OccuresTagsDlg as a child of 'parent', with the 00023 * name 'name' and widget flags set to 'f'. 00024 * 00025 * The dialog will by default be modeless, unless you set 'modal' to 00026 * TRUE to construct a modal dialog. 00027 */ 00028 OccuresTagsDlg::OccuresTagsDlg( QWidget* parent, const char* name, bool modal, WFlags fl ) 00029 : QDialog( parent, name, modal, fl ) 00030 { 00031 if ( !name ) 00032 setName( "OccuresTagsDlg" ); 00033 OccuresTagsDlgLayout = new QGridLayout( this, 1, 1, 11, 6, "OccuresTagsDlgLayout"); 00034 00035 layout1 = new QGridLayout( 0, 1, 1, 0, 6, "layout1"); 00036 00037 mCancelBtn = new QPushButton( this, "mCancelBtn" ); 00038 00039 layout1->addWidget( mCancelBtn, 1, 1 ); 00040 spacer1 = new QSpacerItem( 166, 10, QSizePolicy::Expanding, QSizePolicy::Minimum ); 00041 layout1->addItem( spacer1, 1, 0 ); 00042 00043 mOcurresList = new QListBox( this, "mOcurresList" ); 00044 00045 layout1->addMultiCellWidget( mOcurresList, 0, 0, 0, 1 ); 00046 00047 OccuresTagsDlgLayout->addLayout( layout1, 0, 0 ); 00048 languageChange(); 00049 resize( QSize(630, 300).expandedTo(minimumSizeHint()) ); 00050 clearWState( WState_Polished ); 00051 00052 // signals and slots connections 00053 connect( mCancelBtn, SIGNAL( clicked() ), this, SLOT( close() ) ); 00054 00055 // tab order 00056 setTabOrder( mOcurresList, mCancelBtn ); 00057 } 00058 00059 /* 00060 * Destroys the object and frees any allocated resources 00061 */ 00062 OccuresTagsDlg::~OccuresTagsDlg() 00063 { 00064 // no need to delete child widgets, Qt does it all for us 00065 } 00066 00067 /* 00068 * Sets the strings of the subwidgets using the current 00069 * language. 00070 */ 00071 void OccuresTagsDlg::languageChange() 00072 { 00073 setCaption( tr2i18n( "Found Tags in Following Files" ) ); 00074 mCancelBtn->setText( tr2i18n( "&Cancel" ) ); 00075 } 00076 00077 #include "occurestagsdlg.moc"
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Oct 19 08:01:50 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003