buildtools/ant/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 Oct 19 07:57:22 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 "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 setCaption( tr2i18n( "Form1" ) ); 00054 ClassPath->setTitle( tr2i18n( "Class&path" ) ); 00055 } 00056 00057 #include "classpathwidget.moc"