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