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

#include "kbloggerhtmldialogblank.h"

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

/*
 *  Constructs a KBloggerHtmlDialogBlank as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 *
 *  The dialog will by default be modeless, unless you set 'modal' to
 *  TRUE to construct a modal dialog.
 */
KBloggerHtmlDialogBlank::KBloggerHtmlDialogBlank( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    if ( !name )
	setName( "KBloggerHtmlDialogBlank" );
    KBloggerHtmlDialogBlankLayout = new QGridLayout( this, 1, 1, 11, 6, "KBloggerHtmlDialogBlankLayout"); 

    layout34 = new QHBoxLayout( 0, 0, 6, "layout34"); 
    spacer1 = new QSpacerItem( 353, 20, QSizePolicy::Expanding, QSizePolicy::Minimum );
    layout34->addItem( spacer1 );

    AddPushButton = new KPushButton( this, "AddPushButton" );
    layout34->addWidget( AddPushButton );

    KBloggerHtmlDialogBlankLayout->addLayout( layout34, 2, 0 );

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

    textLabel1 = new QLabel( this, "textLabel1" );
    layout37->addWidget( textLabel1 );

    codeLineEdit = new KLineEdit( this, "codeLineEdit" );
    codeLineEdit->setMinimumSize( QSize( 350, 0 ) );
    layout37->addWidget( codeLineEdit );

    KBloggerHtmlDialogBlankLayout->addLayout( layout37, 0, 0 );
    spacer19 = new QSpacerItem( 20, 35, QSizePolicy::Minimum, QSizePolicy::Expanding );
    KBloggerHtmlDialogBlankLayout->addItem( spacer19, 3, 0 );
    languageChange();
    resize( QSize(457, 89).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( AddPushButton, SIGNAL( clicked() ), this, SLOT( addHtmlSlot() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KBloggerHtmlDialogBlank::languageChange()
{
    setCaption( tr2i18n( "Add HTML Code..." ) );
    AddPushButton->setText( tr2i18n( "&Add" ) );
    AddPushButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    textLabel1->setText( tr2i18n( "Code" ) );
    codeLineEdit->setText( QString::null );
}

void KBloggerHtmlDialogBlank::addHtmlSlot()
{
    qWarning( "KBloggerHtmlDialogBlank::addHtmlSlot(): Not implemented yet" );
}

#include "kbloggerhtmldialogblank.moc"
