KDevelop API Documentation

partexplorerformbase.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 './partexplorerformbase.ui'
00005 **
00006 ** Created: Tue Feb 22 08:59:09 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 "partexplorerformbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <kdialog.h>
00016 #include <qlabel.h>
00017 #include <kcombobox.h>
00018 #include <qtextedit.h>
00019 #include <qlayout.h>
00020 #include <qtooltip.h>
00021 #include <qwhatsthis.h>
00022 
00023 /*
00024  *  Constructs a PartExplorerFormBase as a child of 'parent', with the
00025  *  name 'name' and widget flags set to 'f'.
00026  */
00027 PartExplorerFormBase::PartExplorerFormBase( QWidget* parent, const char* name, WFlags fl )
00028     : QWidget( parent, name, fl )
00029 {
00030     if ( !name )
00031     setName( "PartExplorerFormBase" );
00032     setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, sizePolicy().hasHeightForWidth() ) );
00033     PartExplorerFormBaseLayout = new QVBoxLayout( this, KDialog::marginHint(), KDialog::spacingHint(), "PartExplorerFormBaseLayout"); 
00034 
00035     textLabel1 = new QLabel( this, "textLabel1" );
00036     textLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, textLabel1->sizePolicy().hasHeightForWidth() ) );
00037     PartExplorerFormBaseLayout->addWidget( textLabel1 );
00038 
00039     typeCombo = new KComboBox( FALSE, this, "typeCombo" );
00040     typeCombo->setEditable( TRUE );
00041     typeCombo->setAutoCompletion( FALSE );
00042     PartExplorerFormBaseLayout->addWidget( typeCombo );
00043 
00044     textLabel1_2 = new QLabel( this, "textLabel1_2" );
00045     textLabel1_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)3, (QSizePolicy::SizeType)0, 0, 0, textLabel1_2->sizePolicy().hasHeightForWidth() ) );
00046     PartExplorerFormBaseLayout->addWidget( textLabel1_2 );
00047 
00048     constraintsText = new QTextEdit( this, "constraintsText" );
00049     constraintsText->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, constraintsText->sizePolicy().hasHeightForWidth() ) );
00050     PartExplorerFormBaseLayout->addWidget( constraintsText );
00051 
00052     resultsLabel = new QLabel( this, "resultsLabel" );
00053     resultsLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)0, 0, 0, resultsLabel->sizePolicy().hasHeightForWidth() ) );
00054     PartExplorerFormBaseLayout->addWidget( resultsLabel );
00055     languageChange();
00056     resize( QSize(335, 241).expandedTo(minimumSizeHint()) );
00057     clearWState( WState_Polished );
00058 
00059     // tab order
00060 
00061     // buddies
00062     textLabel1->setBuddy( typeCombo );
00063     textLabel1_2->setBuddy( constraintsText );
00064 }
00065 
00066 /*
00067  *  Destroys the object and frees any allocated resources
00068  */
00069 PartExplorerFormBase::~PartExplorerFormBase()
00070 {
00071     // no need to delete child widgets, Qt does it all for us
00072 }
00073 
00074 /*
00075  *  Sets the strings of the subwidgets using the current
00076  *  language.
00077  */
00078 void PartExplorerFormBase::languageChange()
00079 {
00080     setCaption( tr2i18n( "PartExplorer" ) );
00081     QToolTip::add( this, tr2i18n( "This is a front-end to KDE's KTrader: search your KDE documentation for more information about KDE services and KTrader" ) );
00082     textLabel1->setText( tr2i18n( "KDE service &type:" ) );
00083     QToolTip::add( textLabel1, QString::null );
00084     textLabel1_2->setText( tr2i18n( "&Additional constraints:" ) );
00085     QToolTip::add( textLabel1_2, QString::null );
00086     QToolTip::add( constraintsText, QString::null );
00087     QWhatsThis::add( constraintsText, tr2i18n( "<b>Constraints</b>Refine your query by writing additional constraints such as <i>([X-KDevelop-Scope]='Global')</i>)." ) );
00088     resultsLabel->setText( tr2i18n( "&Results" ) );
00089 }
00090 
00091 #include "partexplorerformbase.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:41 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003