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

#include <qvariant.h>
#include <kpushbutton.h>
#include <qgroupbox.h>
#include <kcombobox.h>
#include <qlabel.h>
#include <qheader.h>
#include <klistview.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "kpushbutton.h"
#include "kcombobox.h"
#include "klistview.h"
static const unsigned char img0_encodingconfigbase[] = { 
    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,
    0x9f, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x56, 0xc1, 0x91, 0x83,
    0x30, 0x0c, 0x5c, 0x65, 0x28, 0x23, 0x95, 0xf8, 0x4b, 0x29, 0xd7, 0xc6,
    0xf9, 0x18, 0x9f, 0x69, 0x23, 0xd7, 0x09, 0x3c, 0xa9, 0x24, 0x7d, 0xe8,
    0x1e, 0x04, 0x1f, 0x18, 0x5b, 0x16, 0x66, 0xb8, 0xec, 0x27, 0xd1, 0x64,
    0x25, 0xad, 0xd6, 0x8a, 0x81, 0x18, 0xef, 0x45, 0x13, 0xbe, 0x31, 0xd2,
    0x5a, 0x08, 0x44, 0xe0, 0x4b, 0x74, 0x32, 0x88, 0x6e, 0x62, 0xf3, 0xd7,
    0x6f, 0x0c, 0xba, 0xa2, 0x3f, 0x00, 0xe0, 0xa6, 0x62, 0x31, 0x70, 0x95,
    0x88, 0xa6, 0x4c, 0x39, 0x0f, 0x66, 0xc2, 0xa2, 0x9f, 0x22, 0xb3, 0x75,
    0x0e, 0x00, 0x10, 0x0e, 0x09, 0xcc, 0x04, 0x06, 0x25, 0x5d, 0x5a, 0x37,
    0x9f, 0xcb, 0x6c, 0x39, 0x7a, 0x01, 0x42, 0x73, 0xa9, 0x41, 0x09, 0x7a,
    0x01, 0x15, 0x2b, 0x10, 0x8b, 0x3b, 0x27, 0xe0, 0x22, 0xe8, 0x04, 0xd0,
    0x7e, 0x79, 0x4a, 0xc8, 0x4d, 0x9f, 0x5c, 0x42, 0x22, 0xa1, 0x78, 0xed,
    0xbf, 0x4f, 0x99, 0x47, 0x3c, 0xab, 0x62, 0x60, 0xbf, 0x40, 0xda, 0xa9,
    0x35, 0x67, 0x9d, 0xaa, 0xc7, 0x20, 0x6a, 0x24, 0x82, 0x16, 0x44, 0x5c,
    0xdc, 0xfe, 0x5c, 0xed, 0xb7, 0x2f, 0xe1, 0xe9, 0x9b, 0x90, 0x39, 0x5c,
    0x71, 0x59, 0x48, 0xce, 0x56, 0x09, 0x08, 0x4d, 0xff, 0x3a, 0x54, 0x35,
    0x3f, 0x2c, 0x40, 0x33, 0xed, 0x91, 0xe6, 0x6a, 0x01, 0x47, 0x1b, 0x87,
    0x3c, 0x50, 0x51, 0xc4, 0xa5, 0x57, 0xb1, 0x06, 0xa2, 0x03, 0x35, 0x0b,
    0x76, 0xdd, 0xc3, 0x48, 0xd1, 0xbc, 0x06, 0x59, 0x01, 0xa5, 0xe9, 0xd5,
    0xb7, 0x64, 0xc1, 0x91, 0x06, 0x00, 0xbc, 0xeb, 0x61, 0xee, 0x06, 0xd3,
    0x73, 0x0a, 0x9f, 0x12, 0x7a, 0xe7, 0x31, 0xdc, 0xc7, 0x0d, 0x3f, 0xe4,
    0x7d, 0xed, 0x45, 0x2f, 0x22, 0x7a, 0xe7, 0x37, 0x7c, 0x7c, 0xac, 0x1c,
    0x98, 0x9e, 0x13, 0x0c, 0xa2, 0xe6, 0x82, 0xf8, 0x98, 0xbf, 0xc4, 0x12,
    0x62, 0x3e, 0xb0, 0x12, 0x60, 0xee, 0x06, 0x13, 0x5e, 0xca, 0x04, 0x8c,
    0x8f, 0x21, 0xc9, 0x5f, 0xe2, 0xf1, 0x67, 0xc8, 0xbe, 0xbe, 0xc5, 0xfc,
    0x20, 0xe0, 0xc8, 0x24, 0xb9, 0xc9, 0xd7, 0xf1, 0xf8, 0x3d, 0xa0, 0x77,
    0x7e, 0x93, 0xb7, 0xc4, 0x31, 0xff, 0x96, 0x52, 0x16, 0x26, 0x89, 0x10,
    0xce, 0x30, 0xc1, 0x4f, 0xc5, 0xbd, 0xf3, 0x20, 0xcc, 0x27, 0x69, 0x3b,
    0x0b, 0xdb, 0xd9, 0x1d, 0x9f, 0x78, 0x2e, 0xcc, 0xc1, 0x09, 0xfc, 0xed,
    0x80, 0x81, 0x41, 0xdb, 0xb5, 0x49, 0x27, 0xbc, 0xf3, 0x49, 0x7e, 0x2a,
    0xb6, 0x9d, 0x4d, 0xe6, 0x7f, 0x76, 0x96, 0xb2, 0x3b, 0xb0, 0xc4, 0xc3,
    0x63, 0xef, 0x04, 0x5e, 0x13, 0xb5, 0x5d, 0x1b, 0x8a, 0x4b, 0x4e, 0xf8,
    0xe8, 0x38, 0x96, 0xfc, 0xe0, 0xc0, 0xe8, 0x06, 0x2e, 0x4d, 0x92, 0x73,
    0xe2, 0x0c, 0x18, 0xa0, 0xec, 0x0e, 0xa4, 0x9c, 0xf0, 0xce, 0x67, 0x1d,
    0xa9, 0x85, 0xf4, 0x3a, 0xfa, 0x2f, 0xf8, 0x05, 0xc1, 0x36, 0xf3, 0x98,
    0x17, 0xe5, 0xcf, 0xa7, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44,
    0xae, 0x42, 0x60, 0x82
};


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

    m_ApplyButton = new KPushButton( this, "m_ApplyButton" );
    m_ApplyButton->setGeometry( QRect( 340, 410, 100, 30 ) );

    m_OKButton = new KPushButton( this, "m_OKButton" );
    m_OKButton->setGeometry( QRect( 120, 410, 100, 30 ) );

    m_CancelButton = new KPushButton( this, "m_CancelButton" );
    m_CancelButton->setGeometry( QRect( 230, 410, 100, 30 ) );

    groupBox2 = new QGroupBox( this, "groupBox2" );
    groupBox2->setGeometry( QRect( 10, 280, 430, 120 ) );

    m_EncodingCombobox = new KComboBox( FALSE, groupBox2, "m_EncodingCombobox" );
    m_EncodingCombobox->setGeometry( QRect( 190, 80, 230, 30 ) );

    m_GroupNameLabel = new QLabel( groupBox2, "m_GroupNameLabel" );
    m_GroupNameLabel->setGeometry( QRect( 190, 50, 230, 23 ) );
    m_GroupNameLabel->setFrameShape( QLabel::PopupPanel );
    m_GroupNameLabel->setFrameShadow( QLabel::Sunken );

    m_UserNameLabel = new QLabel( groupBox2, "m_UserNameLabel" );
    m_UserNameLabel->setGeometry( QRect( 190, 20, 230, 23 ) );
    m_UserNameLabel->setFrameShape( QLabel::PopupPanel );
    m_UserNameLabel->setFrameShadow( QLabel::Sunken );

    textLabel1 = new QLabel( groupBox2, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 20, 180, 20 ) );

    textLabel1_2 = new QLabel( groupBox2, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 10, 50, 180, 20 ) );

    textLabel3 = new QLabel( groupBox2, "textLabel3" );
    textLabel3->setGeometry( QRect( 10, 80, 180, 20 ) );

    groupBox1 = new QGroupBox( this, "groupBox1" );
    groupBox1->setGeometry( QRect( 10, 10, 430, 260 ) );
    groupBox1->setColumnLayout(0, Qt::Vertical );
    groupBox1->layout()->setSpacing( 6 );
    groupBox1->layout()->setMargin( 11 );
    groupBox1Layout = new QVBoxLayout( groupBox1->layout() );
    groupBox1Layout->setAlignment( Qt::AlignTop );

    m_HostListView = new KListView( groupBox1, "m_HostListView" );
    m_HostListView->setAllColumnsShowFocus( TRUE );
    groupBox1Layout->addWidget( m_HostListView );
    languageChange();
    resize( QSize(450, 450).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_HostListView, SIGNAL( clicked(QListViewItem*) ), this, SLOT( slotHostSelected(QListViewItem*) ) );
    connect( m_OKButton, SIGNAL( clicked() ), this, SLOT( slotOkClicked() ) );
    connect( m_ApplyButton, SIGNAL( clicked() ), this, SLOT( slotApplyClicked() ) );
    connect( m_CancelButton, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );
    connect( m_EncodingCombobox, SIGNAL( activated(int) ), this, SLOT( slotEncodingComboChanged(int) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPMsgEncodingConfigDialogBase::languageChange()
{
    setCaption( tr2i18n( "Encoding Configuration" ) );
    m_ApplyButton->setText( tr2i18n( "&Apply" ) );
    m_ApplyButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    m_OKButton->setText( tr2i18n( "&OK" ) );
    m_OKButton->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    m_CancelButton->setText( tr2i18n( "Ca&ncel" ) );
    m_CancelButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    groupBox2->setTitle( tr2i18n( "Entried host information" ) );
    m_EncodingCombobox->clear();
    m_EncodingCombobox->insertItem( tr2i18n( "Big5" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "Big5-HKSCS" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "eucJP" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "eucKR" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "GB2312" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "GBK" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "GB18030" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "JIS7" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "Shift-JIS" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "TSCII" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "utf8" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "KOI8-R" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "KOI8-U" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-1" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-2" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-3" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-4" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-5" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-6" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-7" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-8" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-8-i" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-9" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-10" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-13" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-14" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "ISO8859-15" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "IBM 850" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "IBM 866" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP874" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1250" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1251" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1252" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1253" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1254" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1255" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1256" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1257" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "CP1258" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "Apple Roman" ) );
    m_EncodingCombobox->insertItem( tr2i18n( "TIS-620" ) );
    m_EncodingCombobox->setCurrentItem( 8 );
    m_GroupNameLabel->setText( QString::null );
    textLabel1->setText( tr2i18n( "Nickname" ) );
    textLabel1_2->setText( tr2i18n( "GroupName" ) );
    textLabel3->setText( tr2i18n( "Encoding" ) );
    groupBox1->setTitle( tr2i18n( "Entried host" ) );
}

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

void KIPMsgEncodingConfigDialogBase::slotApplyClicked()
{
    qWarning( "KIPMsgEncodingConfigDialogBase::slotApplyClicked(): Not implemented yet" );
}

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

void KIPMsgEncodingConfigDialogBase::slotHostSelected(QListViewItem*)
{
    qWarning( "KIPMsgEncodingConfigDialogBase::slotHostSelected(QListViewItem*): Not implemented yet" );
}

void KIPMsgEncodingConfigDialogBase::slotEncodingComboChanged(int)
{
    qWarning( "KIPMsgEncodingConfigDialogBase::slotEncodingComboChanged(int): Not implemented yet" );
}

#include "encodingconfigbase.moc"
