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