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

#include <qvariant.h>
#include <qframe.h>
#include <kpushbutton.h>
#include <qgroupbox.h>
#include <qbuttongroup.h>
#include <qradiobutton.h>
#include <qcheckbox.h>
#include <qlabel.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "kpushbutton.h"
static const unsigned char img0_showconfigbase[] = { 
    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,
    0x9e, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x96, 0x41, 0x92, 0x83,
    0x20, 0x10, 0x45, 0x7f, 0xa7, 0x5c, 0xe6, 0x02, 0xdc, 0x2f, 0x37, 0xc8,
    0x76, 0x18, 0x8b, 0xd1, 0x6d, 0xe6, 0x04, 0x78, 0x3e, 0x2f, 0x90, 0x7d,
    0xcf, 0xc2, 0x40, 0x14, 0xa1, 0x69, 0xb5, 0x9c, 0xfc, 0x8d, 0x52, 0xf9,
    0xd0, 0xaf, 0x9b, 0x96, 0x40, 0x8c, 0xcf, 0xaa, 0x89, 0x6f, 0x8c, 0x3c,
    0x0b, 0x81, 0x08, 0x7c, 0x0a, 0x27, 0x83, 0xe8, 0x22, 0x06, 0x7f, 0xfd,
    0xc6, 0xa0, 0x33, 0xe2, 0x03, 0x00, 0x2e, 0x2a, 0x17, 0x03, 0x67, 0x41,
    0x34, 0x75, 0xcb, 0x71, 0x31, 0x13, 0x02, 0x3f, 0x25, 0xc5, 0xd6, 0x55,
    0x00, 0x80, 0xb0, 0x49, 0x60, 0x26, 0x30, 0x28, 0x5b, 0xa5, 0x79, 0xf0,
    0x69, 0x99, 0xa5, 0x47, 0x0f, 0x20, 0x04, 0x97, 0x02, 0xd4, 0xa4, 0x07,
    0xd8, 0xd1, 0x02, 0x29, 0xdc, 0x31, 0x80, 0x93, 0xa4, 0x03, 0xa0, 0x75,
    0xf3, 0xd4, 0x54, 0xca, 0x3e, 0xdb, 0x84, 0x44, 0xc2, 0xe2, 0x7b, 0xbf,
    0x3e, 0xe5, 0x3c, 0xe2, 0x89, 0x8a, 0x81, 0x75, 0x03, 0x69, 0xb3, 0xd6,
    0xec, 0x75, 0x6e, 0x3d, 0x06, 0x51, 0x23, 0x19, 0xb4, 0x22, 0xe2, 0x6a,
    0xf7, 0x97, 0xd6, 0xfe, 0x78, 0x13, 0x1e, 0x3e, 0x09, 0x99, 0xe3, 0x11,
    0x57, 0x94, 0x54, 0xd9, 0x5d, 0x00, 0x31, 0xe8, 0x3b, 0xc2, 0xae, 0xe0,
    0x9b, 0x01, 0x34, 0xd9, 0x6e, 0x09, 0xae, 0x06, 0xd8, 0x1a, 0x38, 0xce,
    0x03, 0x55, 0x21, 0x4e, 0x3d, 0x8a, 0x35, 0x12, 0x2b, 0xb0, 0xa7, 0xc1,
    0xce, 0xfb, 0x33, 0x52, 0x04, 0xdf, 0xa3, 0x22, 0x40, 0x2d, 0x7b, 0xf5,
    0x29, 0x59, 0xa9, 0x48, 0x03, 0x00, 0x9d, 0xeb, 0x61, 0xae, 0x06, 0xe3,
    0x73, 0x8c, 0x4f, 0x49, 0xbd, 0xeb, 0xe0, 0xaf, 0xc3, 0xc2, 0x1f, 0xe7,
    0x7d, 0xaf, 0xa1, 0x03, 0x44, 0xef, 0xba, 0x85, 0x1f, 0xf7, 0x59, 0x05,
    0xc6, 0xe7, 0x08, 0x83, 0x24, 0xb8, 0x00, 0x9f, 0xfa, 0xc3, 0x58, 0x52,
    0xea, 0x07, 0x66, 0x00, 0xe6, 0x6a, 0x30, 0xe2, 0x45, 0x26, 0x68, 0x78,
    0xf8, 0xac, 0x3f, 0x8c, 0x87, 0x5f, 0x5f, 0xbc, 0xbe, 0xa5, 0xfe, 0x08,
    0xb0, 0x25, 0x93, 0x52, 0xe6, 0xf3, 0xf1, 0xf0, 0xe3, 0xd1, 0xbb, 0x6e,
    0x31, 0x2f, 0x8c, 0x53, 0xff, 0x25, 0x47, 0x16, 0x33, 0x49, 0x14, 0xf7,
    0x30, 0xe3, 0xcf, 0x8d, 0x7b, 0xd7, 0x81, 0x30, 0xed, 0xa4, 0x6d, 0x2d,
    0x6c, 0x6b, 0x57, 0x7e, 0xe2, 0x69, 0x61, 0x8e, 0x95, 0xc0, 0xbb, 0x07,
    0x0c, 0x0c, 0x6e, 0xed, 0x2d, 0x5b, 0x89, 0xce, 0x75, 0x59, 0x7f, 0x6e,
    0x6c, 0x5b, 0x9b, 0x9d, 0xff, 0xd5, 0x5a, 0x8a, 0x00, 0x69, 0x37, 0xcf,
    0x9f, 0xb7, 0x7b, 0x1e, 0x62, 0x01, 0x23, 0xcc, 0x1f, 0x9f, 0x79, 0x08,
    0x0e, 0x97, 0xb1, 0xc1, 0x79, 0xae, 0x65, 0x52, 0xaa, 0xc4, 0x11, 0x31,
    0x30, 0xdd, 0x88, 0xc2, 0x9e, 0x48, 0x19, 0xf8, 0x87, 0x57, 0x57, 0x64,
    0x8b, 0xa4, 0xeb, 0xe8, 0xbf, 0xe8, 0x0f, 0xe6, 0x41, 0x04, 0x24, 0x33,
    0x55, 0x86, 0xa8, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae,
    0x42, 0x60, 0x82
};


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

    frame5 = new QFrame( this, "frame5" );
    frame5->setGeometry( QRect( 0, 390, 470, 50 ) );
    frame5->setFrameShape( QFrame::StyledPanel );
    frame5->setFrameShadow( QFrame::Raised );
    frame5->setLineWidth( 0 );

    m_CancelButton = new KPushButton( frame5, "m_CancelButton" );
    m_CancelButton->setGeometry( QRect( 250, 10, 100, 30 ) );

    m_OKButton = new KPushButton( frame5, "m_OKButton" );
    m_OKButton->setGeometry( QRect( 130, 10, 100, 30 ) );

    m_ApplyButton = new KPushButton( frame5, "m_ApplyButton" );
    m_ApplyButton->setGeometry( QRect( 380, 10, 90, 30 ) );

    groupBox32_2 = new QGroupBox( this, "groupBox32_2" );
    groupBox32_2->setGeometry( QRect( 10, 140, 460, 250 ) );

    buttonGroup2 = new QButtonGroup( groupBox32_2, "buttonGroup2" );
    buttonGroup2->setGeometry( QRect( 10, 90, 440, 90 ) );

    m_IpAddrOrderRadio = new QRadioButton( buttonGroup2, "m_IpAddrOrderRadio" );
    m_IpAddrOrderRadio->setGeometry( QRect( 230, 20, 200, 23 ) );

    m_UserOrderRadio = new QRadioButton( buttonGroup2, "m_UserOrderRadio" );
    m_UserOrderRadio->setGeometry( QRect( 10, 20, 200, 23 ) );

    m_HostRadio = new QRadioButton( buttonGroup2, "m_HostRadio" );
    m_HostRadio->setGeometry( QRect( 10, 50, 200, 23 ) );

    m_2ndOrderDescButton = new KPushButton( buttonGroup2, "m_2ndOrderDescButton" );
    m_2ndOrderDescButton->setGeometry( QRect( 230, 50, 200, 28 ) );
    m_2ndOrderDescButton->setToggleButton( TRUE );

    m_IgnoreCaseSingleByteCheckbox = new QCheckBox( groupBox32_2, "m_IgnoreCaseSingleByteCheckbox" );
    m_IgnoreCaseSingleByteCheckbox->setGeometry( QRect( 10, 190, 440, 23 ) );

    groupBox32_2_2 = new QGroupBox( groupBox32_2, "groupBox32_2_2" );
    groupBox32_2_2->setGeometry( QRect( 10, 20, 440, 70 ) );

    m_GroupOrderCheckbox = new QCheckBox( groupBox32_2_2, "m_GroupOrderCheckbox" );
    m_GroupOrderCheckbox->setGeometry( QRect( 10, 30, 160, 23 ) );

    m_1stOrderDescButton = new KPushButton( groupBox32_2_2, "m_1stOrderDescButton" );
    m_1stOrderDescButton->setGeometry( QRect( 230, 30, 200, 28 ) );
    m_1stOrderDescButton->setToggleButton( TRUE );

    m_PriorityMultiBytesCheckbox = new QCheckBox( groupBox32_2, "m_PriorityMultiBytesCheckbox" );
    m_PriorityMultiBytesCheckbox->setGeometry( QRect( 10, 220, 440, 23 ) );

    groupBox32 = new QGroupBox( this, "groupBox32" );
    groupBox32->setGeometry( QRect( 10, 0, 460, 140 ) );

    textLabel6 = new QLabel( groupBox32, "textLabel6" );
    textLabel6->setGeometry( QRect( 10, 80, 440, 50 ) );
    textLabel6->setFrameShape( QLabel::LineEditPanel );
    textLabel6->setFrameShadow( QLabel::Sunken );
    textLabel6->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter ) );

    m_GroupCheckbox = new QCheckBox( groupBox32, "m_GroupCheckbox" );
    m_GroupCheckbox->setGeometry( QRect( 10, 20, 140, 23 ) );
    m_GroupCheckbox->setAutoMask( FALSE );

    m_LoginCheckbox = new QCheckBox( groupBox32, "m_LoginCheckbox" );
    m_LoginCheckbox->setGeometry( QRect( 10, 50, 140, 23 ) );

    m_HostCheckbox = new QCheckBox( groupBox32, "m_HostCheckbox" );
    m_HostCheckbox->setGeometry( QRect( 150, 20, 140, 23 ) );

    m_PriorityCheckbox = new QCheckBox( groupBox32, "m_PriorityCheckbox" );
    m_PriorityCheckbox->setGeometry( QRect( 150, 50, 140, 23 ) );

    m_IpAddrCheckbox = new QCheckBox( groupBox32, "m_IpAddrCheckbox" );
    m_IpAddrCheckbox->setGeometry( QRect( 300, 20, 150, 23 ) );

    m_EncodingCheckbox = new QCheckBox( groupBox32, "m_EncodingCheckbox" );
    m_EncodingCheckbox->setGeometry( QRect( 300, 50, 150, 23 ) );
    languageChange();
    resize( QSize(480, 440).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

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

    // tab order
    setTabOrder( m_GroupCheckbox, m_HostCheckbox );
    setTabOrder( m_HostCheckbox, m_IpAddrCheckbox );
    setTabOrder( m_IpAddrCheckbox, m_LoginCheckbox );
    setTabOrder( m_LoginCheckbox, m_PriorityCheckbox );
    setTabOrder( m_PriorityCheckbox, m_EncodingCheckbox );
    setTabOrder( m_EncodingCheckbox, m_GroupOrderCheckbox );
    setTabOrder( m_GroupOrderCheckbox, m_1stOrderDescButton );
    setTabOrder( m_1stOrderDescButton, m_IgnoreCaseSingleByteCheckbox );
    setTabOrder( m_IgnoreCaseSingleByteCheckbox, m_PriorityMultiBytesCheckbox );
    setTabOrder( m_PriorityMultiBytesCheckbox, m_OKButton );
    setTabOrder( m_OKButton, m_CancelButton );
    setTabOrder( m_CancelButton, m_ApplyButton );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIPMsgShowConfigDialogBase::languageChange()
{
    setCaption( tr2i18n( "KIpMessenger Show Configuration" ) );
    m_CancelButton->setText( tr2i18n( "Ca&ncel" ) );
    m_CancelButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    m_OKButton->setText( tr2i18n( "O&K" ) );
    m_OKButton->setAccel( QKeySequence( tr2i18n( "Alt+K" ) ) );
    m_ApplyButton->setText( tr2i18n( "&Apply" ) );
    m_ApplyButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    groupBox32_2->setTitle( tr2i18n( "Rough Level User Level Sorting Settings" ) );
    buttonGroup2->setTitle( tr2i18n( "Grouping Level 2" ) );
    m_IpAddrOrderRadio->setText( tr2i18n( "Or&der by IP address" ) );
    m_IpAddrOrderRadio->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
    m_UserOrderRadio->setText( tr2i18n( "Order by &User Name" ) );
    m_UserOrderRadio->setAccel( QKeySequence( tr2i18n( "Alt+U" ) ) );
    m_HostRadio->setText( tr2i18n( "&Order by HostName" ) );
    m_HostRadio->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    m_2ndOrderDescButton->setText( tr2i18n( "Toggle order" ) );
    m_2ndOrderDescButton->setAccel( QKeySequence( QString::null ) );
    m_IgnoreCaseSingleByteCheckbox->setText( tr2i18n( "Ignore &case in singlebyte Character" ) );
    m_IgnoreCaseSingleByteCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );
    groupBox32_2_2->setTitle( tr2i18n( "Grouping Level 1(with Using GroupName only)" ) );
    m_GroupOrderCheckbox->setText( tr2i18n( "Order &by Group Name" ) );
    m_GroupOrderCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+B" ) ) );
    m_1stOrderDescButton->setText( tr2i18n( "&Toggle order" ) );
    m_1stOrderDescButton->setAccel( QKeySequence( tr2i18n( "Alt+T" ) ) );
    m_PriorityMultiBytesCheckbox->setText( tr2i18n( "Priority &MultiBytes" ) );
    m_PriorityMultiBytesCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+M" ) ) );
    groupBox32->setTitle( tr2i18n( "UserList Display Items and Options" ) );
    textLabel6->setText( tr2i18n( "You able to change Fields show order with Drag and Drop on List Header.(Save on \"Saving List Header\")" ) );
    m_GroupCheckbox->setText( tr2i18n( "&GroupName" ) );
    m_GroupCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+G" ) ) );
    m_LoginCheckbox->setText( tr2i18n( "LoginName" ) );
    m_LoginCheckbox->setAccel( QKeySequence( QString::null ) );
    m_HostCheckbox->setText( tr2i18n( "&HostName" ) );
    m_HostCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+H" ) ) );
    m_PriorityCheckbox->setText( tr2i18n( "Displa&y Priority" ) );
    m_PriorityCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) );
    m_IpAddrCheckbox->setText( tr2i18n( "&IP address" ) );
    m_IpAddrCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+I" ) ) );
    m_EncodingCheckbox->setText( tr2i18n( "&Encoding" ) );
    m_EncodingCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+E" ) ) );
}

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

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

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

#include "showconfigbase.moc"
