partexplorerformbase.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 "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
00025
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
00060
00061
00062 textLabel1->setBuddy( typeCombo );
00063 textLabel1_2->setBuddy( constraintsText );
00064 }
00065
00066
00067
00068
00069 PartExplorerFormBase::~PartExplorerFormBase()
00070 {
00071
00072 }
00073
00074
00075
00076
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"
This file is part of the documentation for KDevelop Version 3.1.2.