akregator/src

addfeedwidgetbase.cpp

00001 #include <kdialog.h>
00002 #include <klocale.h>
00003 /****************************************************************************
00004 ** Form implementation generated from reading ui file './addfeedwidgetbase.ui'
00005 **
00006 ** Created: Thu Mar 29 06:02:51 2007
00007 **      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.8   edited Jan 11 14:47 $)
00008 **
00009 ** WARNING! All changes made in this file will be lost!
00010 ****************************************************************************/
00011 
00012 #include "addfeedwidgetbase.h"
00013 
00014 #include <qvariant.h>
00015 #include <qlabel.h>
00016 #include <klineedit.h>
00017 #include <ksqueezedtextlabel.h>
00018 #include <qlayout.h>
00019 #include <qtooltip.h>
00020 #include <qwhatsthis.h>
00021 #include "klineedit.h"
00022 #include "ksqueezedtextlabel.h"
00023 
00024 /*
00025  *  Constructs a Akregator::AddFeedWidgetBase as a child of 'parent', with the
00026  *  name 'name' and widget flags set to 'f'.
00027  */
00028 Akregator::AddFeedWidgetBase::AddFeedWidgetBase( QWidget* parent, const char* name, WFlags fl )
00029     : QWidget( parent, name, fl )
00030 {
00031     if ( !name )
00032     setName( "AddFeedWidget" );
00033     AddFeedWidgetLayout = new QVBoxLayout( this, 0, 6, "AddFeedWidgetLayout"); 
00034 
00035     layout16 = new QHBoxLayout( 0, 0, 6, "layout16"); 
00036 
00037     pixmapLabel1 = new QLabel( this, "pixmapLabel1" );
00038     pixmapLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, pixmapLabel1->sizePolicy().hasHeightForWidth() ) );
00039     pixmapLabel1->setScaledContents( FALSE );
00040     layout16->addWidget( pixmapLabel1 );
00041     spacer2 = new QSpacerItem( 16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
00042     layout16->addItem( spacer2 );
00043 
00044     layout15 = new QGridLayout( 0, 1, 1, 0, 6, "layout15"); 
00045 
00046     urlEdit = new KLineEdit( this, "urlEdit" );
00047     urlEdit->setMinimumSize( QSize( 200, 0 ) );
00048 
00049     layout15->addMultiCellWidget( urlEdit, 1, 1, 1, 2 );
00050 
00051     textLabel1 = new QLabel( this, "textLabel1" );
00052     QFont textLabel1_font(  textLabel1->font() );
00053     textLabel1_font.setBold( TRUE );
00054     textLabel1->setFont( textLabel1_font ); 
00055 
00056     layout15->addMultiCellWidget( textLabel1, 0, 0, 0, 2 );
00057 
00058     textLabel3 = new QLabel( this, "textLabel3" );
00059 
00060     layout15->addWidget( textLabel3, 1, 0 );
00061     layout16->addLayout( layout15 );
00062     AddFeedWidgetLayout->addLayout( layout16 );
00063 
00064     statusLabel = new KSqueezedTextLabel( this, "statusLabel" );
00065     AddFeedWidgetLayout->addWidget( statusLabel );
00066     spacer5 = new QSpacerItem( 20, 50, QSizePolicy::Minimum, QSizePolicy::Expanding );
00067     AddFeedWidgetLayout->addItem( spacer5 );
00068     languageChange();
00069     resize( QSize(567, 176).expandedTo(minimumSizeHint()) );
00070     clearWState( WState_Polished );
00071 
00072     // buddies
00073     textLabel3->setBuddy( urlEdit );
00074 }
00075 
00076 /*
00077  *  Destroys the object and frees any allocated resources
00078  */
00079 Akregator::AddFeedWidgetBase::~AddFeedWidgetBase()
00080 {
00081     // no need to delete child widgets, Qt does it all for us
00082 }
00083 
00084 /*
00085  *  Sets the strings of the subwidgets using the current
00086  *  language.
00087  */
00088 void Akregator::AddFeedWidgetBase::languageChange()
00089 {
00090     setCaption( tr2i18n( "Add Feed" ) );
00091     textLabel1->setText( tr2i18n( "Add New Source" ) );
00092     textLabel3->setText( tr2i18n( "Feed &URL:" ) );
00093     statusLabel->setText( tr2i18n( "Status" ) );
00094 }
00095 
00096 #include "addfeedwidgetbase.moc"
KDE Home | KDE Accessibility Home | Description of Access Keys