#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './notifywidgetbase.ui'
**
** Created: 木  7月 19 22:29:38 2007
**      by: The User Interface Compiler ($Id: qt/main.cpp   3.3.5   edited Aug 31 12:13 $)
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "notifywidgetbase.h"

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

/*
 *  Constructs a KIpMsgNotifierBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KIpMsgNotifierBase::KIpMsgNotifierBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "KIpMsgNotifierBase" );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, sizePolicy().hasHeightForWidth() ) );
    KIpMsgNotifierBaseLayout = new QHBoxLayout( this, 1, 1, "KIpMsgNotifierBaseLayout"); 
    KIpMsgNotifierBaseLayout->setResizeMode( QLayout::Minimum );

    m_MessageLabel = new QLabel( this, "m_MessageLabel" );
    m_MessageLabel->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)1, 0, 0, m_MessageLabel->sizePolicy().hasHeightForWidth() ) );
    m_MessageLabel->setTextFormat( QLabel::PlainText );
    m_MessageLabel->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignLeft ) );
    KIpMsgNotifierBaseLayout->addWidget( m_MessageLabel );

    m_ActionButton = new KPushButton( this, "m_ActionButton" );
    m_ActionButton->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, m_ActionButton->sizePolicy().hasHeightForWidth() ) );
    m_ActionButton->setMinimumSize( QSize( 32, 32 ) );
    m_ActionButton->setMaximumSize( QSize( 32, 32 ) );
    KIpMsgNotifierBaseLayout->addWidget( m_ActionButton );
    languageChange();
    resize( QSize(337, 34).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_ActionButton, SIGNAL( clicked() ), this, SLOT( slotCommandButtonClick() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIpMsgNotifierBase::languageChange()
{
    setCaption( tr2i18n( "Form1" ) );
    m_MessageLabel->setText( tr2i18n( "Message from AAA 12222,222,2,2,2,2." ) );
    m_ActionButton->setText( QString::null );
}

void KIpMsgNotifierBase::slotCommandButtonClick()
{
    qWarning( "KIpMsgNotifierBase::slotCommandButtonClick(): Not implemented yet" );
}

#include "notifywidgetbase.moc"
