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

#include <qvariant.h>
#include <qheader.h>
#include <klistview.h>
#include <qcheckbox.h>
#include <kpushbutton.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qpixmap.h>

#include "klistview.h"
#include "kpushbutton.h"
static const unsigned char img0_downloadmonitorbase[] = { 
    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,
    0xa1, 0x49, 0x44, 0x41, 0x54, 0x58, 0x85, 0xc5, 0x96, 0xd1, 0x91, 0x83,
    0x30, 0x0c, 0x44, 0x57, 0x19, 0x8a, 0x48, 0x1b, 0xee, 0x23, 0x7d, 0xa4,
    0x89, 0xf3, 0x31, 0x3e, 0xd3, 0x44, 0xae, 0x0e, 0x53, 0x07, 0x6d, 0xa4,
    0x0b, 0xdd, 0x07, 0xc1, 0x01, 0x23, 0xdb, 0x02, 0x86, 0xcb, 0xfe, 0x10,
    0x4d, 0xd6, 0xd6, 0x93, 0xac, 0x38, 0x10, 0xe3, 0xb3, 0x6a, 0xe2, 0x27,
    0x86, 0xcc, 0x42, 0x20, 0x02, 0x9f, 0xc2, 0xc9, 0x20, 0xba, 0x14, 0x93,
    0xbf, 0xbe, 0x63, 0xd0, 0x19, 0xf9, 0x01, 0x00, 0x17, 0x95, 0x8b, 0x81,
    0xb3, 0x20, 0x9a, 0xba, 0xe5, 0xb8, 0x98, 0x09, 0x13, 0x3f, 0x25, 0xcd,
    0xd6, 0x75, 0x00, 0x40, 0xe1, 0x90, 0xc0, 0x4c, 0x60, 0x90, 0xd8, 0xa5,
    0x79, 0xf2, 0x71, 0x9b, 0xa5, 0x47, 0x0f, 0x50, 0x48, 0x5e, 0x4a, 0x50,
    0x93, 0x1e, 0x60, 0xc7, 0x08, 0xa4, 0x70, 0xc7, 0x00, 0x4e, 0x92, 0x0e,
    0x80, 0xd6, 0xc3, 0x53, 0x53, 0xae, 0x7a, 0x71, 0x08, 0x89, 0x0a, 0x9b,
    0xef, 0xfd, 0xf5, 0x29, 0xd7, 0x11, 0x8f, 0x54, 0x0c, 0xac, 0x07, 0x48,
    0x5b, 0xb5, 0xe6, 0xac, 0xa5, 0xfd, 0x18, 0x44, 0x4d, 0xc9, 0xa0, 0x15,
    0x11, 0x57, 0xa7, 0x3f, 0xb7, 0xf7, 0xc7, 0x87, 0xf0, 0xf0, 0x4d, 0xc8,
    0x1c, 0xaf, 0xb8, 0xac, 0x4a, 0x9d, 0xdd, 0x05, 0x10, 0x93, 0xbe, 0x33,
    0xec, 0x4a, 0xbe, 0x19, 0x40, 0x53, 0xed, 0x96, 0xe4, 0x6a, 0x80, 0xad,
    0x89, 0xe3, 0x3a, 0x50, 0x15, 0xe2, 0xd4, 0xab, 0x58, 0xa3, 0x62, 0x07,
    0xf6, 0x0c, 0xd8, 0x79, 0x7f, 0x46, 0x8a, 0xe4, 0x7b, 0x94, 0x05, 0xa8,
    0x55, 0xaf, 0xbe, 0x25, 0x2b, 0x1d, 0x69, 0x00, 0xc0, 0xbb, 0x0e, 0xe6,
    0x6a, 0x30, 0x3c, 0x87, 0xf8, 0x2c, 0xa9, 0x73, 0x1e, 0xe1, 0xda, 0x2f,
    0xfc, 0x71, 0xdd, 0xf7, 0x1a, 0x7a, 0x82, 0xe8, 0x9c, 0x5f, 0xf8, 0x71,
    0x9f, 0x75, 0x60, 0x78, 0x0e, 0x30, 0x48, 0x92, 0x17, 0xe0, 0x53, 0xff,
    0x14, 0x97, 0x94, 0xfa, 0x81, 0x19, 0x80, 0xb9, 0x1a, 0x0c, 0x78, 0x91,
    0x15, 0xd4, 0x3f, 0x82, 0xe8, 0x9f, 0xe2, 0xfe, 0x37, 0x64, 0x5f, 0xdf,
    0x52, 0x7f, 0x04, 0xd8, 0x52, 0x49, 0xae, 0xf2, 0x79, 0xdc, 0xff, 0x04,
    0x74, 0xce, 0x2f, 0xd6, 0x4d, 0x71, 0xea, 0xbf, 0x48, 0x64, 0xb1, 0x92,
    0x44, 0xf1, 0x0c, 0x05, 0xbf, 0x14, 0x77, 0xce, 0x83, 0x30, 0x9e, 0xa4,
    0x6d, 0x2d, 0x6c, 0x6b, 0x57, 0x7e, 0xe2, 0x71, 0x63, 0x8e, 0x9d, 0xc0,
    0x7b, 0x06, 0x0c, 0x0c, 0x6e, 0xed, 0x4d, 0xec, 0x84, 0x77, 0x5e, 0xf4,
    0x4b, 0xb1, 0x6d, 0xad, 0xb8, 0xfe, 0xab, 0xb5, 0x14, 0x01, 0xd2, 0x69,
    0x9e, 0x3f, 0x6f, 0x77, 0x19, 0x62, 0x01, 0x53, 0x58, 0x3f, 0x3c, 0x65,
    0x08, 0x9e, 0x5e, 0xc6, 0x7a, 0x17, 0xb8, 0x56, 0x49, 0xae, 0x13, 0x47,
    0xc4, 0x00, 0x65, 0x67, 0x20, 0x8d, 0xc3, 0x23, 0xc0, 0x3b, 0x8f, 0xf0,
    0x58, 0xcf, 0xc6, 0x11, 0x95, 0x5e, 0x47, 0xff, 0x45, 0x7f, 0x26, 0x50,
    0xfd, 0xb0, 0x22, 0x16, 0x11, 0x5d, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45,
    0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


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

    m_FileListView = new KListView( this, "m_FileListView" );
    m_FileListView->setGeometry( QRect( 10, 10, 580, 180 ) );
    m_FileListView->setAllColumnsShowFocus( TRUE );

    m_NotPermitedIfModifiedCheckbox = new QCheckBox( this, "m_NotPermitedIfModifiedCheckbox" );
    m_NotPermitedIfModifiedCheckbox->setGeometry( QRect( 10, 240, 580, 23 ) );

    m_DeleteButton = new KPushButton( this, "m_DeleteButton" );
    m_DeleteButton->setGeometry( QRect( 10, 200, 100, 30 ) );

    m_CloseButton = new KPushButton( this, "m_CloseButton" );
    m_CloseButton->setGeometry( QRect( 120, 200, 100, 30 ) );
    languageChange();
    resize( QSize(600, 280).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_CloseButton, SIGNAL( clicked() ), this, SLOT( slotCloseClicked() ) );
    connect( m_DeleteButton, SIGNAL( clicked() ), this, SLOT( slotDeleteClicked() ) );
    connect( m_NotPermitedIfModifiedCheckbox, SIGNAL( clicked() ), this, SLOT( slotNotPermitedIfModifiedCheckboxClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIpMsgDownloadMonitorBase::languageChange()
{
    setCaption( tr2i18n( "KIpMessenger - Attached File Download Monitor" ) );
    m_NotPermitedIfModifiedCheckbox->setText( tr2i18n( "Download &not permitted, if file was changed." ) );
    m_NotPermitedIfModifiedCheckbox->setAccel( QKeySequence( tr2i18n( "Alt+N" ) ) );
    m_DeleteButton->setText( tr2i18n( "&Delete" ) );
    m_DeleteButton->setAccel( QKeySequence( tr2i18n( "Alt+D" ) ) );
    m_CloseButton->setText( tr2i18n( "&Close" ) );
    m_CloseButton->setAccel( QKeySequence( tr2i18n( "Alt+C" ) ) );
}

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

void KIpMsgDownloadMonitorBase::slotCloseClicked()
{
    qWarning( "KIpMsgDownloadMonitorBase::slotCloseClicked(): Not implemented yet" );
}

void KIpMsgDownloadMonitorBase::slotPollingTimeout()
{
    qWarning( "KIpMsgDownloadMonitorBase::slotPollingTimeout(): Not implemented yet" );
}

void KIpMsgDownloadMonitorBase::slotNotPermitedIfModifiedCheckboxClicked()
{
    qWarning( "KIpMsgDownloadMonitorBase::slotNotPermitedIfModifiedCheckboxClicked(): Not implemented yet" );
}

#include "downloadmonitorbase.moc"
