#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file './newabsencenamebase.ui'
**
** Created: 木  7月 19 22:29:36 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 "newabsencenamebase.h"

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

#include "kpushbutton.h"
#include "klineedit.h"
static const unsigned char img0_newabsencenamebase[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x20, 0x00, 0x00, 0x00, 0x20,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x73, 0x7a, 0x7a, 0xf4, 0x00, 0x00, 0x01,
    0x47, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x96, 0xc1, 0x72, 0xc3,
    0x20, 0x0c, 0x44, 0x77, 0x33, 0xfe, 0xec, 0x52, 0x8f, 0x0d, 0xff, 0xad,
    0x1e, 0x5c, 0xd3, 0xc4, 0x80, 0x24, 0x70, 0x68, 0xf6, 0x94, 0x19, 0x84,
    0xf6, 0x49, 0x28, 0x18, 0x0a, 0x3e, 0xab, 0x25, 0xff, 0x12, 0xd4, 0x59,
    0x08, 0x12, 0x32, 0x85, 0x53, 0x40, 0x3e, 0x54, 0xf3, 0xdf, 0x35, 0x01,
    0x67, 0xf8, 0x03, 0x00, 0x1e, 0xae, 0x28, 0x01, 0x66, 0x41, 0x2c, 0x76,
    0xc8, 0x7d, 0x89, 0x10, 0x27, 0x3f, 0x2f, 0xcd, 0xf6, 0x75, 0x00, 0x80,
    0x72, 0x48, 0x10, 0x21, 0x04, 0xac, 0x76, 0xe9, 0xd9, 0xfc, 0x48, 0xf3,
    0x1a, 0xe3, 0x07, 0x50, 0xcc, 0x35, 0x03, 0x4b, 0x7e, 0x80, 0x81, 0x11,
    0xb8, 0xc2, 0xdd, 0x03, 0x98, 0x24, 0x1f, 0x00, 0xcb, 0xe1, 0xb1, 0xd4,
    0xaa, 0xbe, 0x3a, 0x84, 0xa4, 0x92, 0x7c, 0xf4, 0xdf, 0xe7, 0xdc, 0x47,
    0x39, 0xa8, 0x04, 0x28, 0x07, 0xc8, 0x5b, 0xb5, 0xe7, 0xac, 0x6b, 0xf9,
    0x04, 0xe4, 0xa2, 0x05, 0x78, 0x45, 0x8a, 0x39, 0xfd, 0xad, 0xdc, 0x1f,
    0x1f, 0xc2, 0xdb, 0x37, 0xa1, 0x48, 0xbe, 0xe2, 0x9a, 0xd2, 0x3a, 0x3b,
    0x04, 0x90, 0x4d, 0xff, 0x1c, 0x86, 0xcc, 0xbb, 0x01, 0x3c, 0xd5, 0xf6,
    0x98, 0xbb, 0x01, 0x7a, 0x8d, 0xf3, 0x3e, 0xd0, 0x84, 0x98, 0x7a, 0x15,
    0x7b, 0xa4, 0x76, 0x60, 0x64, 0xc0, 0xe6, 0x7d, 0x8c, 0x1c, 0xe6, 0x23,
    0x6a, 0x02, 0x58, 0xd5, 0xbb, 0x6f, 0x49, 0xa3, 0x23, 0x0b, 0x00, 0xc4,
    0x2d, 0xb9, 0x92, 0x9d, 0x4a, 0x5b, 0x44, 0x44, 0x63, 0xcf, 0x37, 0x0a,
    0xe8, 0x13, 0x22, 0x6d, 0xf1, 0x75, 0x61, 0xb5, 0x8e, 0x60, 0xde, 0x5b,
    0x34, 0xab, 0x7b, 0x06, 0x8a, 0x2a, 0xae, 0xeb, 0x7b, 0x54, 0x9f, 0x6f,
    0xb7, 0x01, 0x3c, 0x4a, 0x7b, 0x2c, 0x40, 0x5b, 0xe0, 0x4d, 0x80, 0xb4,
    0x97, 0x1b, 0xac, 0xea, 0x6b, 0xf1, 0xc4, 0x71, 0x92, 0x61, 0x0d, 0x08,
    0x6b, 0x28, 0x62, 0x28, 0x47, 0x60, 0xb3, 0x69, 0xb5, 0x4d, 0x00, 0x10,
    0x3b, 0x60, 0x6a, 0x39, 0xe2, 0x16, 0xf1, 0xb5, 0x06, 0x9a, 0x00, 0x1a,
    0x44, 0x0f, 0x4c, 0x2d, 0x87, 0x9c, 0x8f, 0x31, 0x0b, 0xc0, 0x03, 0x31,
    0x22, 0x01, 0xe8, 0xfe, 0x1a, 0x3e, 0x57, 0xf9, 0x4e, 0x18, 0xed, 0x39,
    0xfa, 0x2f, 0xfa, 0x01, 0x0a, 0xe4, 0x7b, 0x1d, 0x5c, 0x06, 0xbc, 0xac,
    0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a NamingNewAbsenceModeBase 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.
 */
NamingNewAbsenceModeBase::NamingNewAbsenceModeBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    QImage img;
    img.loadFromData( img0_newabsencenamebase, sizeof( img0_newabsencenamebase ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "NamingNewAbsenceModeBase" );
    setMinimumSize( QSize( 458, 72 ) );
    setMaximumSize( QSize( 458, 72 ) );
    setBaseSize( QSize( 458, 72 ) );
    setIcon( image0 );

    textLabel1_2 = new QLabel( this, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 10, 10, 110, 30 ) );

    m_CancelButton = new KPushButton( this, "m_CancelButton" );
    m_CancelButton->setGeometry( QRect( 360, 40, 90, 30 ) );

    m_UniqueIdEditbox = new KLineEdit( this, "m_UniqueIdEditbox" );
    m_UniqueIdEditbox->setGeometry( QRect( 120, 10, 330, 26 ) );

    m_OKButton = new KPushButton( this, "m_OKButton" );
    m_OKButton->setGeometry( QRect( 260, 40, 90, 30 ) );
    m_OKButton->setDefault( TRUE );
    languageChange();
    resize( QSize(458, 72).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_CancelButton, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );
    connect( m_OKButton, SIGNAL( clicked() ), this, SLOT( slotOkClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void NamingNewAbsenceModeBase::languageChange()
{
    setCaption( tr2i18n( "Naming for new absence mode unique identifier" ) );
    textLabel1_2->setText( tr2i18n( "Identifier:" ) );
    m_CancelButton->setText( tr2i18n( "C&ancel" ) );
    m_CancelButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    m_OKButton->setText( tr2i18n( "&OK" ) );
    m_OKButton->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
}

void NamingNewAbsenceModeBase::slotCancelClicked()
{
    qWarning( "NamingNewAbsenceModeBase::slotCancelClicked(): Not implemented yet" );
}

void NamingNewAbsenceModeBase::slotOkClicked()
{
    qWarning( "NamingNewAbsenceModeBase::slotOkClicked(): Not implemented yet" );
}

#include "newabsencenamebase.moc"
