KDevelop API Documentation

classpathwidget.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 './classpathwidget.ui'
00005 **
00006 ** Created: Tue Feb 22 09:11:21 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 "classpathwidget.h"
00013 
00014 #include <qvariant.h>
00015 #include <keditlistbox.h>
00016 #include <kdialog.h>
00017 #include <qlayout.h>
00018 #include <qtooltip.h>
00019 #include <qwhatsthis.h>
00020 
00021 /*
00022  *  Constructs a ClassPathWidget as a child of 'parent', with the
00023  *  name 'name' and widget flags set to 'f'.
00024  */
00025 ClassPathWidget::ClassPathWidget( QWidget* parent, const char* name, WFlags fl )
00026     : QWidget( parent, name, fl )
00027 {
00028     if ( !name )
00029     setName( "ClassPathWidget" );
00030     ClassPathWidgetLayout = new QHBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "ClassPathWidgetLayout"); 
00031 
00032     ClassPath = new KEditListBox( this, "ClassPath" );
00033     ClassPathWidgetLayout->addWidget( ClassPath );
00034     languageChange();
00035     resize( QSize(471, 288).expandedTo(minimumSizeHint()) );
00036     clearWState( WState_Polished );
00037 }
00038 
00039 /*
00040  *  Destroys the object and frees any allocated resources
00041  */
00042 ClassPathWidget::~ClassPathWidget()
00043 {
00044     // no need to delete child widgets, Qt does it all for us
00045 }
00046 
00047 /*
00048  *  Sets the strings of the subwidgets using the current
00049  *  language.
00050  */
00051 void ClassPathWidget::languageChange()
00052 {
00053     ClassPath->setTitle( tr2i18n( "Class&path" ) );
00054 }
00055 
00056 #include "classpathwidget.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 Tue Feb 22 09:22:20 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003