#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './kbloggeruploadblank.ui'
**
** Created: Fri Jan 30 08:24:44 2009
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "kbloggeruploadblank.h"

#include <qvariant.h>
#include <qpushbutton.h>
#include <qlabel.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "klineedit.h"
#include "kpushbutton.h"
/*
 *  Constructs a KBloggerUploadBlank as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KBloggerUploadBlank::KBloggerUploadBlank( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "KBloggerUploadBlank" );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( QSize( 375, 75 ) );
    setMaximumSize( QSize( 375, 75 ) );

    QWidget* privateLayoutWidget = new QWidget( this, "MainLayout" );
    privateLayoutWidget->setGeometry( QRect( 0, 0, 366, 78 ) );
    MainLayout = new QVBoxLayout( privateLayoutWidget, 11, 6, "MainLayout"); 

    FileLayout = new QHBoxLayout( 0, 0, 6, "FileLayout"); 

    FileTextLabel = new QLabel( privateLayoutWidget, "FileTextLabel" );
    FileTextLabel->setMinimumSize( QSize( 60, 0 ) );
    FileLayout->addWidget( FileTextLabel );

    FileLineEdit = new KLineEdit( privateLayoutWidget, "FileLineEdit" );
    FileLayout->addWidget( FileLineEdit );

    OpenPushButton = new KPushButton( privateLayoutWidget, "OpenPushButton" );
    FileLayout->addWidget( OpenPushButton );
    MainLayout->addLayout( FileLayout );

    NameLayout = new QHBoxLayout( 0, 0, 6, "NameLayout"); 

    NameTextLabel = new QLabel( privateLayoutWidget, "NameTextLabel" );
    NameTextLabel->setMinimumSize( QSize( 60, 0 ) );
    NameLayout->addWidget( NameTextLabel );

    NameLineEdit = new KLineEdit( privateLayoutWidget, "NameLineEdit" );
    NameLayout->addWidget( NameLineEdit );

    UploadPushButton = new KPushButton( privateLayoutWidget, "UploadPushButton" );
    NameLayout->addWidget( UploadPushButton );
    MainLayout->addLayout( NameLayout );
    languageChange();
    resize( QSize(375, 75).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( OpenPushButton, SIGNAL( clicked() ), this, SLOT( openSlot() ) );
    connect( UploadPushButton, SIGNAL( clicked() ), this, SLOT( uploadSlot() ) );

    // tab order
    setTabOrder( FileLineEdit, NameLineEdit );
    setTabOrder( NameLineEdit, UploadPushButton );
    setTabOrder( UploadPushButton, OpenPushButton );
}

/*
 *  Destroys the object and frees any allocated resources
 */
KBloggerUploadBlank::~KBloggerUploadBlank()
{
    // no need to delete child widgets, Qt does it all for us
}

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KBloggerUploadBlank::languageChange()
{
    setCaption( tr2i18n( "Upload" ) );
    FileTextLabel->setText( tr2i18n( "File:" ) );
    OpenPushButton->setText( tr2i18n( "&Open" ) );
    NameTextLabel->setText( tr2i18n( "Name:" ) );
    UploadPushButton->setText( tr2i18n( "&Upload" ) );
}

void KBloggerUploadBlank::openSlot()
{
    qWarning( "KBloggerUploadBlank::openSlot(): Not implemented yet" );
}

void KBloggerUploadBlank::uploadSlot()
{
    qWarning( "KBloggerUploadBlank::uploadSlot(): Not implemented yet" );
}

#include "kbloggeruploadblank.moc"
