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