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

#include <qvariant.h>
#include <qgroupbox.h>
#include <ktextedit.h>
#include <klineedit.h>
#include <kpushbutton.h>
#include <qlabel.h>
#include <klistbox.h>
#include <kcombobox.h>
#include <qcheckbox.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "ktextedit.h"
#include "klineedit.h"
#include "kpushbutton.h"
#include "klistbox.h"
#include "kcombobox.h"
static const unsigned char img0_absenceconfigbase[] = { 
    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,
    0x80, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x57, 0x51, 0xae, 0x83,
    0x20, 0x10, 0x9c, 0x6d, 0xbc, 0x62, 0x6f, 0x83, 0x35, 0x04, 0xcf, 0xe8,
    0x3b, 0xce, 0xf4, 0x03, 0xe5, 0x55, 0x84, 0x65, 0xc5, 0xe7, 0xeb, 0x24,
    0x86, 0x12, 0x17, 0x66, 0x76, 0x58, 0x81, 0x0a, 0xf1, 0x5d, 0x0c, 0xe9,
    0x17, 0x51, 0xd6, 0x22, 0x10, 0x01, 0x6f, 0xd1, 0x49, 0x88, 0x3c, 0x54,
    0xf2, 0xf5, 0x1d, 0x21, 0x77, 0xf0, 0x03, 0x00, 0x1e, 0xa6, 0x28, 0x02,
    0x77, 0x89, 0x18, 0xda, 0x21, 0xd7, 0x41, 0x0a, 0x36, 0xfd, 0x92, 0x99,
    0x6d, 0x73, 0x00, 0x80, 0xb2, 0x48, 0x20, 0x05, 0x84, 0x14, 0x5d, 0xfa,
    0x24, 0x8f, 0xd3, 0xec, 0x63, 0xec, 0x02, 0x14, 0x72, 0x8d, 0xa0, 0x05,
    0xbb, 0x80, 0x8e, 0x12, 0xc8, 0xc5, 0x5d, 0x13, 0x70, 0x13, 0x6c, 0x02,
    0xe4, 0x58, 0x3c, 0x2d, 0xd4, 0xb2, 0x2f, 0x16, 0xa1, 0x88, 0x32, 0x79,
    0xef, 0xd7, 0x67, 0x1c, 0x27, 0x8c, 0xaa, 0x08, 0x1c, 0x0b, 0xc8, 0x9a,
    0xb5, 0x65, 0xad, 0x4b, 0xf3, 0x11, 0x22, 0x83, 0x16, 0x60, 0x85, 0x08,
    0x9b, 0xd5, 0x5f, 0x9b, 0xfb, 0xeb, 0x45, 0x78, 0x79, 0x27, 0x24, 0xd3,
    0x16, 0x57, 0x85, 0xe6, 0x6c, 0x97, 0x80, 0x44, 0xfa, 0xcb, 0xd0, 0x45,
    0x7e, 0x5a, 0x80, 0x25, 0xdb, 0x33, 0xe4, 0x66, 0x01, 0x67, 0x89, 0xd3,
    0x38, 0x48, 0x53, 0xc4, 0xad, 0x5b, 0xb1, 0x05, 0xaa, 0x03, 0x3d, 0x05,
    0x76, 0xdf, 0x61, 0x64, 0x20, 0xef, 0x41, 0x55, 0x40, 0x2b, 0x7b, 0xf3,
    0x2e, 0xd9, 0x70, 0xe4, 0x01, 0x00, 0xc1, 0xcf, 0xe0, 0xb2, 0x6f, 0x35,
    0xcc, 0x3e, 0x1c, 0xe2, 0xd3, 0xb8, 0x82, 0xae, 0xed, 0xb2, 0x92, 0xc7,
    0x03, 0xeb, 0x59, 0x30, 0xfb, 0x40, 0x00, 0x70, 0x70, 0x98, 0x11, 0xc9,
    0xdd, 0x6b, 0xac, 0x66, 0x3f, 0xfb, 0x80, 0x3c, 0x7e, 0xeb, 0xe3, 0xa5,
    0x9c, 0x0b, 0x9e, 0xfb, 0xf8, 0x69, 0x94, 0xb4, 0x04, 0xee, 0x19, 0x27,
    0x73, 0x4f, 0xa7, 0x66, 0x8f, 0x85, 0xc5, 0xf8, 0xad, 0x8f, 0x1f, 0x56,
    0xaf, 0x6f, 0x79, 0x3c, 0xb0, 0x3a, 0x00, 0x4f, 0x5a, 0x33, 0x99, 0x7d,
    0x28, 0x66, 0x5e, 0xea, 0xbb, 0x69, 0xdc, 0x8d, 0x2b, 0xbc, 0x8f, 0xa5,
    0x14, 0x7c, 0x20, 0x17, 0x32, 0x6f, 0x09, 0xec, 0x9e, 0x5a, 0x9c, 0xd6,
    0x22, 0xfa, 0x91, 0x9e, 0x6c, 0xfe, 0x7a, 0x0d, 0x6c, 0x7d, 0x99, 0xca,
    0x0b, 0x1a, 0x4e, 0x38, 0x31, 0x7e, 0x38, 0xb1, 0x1b, 0xdf, 0x72, 0x60,
    0x6b, 0xf3, 0x2c, 0xf2, 0xa7, 0xc7, 0x09, 0x44, 0x57, 0xeb, 0x35, 0x60,
    0x75, 0xe2, 0x0a, 0x08, 0xc4, 0xaf, 0xa0, 0x54, 0xcd, 0x79, 0x9f, 0x0b,
    0x11, 0x7c, 0x00, 0x97, 0xbf, 0xfd, 0x9f, 0xaa, 0x5d, 0x47, 0xff, 0x05,
    0x6f, 0xa0, 0xc5, 0x5d, 0x4c, 0xfc, 0x13, 0x22, 0x03, 0x00, 0x00, 0x00,
    0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a KIpMsgAbsenceModeConfigDialogBase 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.
 */
KIpMsgAbsenceModeConfigDialogBase::KIpMsgAbsenceModeConfigDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    QImage img;
    img.loadFromData( img0_absenceconfigbase, sizeof( img0_absenceconfigbase ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "KIpMsgAbsenceModeConfigDialogBase" );
    setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, sizePolicy().hasHeightForWidth() ) );
    setMinimumSize( QSize( 640, 410 ) );
    setMaximumSize( QSize( 640, 410 ) );
    setBaseSize( QSize( 640, 410 ) );
    setIcon( image0 );

    groupBox7 = new QGroupBox( this, "groupBox7" );
    groupBox7->setGeometry( QRect( 300, 10, 330, 280 ) );

    m_DescriptionTextbox = new KTextEdit( groupBox7, "m_DescriptionTextbox" );
    m_DescriptionTextbox->setGeometry( QRect( 10, 60, 310, 210 ) );

    m_TitleEditbox = new KLineEdit( groupBox7, "m_TitleEditbox" );
    m_TitleEditbox->setGeometry( QRect( 120, 20, 120, 30 ) );

    m_SetButton = new KPushButton( groupBox7, "m_SetButton" );
    m_SetButton->setGeometry( QRect( 240, 20, 80, 30 ) );

    textLabel1 = new QLabel( groupBox7, "textLabel1" );
    textLabel1->setGeometry( QRect( 10, 20, 110, 20 ) );

    groupBox6 = new QGroupBox( this, "groupBox6" );
    groupBox6->setGeometry( QRect( 10, 10, 280, 280 ) );

    textLabel1_2 = new QLabel( groupBox6, "textLabel1_2" );
    textLabel1_2->setGeometry( QRect( 10, 20, 150, 20 ) );

    m_AddButton = new KPushButton( groupBox6, "m_AddButton" );
    m_AddButton->setGeometry( QRect( 10, 240, 90, 30 ) );

    m_DeleteButton = new KPushButton( groupBox6, "m_DeleteButton" );
    m_DeleteButton->setGeometry( QRect( 100, 240, 90, 30 ) );

    m_AbsenceModeListbox = new KListBox( groupBox6, "m_AbsenceModeListbox" );
    m_AbsenceModeListbox->setGeometry( QRect( 10, 60, 260, 170 ) );

    m_UpButton = new KPushButton( groupBox6, "m_UpButton" );
    m_UpButton->setGeometry( QRect( 190, 240, 40, 30 ) );

    m_DownButton = new KPushButton( groupBox6, "m_DownButton" );
    m_DownButton->setGeometry( QRect( 230, 240, 40, 30 ) );

    m_EncodingCombobox = new KComboBox( FALSE, groupBox6, "m_EncodingCombobox" );
    m_EncodingCombobox->setGeometry( QRect( 160, 20, 110, 30 ) );

    groupBox3 = new QGroupBox( this, "groupBox3" );
    groupBox3->setGeometry( QRect( 10, 290, 620, 60 ) );

    m_AutoAbsenceModeCheckbox = new QCheckBox( groupBox3, "m_AutoAbsenceModeCheckbox" );
    m_AutoAbsenceModeCheckbox->setGeometry( QRect( 10, 20, 590, 23 ) );

    m_ConfigAndAbsenceModeButton = new KPushButton( this, "m_ConfigAndAbsenceModeButton" );
    m_ConfigAndAbsenceModeButton->setGeometry( QRect( 120, 360, 260, 40 ) );

    m_ConfigOnlyButton = new KPushButton( this, "m_ConfigOnlyButton" );
    m_ConfigOnlyButton->setGeometry( QRect( 380, 360, 140, 40 ) );

    m_CloseButton = new KPushButton( this, "m_CloseButton" );
    m_CloseButton->setGeometry( QRect( 530, 360, 100, 40 ) );
    languageChange();
    resize( QSize(640, 410).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_AbsenceModeListbox, SIGNAL( selectionChanged(QListBoxItem*) ), this, SLOT( slotAbsenceModeChanged(QListBoxItem*) ) );
    connect( m_AddButton, SIGNAL( clicked() ), this, SLOT( slotAddClicked() ) );
    connect( m_ConfigAndAbsenceModeButton, SIGNAL( clicked() ), this, SLOT( slotConfigAndAbsenceModeClicked() ) );
    connect( m_ConfigOnlyButton, SIGNAL( clicked() ), this, SLOT( slotConfigOnlyClicked() ) );
    connect( m_DeleteButton, SIGNAL( clicked() ), this, SLOT( slotDeleteClicked() ) );
    connect( m_EncodingCombobox, SIGNAL( activated(int) ), this, SLOT( slotEncodingChanged(int) ) );
    connect( m_CloseButton, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );
    connect( m_SetButton, SIGNAL( clicked() ), this, SLOT( slotSetClicked() ) );
    connect( m_UpButton, SIGNAL( clicked() ), this, SLOT( slotUpClicked() ) );
    connect( m_DownButton, SIGNAL( clicked() ), this, SLOT( slotDownClicked() ) );

    // tab order
    setTabOrder( m_EncodingCombobox, m_AbsenceModeListbox );
    setTabOrder( m_AbsenceModeListbox, m_AddButton );
    setTabOrder( m_AddButton, m_DeleteButton );
    setTabOrder( m_DeleteButton, m_UpButton );
    setTabOrder( m_UpButton, m_DownButton );
    setTabOrder( m_DownButton, m_TitleEditbox );
    setTabOrder( m_TitleEditbox, m_SetButton );
    setTabOrder( m_SetButton, m_DescriptionTextbox );
    setTabOrder( m_DescriptionTextbox, m_AutoAbsenceModeCheckbox );
    setTabOrder( m_AutoAbsenceModeCheckbox, m_ConfigAndAbsenceModeButton );
    setTabOrder( m_ConfigAndAbsenceModeButton, m_ConfigOnlyButton );
    setTabOrder( m_ConfigOnlyButton, m_CloseButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIpMsgAbsenceModeConfigDialogBase::languageChange()
{
    setCaption( tr2i18n( "KIpMessenger - Absence Mode Configuration" ) );
    groupBox7->setTitle( tr2i18n( "Settings" ) );
    m_SetButton->setText( tr2i18n( "&Set" ) );
    m_SetButton->setAccel( QKeySequence( tr2i18n( "Alt+S" ) ) );
    textLabel1->setText( tr2i18n( "Title" ) );
    groupBox6->setTitle( tr2i18n( "Absence modes" ) );
    textLabel1_2->setText( tr2i18n( "Encoding" ) );
    m_AddButton->setText( tr2i18n( "&Add" ) );
    m_AddButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    m_DeleteButton->setText( tr2i18n( "&Delete" ) );
    m_DeleteButton->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
    m_UpButton->setText( QString::null );
    m_DownButton->setText( QString::null );
    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 );
    groupBox3->setTitle( tr2i18n( "Auto absence mode settings" ) );
    m_AutoAbsenceModeCheckbox->setText( tr2i18n( "Ena&ble auto absence mode,It cooperates with a screen saver." ) );
    m_AutoAbsenceModeCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) );
    m_ConfigAndAbsenceModeButton->setText( tr2i18n( "Confi&gure and Absence mode" ) );
    m_ConfigAndAbsenceModeButton->setAccel( QKeySequence( tr2i18n( "Alt+G" ) ) );
    m_ConfigOnlyButton->setText( tr2i18n( "Configure onl&y" ) );
    m_ConfigOnlyButton->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) );
    m_CloseButton->setText( tr2i18n( "C&lose" ) );
    m_CloseButton->setAccel( QKeySequence( tr2i18n( "Alt+L" ) ) );
}

void KIpMsgAbsenceModeConfigDialogBase::slotConfigAndAbsenceModeClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotConfigAndAbsenceModeClicked(): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotConfigOnlyClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotConfigOnlyClicked(): Not implemented yet" );
}

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

void KIpMsgAbsenceModeConfigDialogBase::slotSetClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotSetClicked(): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotAbsenceModeChanged(QListBoxItem*)
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotAbsenceModeChanged(QListBoxItem*): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotAddClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotAddClicked(): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotDeleteClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotDeleteClicked(): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotEncodingChanged(int)
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotEncodingChanged(int): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotDownClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotDownClicked(): Not implemented yet" );
}

void KIpMsgAbsenceModeConfigDialogBase::slotUpClicked()
{
    qWarning( "KIpMsgAbsenceModeConfigDialogBase::slotUpClicked(): Not implemented yet" );
}

#include "absenceconfigbase.moc"
