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

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

#include "kcombobox.h"
#include "kpushbutton.h"
#include "klistview.h"
static const unsigned char img0_recievedialogbase[] = { 
    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,
    0x9b, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x57, 0x4b, 0x8e, 0x83,
    0x30, 0x0c, 0x7d, 0xae, 0xb8, 0x4c, 0x87, 0xdb, 0x64, 0x31, 0xa7, 0x19,
    0x8a, 0xa2, 0x70, 0x9a, 0x8e, 0xc4, 0x6d, 0xa0, 0xc7, 0xf1, 0x2c, 0x80,
    0x14, 0x42, 0xe2, 0x98, 0x20, 0xa6, 0x6f, 0xd3, 0x46, 0x38, 0x7e, 0x1f,
    0xdc, 0x40, 0x89, 0xf1, 0x59, 0x54, 0xfe, 0x1b, 0x23, 0xae, 0x85, 0x40,
    0x04, 0xbe, 0x44, 0x27, 0x83, 0xe8, 0x26, 0x92, 0xcf, 0xd7, 0x18, 0x74,
    0x05, 0x3f, 0x00, 0xe0, 0xa6, 0xaa, 0x62, 0xe0, 0x2a, 0x11, 0x55, 0xbe,
    0xe4, 0x3c, 0x98, 0x09, 0x8b, 0x7e, 0x0a, 0xc2, 0xd6, 0x25, 0x00, 0x40,
    0xb8, 0x49, 0x60, 0x26, 0x30, 0x28, 0x9a, 0xd2, 0x9a, 0x7c, 0x6a, 0xb3,
    0xad, 0xd1, 0x0b, 0x10, 0xc8, 0x25, 0x82, 0x1c, 0xf4, 0x02, 0x0a, 0x46,
    0x20, 0x14, 0x77, 0x4e, 0xc0, 0x45, 0xd0, 0x09, 0xa0, 0xfd, 0xf0, 0xe4,
    0x90, 0x72, 0x1f, 0x1d, 0x42, 0x22, 0xa1, 0x79, 0xe9, 0xaf, 0x4f, 0xb9,
    0x8f, 0x78, 0x52, 0xc5, 0xc0, 0x7e, 0x80, 0xb4, 0xae, 0x35, 0xf7, 0x3a,
    0xd6, 0x8f, 0x41, 0x54, 0x49, 0x05, 0x5a, 0x10, 0x71, 0x76, 0xfa, 0x53,
    0xbd, 0x3f, 0x3e, 0x84, 0xa7, 0x4f, 0x42, 0x66, 0x7f, 0xc4, 0x25, 0x21,
    0x25, 0x5b, 0x24, 0xc0, 0x93, 0xbe, 0x19, 0x8a, 0xc8, 0x0f, 0x0b, 0xd0,
    0xb8, 0x3d, 0x42, 0xae, 0x16, 0x70, 0x94, 0xd8, 0xef, 0x03, 0x65, 0x45,
    0x5c, 0x7a, 0x14, 0x6b, 0x20, 0x26, 0x50, 0x32, 0x60, 0xd7, 0x3d, 0x8c,
    0x14, 0xe4, 0x25, 0x48, 0x0a, 0xc8, 0xb9, 0x57, 0x9f, 0x92, 0x99, 0x44,
    0x2a, 0x00, 0x70, 0xb6, 0x83, 0xb9, 0x1b, 0xf4, 0xaf, 0xde, 0x7f, 0x4a,
    0xe8, 0xac, 0xc3, 0x70, 0x1f, 0x37, 0xf5, 0x7e, 0xdf, 0x63, 0x2f, 0x7a,
    0x11, 0xd1, 0x59, 0xb7, 0xa9, 0xc7, 0xf7, 0x2a, 0x81, 0xfe, 0xd5, 0xc3,
    0x20, 0x20, 0x17, 0xc4, 0x87, 0xf5, 0xcb, 0x5a, 0x42, 0x58, 0x0f, 0xac,
    0x04, 0x98, 0xbb, 0x41, 0x8f, 0x59, 0x99, 0x80, 0xf1, 0x39, 0x44, 0xeb,
    0x97, 0xf5, 0xf8, 0x3b, 0x24, 0x5f, 0xdf, 0xc2, 0x7a, 0x60, 0x7e, 0x1a,
    0x8e, 0x76, 0xe0, 0x1e, 0x6f, 0xe7, 0x06, 0x06, 0x5f, 0x8f, 0x3a, 0x9a,
    0x40, 0x67, 0xdd, 0xe4, 0x24, 0xa8, 0x8f, 0xad, 0x7f, 0xda, 0x66, 0xb3,
    0x2f, 0x72, 0x7d, 0xfa, 0x5f, 0x90, 0x74, 0x12, 0x23, 0x4f, 0x38, 0x8f,
    0xad, 0x3b, 0xeb, 0x40, 0x98, 0x7c, 0x34, 0x6d, 0x83, 0xa6, 0x6d, 0x76,
    0xf5, 0xc4, 0x53, 0x63, 0x4e, 0x39, 0xa9, 0xdb, 0x3a, 0x1a, 0xa7, 0x3b,
    0x90, 0x44, 0xb3, 0x4a, 0x62, 0xbd, 0xdf, 0x27, 0x20, 0x39, 0x19, 0x9e,
    0xfb, 0x24, 0x30, 0x3b, 0xaa, 0xdb, 0xda, 0x37, 0x97, 0x92, 0x70, 0xab,
    0xf8, 0xd7, 0xfb, 0x7d, 0x02, 0xb1, 0x19, 0xd0, 0x26, 0x71, 0x06, 0x0c,
    0xa4, 0x67, 0x20, 0x96, 0x84, 0xb3, 0x2e, 0x99, 0x48, 0x29, 0xa4, 0xd7,
    0xd1, 0x7f, 0xc1, 0x1f, 0x54, 0x6b, 0xef, 0x54, 0x53, 0x9b, 0x10, 0x31,
    0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a RecieveDialogBase 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.
 */
RecieveDialogBase::RecieveDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    QImage img;
    img.loadFromData( img0_recievedialogbase, sizeof( img0_recievedialogbase ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "RecieveDialogBase" );
    setMinimumSize( QSize( 340, 340 ) );
    setBaseSize( QSize( 0, 340 ) );
    setIcon( image0 );
    RecieveDialogBaseLayout = new QVBoxLayout( this, 4, 0, "RecieveDialogBaseLayout"); 

    m_MessageGroup = new QGroupBox( this, "m_MessageGroup" );
    m_MessageGroup->setMaximumSize( QSize( 32767, 110 ) );
    m_MessageGroup->setCursor( QCursor( 0 ) );
    m_MessageGroup->setColumnLayout(0, Qt::Vertical );
    m_MessageGroup->layout()->setSpacing( 6 );
    m_MessageGroup->layout()->setMargin( 11 );
    m_MessageGroupLayout = new QVBoxLayout( m_MessageGroup->layout() );
    m_MessageGroupLayout->setAlignment( Qt::AlignTop );

    m_MessageFromLabel = new QLabel( m_MessageGroup, "m_MessageFromLabel" );
    m_MessageFromLabel->setAlignment( int( QLabel::AlignCenter ) );
    m_MessageGroupLayout->addWidget( m_MessageFromLabel );

    m_MessageRecievedAtLabel = new QLabel( m_MessageGroup, "m_MessageRecievedAtLabel" );
    m_MessageRecievedAtLabel->setAlignment( int( QLabel::AlignCenter ) );
    m_MessageGroupLayout->addWidget( m_MessageRecievedAtLabel );

    frame13 = new QFrame( m_MessageGroup, "frame13" );
    frame13->setFrameShape( QFrame::StyledPanel );
    frame13->setFrameShadow( QFrame::Raised );
    frame13->setLineWidth( 0 );
    frame13Layout = new QHBoxLayout( frame13, 0, 6, "frame13Layout"); 

    textLabel2 = new QLabel( frame13, "textLabel2" );
    textLabel2->setMinimumSize( QSize( 110, 0 ) );
    textLabel2->setAlignment( int( QLabel::AlignVCenter | QLabel::AlignRight ) );
    frame13Layout->addWidget( textLabel2 );

    m_EncodingCombobox = new KComboBox( FALSE, frame13, "m_EncodingCombobox" );
    m_EncodingCombobox->setMinimumSize( QSize( 130, 0 ) );
    frame13Layout->addWidget( m_EncodingCombobox );
    m_MessageGroupLayout->addWidget( frame13 );
    RecieveDialogBaseLayout->addWidget( m_MessageGroup );

    m_RecvAreaFrame = new QFrame( this, "m_RecvAreaFrame" );
    m_RecvAreaFrame->setFrameShape( QFrame::StyledPanel );
    m_RecvAreaFrame->setFrameShadow( QFrame::Raised );
    m_RecvAreaFrame->setLineWidth( 0 );

    m_DownloadSplitterLabel = new QLabel( m_RecvAreaFrame, "m_DownloadSplitterLabel" );
    m_DownloadSplitterLabel->setGeometry( QRect( 10, 70, 320, 7 ) );
    m_DownloadSplitterLabel->setMinimumSize( QSize( 0, 7 ) );
    m_DownloadSplitterLabel->setMaximumSize( QSize( 32767, 7 ) );
    m_DownloadSplitterLabel->setCursor( QCursor( 11 ) );
    m_DownloadSplitterLabel->setFrameShape( QLabel::PopupPanel );
    m_DownloadSplitterLabel->setFrameShadow( QLabel::Sunken );

    m_OpenButton = new KPushButton( m_RecvAreaFrame, "m_OpenButton" );
    m_OpenButton->setGeometry( QRect( 6, 4, 330, 160 ) );
    QFont m_OpenButton_font(  m_OpenButton->font() );
    m_OpenButton_font.setPointSize( 16 );
    m_OpenButton->setFont( m_OpenButton_font ); 

    m_AttachmentFiles = new KListView( m_RecvAreaFrame, "m_AttachmentFiles" );
    m_AttachmentFiles->setGeometry( QRect( 10, 10, 116, 65 ) );
    m_AttachmentFiles->setMinimumSize( QSize( 0, 65 ) );
    m_AttachmentFiles->setProperty( "selectionMode", "Extended" );
    m_AttachmentFiles->setAllColumnsShowFocus( TRUE );
    m_AttachmentFiles->setItemsMovable( FALSE );
    RecieveDialogBaseLayout->addWidget( m_RecvAreaFrame );

    frame17 = new QFrame( this, "frame17" );
    frame17->setMaximumSize( QSize( 32767, 50 ) );
    frame17->setFrameShape( QFrame::StyledPanel );
    frame17->setFrameShadow( QFrame::Raised );
    frame17->setLineWidth( 0 );
    frame17->setMidLineWidth( 0 );
    frame17Layout = new QHBoxLayout( frame17, 11, 0, "frame17Layout"); 

    frame93 = new QFrame( frame17, "frame93" );
    frame93->setMinimumSize( QSize( 30, 0 ) );
    frame93->setFrameShape( QFrame::StyledPanel );
    frame93->setFrameShadow( QFrame::Raised );
    frame93->setLineWidth( 0 );
    frame17Layout->addWidget( frame93 );

    m_CloseButton = new KPushButton( frame17, "m_CloseButton" );
    m_CloseButton->setMinimumSize( QSize( 0, 30 ) );
    m_CloseButton->setMaximumSize( QSize( 100, 30 ) );
    frame17Layout->addWidget( m_CloseButton );
    spacer3 = new QSpacerItem( 16, 20, QSizePolicy::Fixed, QSizePolicy::Minimum );
    frame17Layout->addItem( spacer3 );

    m_ReplyButton = new KPushButton( frame17, "m_ReplyButton" );
    m_ReplyButton->setMinimumSize( QSize( 0, 30 ) );
    m_ReplyButton->setMaximumSize( QSize( 100, 32767 ) );
    frame17Layout->addWidget( m_ReplyButton );

    m_QuoteCheckbox = new QCheckBox( frame17, "m_QuoteCheckbox" );
    frame17Layout->addWidget( m_QuoteCheckbox );
    RecieveDialogBaseLayout->addWidget( frame17 );
    languageChange();
    resize( QSize(348, 340).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_CloseButton, SIGNAL( clicked() ), this, SLOT( slotDialogCloseClicked() ) );
    connect( m_EncodingCombobox, SIGNAL( activated(int) ), this, SLOT( slotEncodingChange(int) ) );
    connect( m_OpenButton, SIGNAL( clicked() ), this, SLOT( slotMessageOpenClicked() ) );
    connect( m_ReplyButton, SIGNAL( clicked() ), this, SLOT( slotReplyClicked() ) );
    connect( m_AttachmentFiles, SIGNAL( mouseButtonClicked(int,QListViewItem*,const QPoint&,int) ), this, SLOT( slotAttachFilesMouseButtonClicked(int,QListViewItem*,const QPoint&,int) ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void RecieveDialogBase::languageChange()
{
    setCaption( tr2i18n( "KIpMessenger - Recive Message" ) );
    m_MessageGroup->setTitle( tr2i18n( "Message from ..." ) );
    m_MessageFromLabel->setText( tr2i18n( "LabelMessageFrom" ) );
    m_MessageRecievedAtLabel->setText( tr2i18n( "LabelMessageRecievedAt" ) );
    textLabel2->setText( tr2i18n( "Encoding" ) );
    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_DownloadSplitterLabel->setText( QString::null );
    m_OpenButton->setText( tr2i18n( "Ope&n" ) );
    m_OpenButton->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    m_CloseButton->setText( tr2i18n( "Cl&ose" ) );
    m_CloseButton->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );
    m_ReplyButton->setText( tr2i18n( "Repl&y" ) );
    m_ReplyButton->setAccel( QKeySequence( tr2i18n( "Alt+Y" ) ) );
    m_QuoteCheckbox->setText( tr2i18n( "&Quote" ) );
    m_QuoteCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+Q" ) ) );
}

void RecieveDialogBase::slotMessageOpenClicked()
{
    qWarning( "RecieveDialogBase::slotMessageOpenClicked(): Not implemented yet" );
}

void RecieveDialogBase::slotDialogCloseClicked()
{
    qWarning( "RecieveDialogBase::slotDialogCloseClicked(): Not implemented yet" );
}

void RecieveDialogBase::slotReplyClicked()
{
    qWarning( "RecieveDialogBase::slotReplyClicked(): Not implemented yet" );
}

void RecieveDialogBase::slotEncodingChange(int)
{
    qWarning( "RecieveDialogBase::slotEncodingChange(int): Not implemented yet" );
}

void RecieveDialogBase::slotAttachFilesMouseButtonClicked(int,QListViewItem*,const QPoint&,int)
{
    qWarning( "RecieveDialogBase::slotAttachFilesMouseButtonClicked(int,QListViewItem*,const QPoint&,int): Not implemented yet" );
}

#include "recievedialogbase.moc"
