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

#include <qvariant.h>
#include <qpushbutton.h>
#include <qgroupbox.h>
#include <qheader.h>
#include <klistview.h>
#include <qframe.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_attachedfiledialogbase[] = { 
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x16, 0x00, 0x00, 0x00, 0x16,
    0x08, 0x06, 0x00, 0x00, 0x00, 0xc4, 0xb4, 0x6c, 0x3b, 0x00, 0x00, 0x02,
    0xfe, 0x49, 0x44, 0x41, 0x54, 0x38, 0x8d, 0x9d, 0x94, 0x3f, 0x68, 0x1b,
    0x67, 0x18, 0xc6, 0x7f, 0x12, 0x1a, 0x3e, 0x81, 0x86, 0x53, 0xf1, 0x70,
    0x06, 0x0d, 0x32, 0x38, 0xa0, 0x2b, 0x19, 0x7c, 0x26, 0x8b, 0x4d, 0x0b,
    0x3d, 0x37, 0x53, 0x4a, 0x20, 0x96, 0x27, 0x2b, 0x74, 0x71, 0xa1, 0x83,
    0xdb, 0x4c, 0x4e, 0x87, 0x92, 0x42, 0x07, 0xd5, 0x93, 0xed, 0x2d, 0x9a,
    0x92, 0x34, 0x94, 0x22, 0x15, 0x5a, 0xc5, 0x9d, 0xea, 0x4e, 0xd6, 0xe6,
    0x0c, 0xa5, 0xd2, 0x41, 0x1b, 0xcb, 0x81, 0x1a, 0x2b, 0x50, 0x90, 0x35,
    0x14, 0x5b, 0xb4, 0xc6, 0xf1, 0x60, 0x78, 0x3a, 0x48, 0x3a, 0xeb, 0x24,
    0xdb, 0x75, 0xf3, 0xc1, 0xcb, 0xcb, 0xf7, 0xbc, 0x7f, 0xee, 0xf9, 0xde,
    0x3f, 0x17, 0x11, 0x88, 0x09, 0x20, 0xcd, 0xd9, 0x79, 0x09, 0x87, 0x2f,
    0x3d, 0x2a, 0x24, 0x99, 0xc4, 0xa5, 0x86, 0xff, 0xbf, 0xf4, 0x18, 0x85,
    0x08, 0x9a, 0x40, 0xfa, 0x1b, 0x49, 0x7d, 0xd2, 0x44, 0x8f, 0x53, 0x0b,
    0x02, 0xbd, 0x91, 0xec, 0x91, 0x15, 0xba, 0x33, 0x90, 0xb4, 0x27, 0x07,
    0x28, 0xcf, 0x83, 0x2b, 0x25, 0x72, 0xaf, 0x57, 0xb5, 0xc4, 0x81, 0xac,
    0xee, 0xbd, 0x4c, 0x56, 0x51, 0x2e, 0x3a, 0x31, 0x98, 0xbe, 0x73, 0x18,
    0x82, 0x9c, 0xeb, 0xb0, 0x72, 0xe3, 0x13, 0x16, 0x79, 0x1e, 0x60, 0xde,
    0xcd, 0x9f, 0xa8, 0x4d, 0xbd, 0xcf, 0x2a, 0x6f, 0xb1, 0xc5, 0x5d, 0x00,
    0x26, 0x81, 0x8b, 0x19, 0x0b, 0xad, 0x7c, 0xb6, 0x18, 0x62, 0xa6, 0x6f,
    0x2c, 0x29, 0x81, 0x84, 0xd1, 0x43, 0xaa, 0x32, 0x46, 0xda, 0x2a, 0x3c,
    0x94, 0xc6, 0x7b, 0x4e, 0xd6, 0x15, 0x18, 0x37, 0x80, 0x95, 0x01, 0xec,
    0x5a, 0x1b, 0x8e, 0x00, 0x4e, 0xa8, 0x53, 0xc1, 0xc9, 0xc0, 0x74, 0xeb,
    0x53, 0xd8, 0x0d, 0xbb, 0x4d, 0x02, 0x51, 0x8e, 0x0c, 0xfc, 0x63, 0xc2,
    0x96, 0x43, 0x60, 0xd1, 0x66, 0x8d, 0x42, 0x18, 0x6f, 0xf5, 0x07, 0x4f,
    0xb2, 0x39, 0x3b, 0x03, 0x8f, 0xce, 0xb0, 0x8f, 0x58, 0x05, 0xa0, 0x06,
    0x50, 0x26, 0xab, 0xdc, 0xfc, 0xb6, 0xb4, 0x86, 0xb4, 0x86, 0x0e, 0xd6,
    0x2c, 0xad, 0xdc, 0x5c, 0xd4, 0x03, 0xf2, 0x43, 0x4d, 0x6a, 0x2e, 0xdf,
    0x92, 0x32, 0x9d, 0x4b, 0x99, 0xac, 0x84, 0x15, 0x18, 0xab, 0xb8, 0x4a,
    0xf7, 0x4f, 0xc5, 0x5e, 0x37, 0xc1, 0x14, 0xc7, 0xf2, 0xd8, 0xd4, 0xc2,
    0x25, 0xdd, 0xb7, 0x46, 0xa4, 0xa6, 0xbd, 0x74, 0x8e, 0xd1, 0x0e, 0x92,
    0xf6, 0x6a, 0x4c, 0x99, 0xec, 0x95, 0xe7, 0x33, 0xf7, 0x61, 0x55, 0x5b,
    0xe3, 0x53, 0x43, 0x86, 0x2a, 0xe1, 0x99, 0x0f, 0x31, 0xbe, 0x48, 0x8c,
    0x91, 0xca, 0xeb, 0x59, 0xed, 0x3d, 0xcf, 0x4b, 0xbf, 0x20, 0xa5, 0xc2,
    0x0e, 0xdb, 0xe4, 0x65, 0x06, 0x62, 0x2e, 0x65, 0xec, 0xbd, 0xb7, 0xa9,
    0xea, 0xe7, 0x0b, 0x52, 0xf1, 0xb2, 0x67, 0xa4, 0xe5, 0xb0, 0x7d, 0xfe,
    0xe6, 0x5d, 0xc4, 0x58, 0xbf, 0xb9, 0xd2, 0x8d, 0xff, 0xae, 0x4f, 0x99,
    0xf2, 0x10, 0x5c, 0x26, 0xab, 0x68, 0x0d, 0x7f, 0x60, 0xbb, 0xea, 0x48,
    0x49, 0xf8, 0xd8, 0x87, 0x5f, 0xcf, 0xf0, 0x3a, 0x0e, 0x49, 0x44, 0x92,
    0x03, 0x3e, 0xa0, 0x19, 0xe0, 0xfe, 0x40, 0x7c, 0x6f, 0x8e, 0x87, 0x18,
    0x6f, 0x7d, 0xff, 0x58, 0xda, 0x40, 0x1a, 0xe9, 0x6f, 0x8e, 0x1b, 0xea,
    0xba, 0xc7, 0x66, 0x70, 0x39, 0xc6, 0x95, 0x7d, 0x0e, 0xe3, 0xd8, 0xeb,
    0x74, 0x89, 0xa5, 0xd9, 0x19, 0xc0, 0xc7, 0xc5, 0xc5, 0x79, 0xe7, 0x3e,
    0x7c, 0x09, 0xfc, 0xd5, 0xfd, 0x7c, 0x0c, 0x36, 0xee, 0xdd, 0x62, 0x8e,
    0x02, 0x2e, 0x2e, 0x3e, 0x3e, 0xd9, 0x54, 0x1d, 0x5e, 0x00, 0x4f, 0x21,
    0x8e, 0xcf, 0x3e, 0xa3, 0x3c, 0x9b, 0x98, 0xe6, 0xc4, 0x5b, 0xc2, 0xc7,
    0x67, 0xee, 0xc7, 0x1d, 0xa2, 0x6f, 0x1b, 0x17, 0xcb, 0xaa, 0xe0, 0x65,
    0xd2, 0x34, 0xac, 0x0a, 0xc9, 0x36, 0xa1, 0x6d, 0x62, 0x62, 0x01, 0x2c,
    0x13, 0xd8, 0xbd, 0x4c, 0x1a, 0x3f, 0x16, 0x87, 0x59, 0x1b, 0xac, 0xb3,
    0x95, 0x9c, 0x33, 0xfb, 0x81, 0x1d, 0x03, 0xd1, 0x46, 0x97, 0xa9, 0xdf,
    0xea, 0xd4, 0x6a, 0xff, 0x55, 0xdf, 0x7a, 0xc7, 0xe0, 0x89, 0x4b, 0xc8,
    0xee, 0xb7, 0x7c, 0xd2, 0x6d, 0x8f, 0xc2, 0x1f, 0x77, 0x69, 0xdc, 0xce,
    0xb1, 0x6f, 0x0c, 0x18, 0xc3, 0x17, 0x8e, 0xc3, 0xc9, 0xe9, 0x49, 0xe0,
    0x17, 0x1d, 0xeb, 0x36, 0xc0, 0xb5, 0x5d, 0x00, 0x1a, 0xbf, 0xaf, 0xf2,
    0x2c, 0x65, 0x53, 0x01, 0xee, 0xdb, 0x69, 0x1a, 0x7f, 0x8e, 0x52, 0xda,
    0x2d, 0x05, 0x76, 0xd7, 0xee, 0x94, 0x23, 0x9d, 0xf0, 0x28, 0x8e, 0x3b,
    0x14, 0xef, 0xe5, 0x89, 0x03, 0xcb, 0x4f, 0xbf, 0x66, 0xe3, 0xe7, 0x0d,
    0xcc, 0x51, 0x87, 0x58, 0x64, 0x2f, 0xe3, 0xa8, 0x38, 0x9f, 0xeb, 0x04,
    0x75, 0x6b, 0xd8, 0x6e, 0xb7, 0x29, 0x7e, 0x57, 0xa4, 0xd5, 0xea, 0xfc,
    0x75, 0x4c, 0xc2, 0x60, 0x8f, 0xd8, 0x8c, 0xa6, 0x46, 0x99, 0x79, 0x77,
    0x26, 0x78, 0x50, 0xcf, 0x7f, 0x67, 0x77, 0x87, 0xf5, 0x1f, 0xd6, 0x03,
    0xdf, 0xe6, 0x29, 0x44, 0x94, 0xc9, 0xe9, 0xab, 0x79, 0xa7, 0xc3, 0xa4,
    0xe5, 0x07, 0xda, 0x49, 0x38, 0x2c, 0x7f, 0xbb, 0x8c, 0x73, 0xea, 0x50,
    0x7a, 0x51, 0x1a, 0x1a, 0xa9, 0xcb, 0x4e, 0x19, 0x88, 0x1c, 0x27, 0x8c,
    0xe2, 0xa9, 0x31, 0x1a, 0xc0, 0x18, 0x0c, 0xe9, 0xfa, 0xe9, 0x6b, 0xe2,
    0xbb, 0xaf, 0xa8, 0x75, 0xe7, 0xf3, 0x2a, 0x7a, 0x0e, 0xf8, 0x17, 0xc4,
    0xa1, 0x9f, 0x17, 0x89, 0x3e, 0xd3, 0xc7, 0x00, 0x00, 0x00, 0x00, 0x49,
    0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};


/*
 *  Constructs a KIpMessengerAttachedFileDialogBase 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.
 */
KIpMessengerAttachedFileDialogBase::KIpMessengerAttachedFileDialogBase( QWidget* parent, const char* name, bool modal, WFlags fl )
    : QDialog( parent, name, modal, fl )
{
    QImage img;
    img.loadFromData( img0_attachedfiledialogbase, sizeof( img0_attachedfiledialogbase ), "PNG" );
    image0 = img;
    if ( !name )
	setName( "KIpMessengerAttachedFileDialogBase" );
    setIcon( image0 );
    setModal( TRUE );
    KIpMessengerAttachedFileDialogBaseLayout = new QVBoxLayout( this, 11, 6, "KIpMessengerAttachedFileDialogBaseLayout"); 

    groupBox2 = new QGroupBox( this, "groupBox2" );
    groupBox2->setColumnLayout(0, Qt::Vertical );
    groupBox2->layout()->setSpacing( 6 );
    groupBox2->layout()->setMargin( 11 );
    groupBox2Layout = new QVBoxLayout( groupBox2->layout() );
    groupBox2Layout->setAlignment( Qt::AlignTop );

    m_AttachFileListView = new KListView( groupBox2, "m_AttachFileListView" );
    m_AttachFileListView->setProperty( "selectionMode", "Extended" );
    m_AttachFileListView->setAllColumnsShowFocus( TRUE );
    groupBox2Layout->addWidget( m_AttachFileListView );
    KIpMessengerAttachedFileDialogBaseLayout->addWidget( groupBox2 );

    frame16 = new QFrame( this, "frame16" );
    frame16->setMinimumSize( QSize( 0, 40 ) );
    frame16->setMaximumSize( QSize( 32767, 40 ) );
    frame16->setFrameShape( QFrame::StyledPanel );
    frame16->setFrameShadow( QFrame::Raised );
    frame16->setLineWidth( 0 );
    frame16Layout = new QHBoxLayout( frame16, 11, 6, "frame16Layout"); 

    frame17 = new QFrame( frame16, "frame17" );
    frame17->setMinimumSize( QSize( 380, 30 ) );
    frame17->setMaximumSize( QSize( 320, 30 ) );
    frame17->setFrameShape( QFrame::StyledPanel );
    frame17->setFrameShadow( QFrame::Raised );
    frame17->setLineWidth( 0 );

    m_DeleteButton = new KPushButton( frame17, "m_DeleteButton" );
    m_DeleteButton->setGeometry( QRect( 280, 0, 100, 30 ) );

    m_AddDirectoriesButton = new KPushButton( frame17, "m_AddDirectoriesButton" );
    m_AddDirectoriesButton->setGeometry( QRect( 120, 0, 150, 30 ) );

    m_AddFilesButton = new KPushButton( frame17, "m_AddFilesButton" );
    m_AddFilesButton->setGeometry( QRect( 0, 0, 110, 30 ) );
    frame16Layout->addWidget( frame17 );

    frame19 = new QFrame( frame16, "frame19" );
    frame19->setMinimumSize( QSize( 60, 0 ) );
    frame19->setFrameShape( QFrame::StyledPanel );
    frame19->setFrameShadow( QFrame::Raised );
    frame19->setLineWidth( 0 );
    frame16Layout->addWidget( frame19 );

    frame18 = new QFrame( frame16, "frame18" );
    frame18->setMinimumSize( QSize( 220, 30 ) );
    frame18->setMaximumSize( QSize( 170, 30 ) );
    frame18->setFrameShape( QFrame::StyledPanel );
    frame18->setFrameShadow( QFrame::Raised );
    frame18->setLineWidth( 0 );

    m_CancelButton = new KPushButton( frame18, "m_CancelButton" );
    m_CancelButton->setGeometry( QRect( 110, 0, 100, 30 ) );

    m_OkButton = new KPushButton( frame18, "m_OkButton" );
    m_OkButton->setGeometry( QRect( 0, 0, 100, 30 ) );
    frame16Layout->addWidget( frame18 );
    KIpMessengerAttachedFileDialogBaseLayout->addWidget( frame16 );
    languageChange();
    resize( QSize(716, 325).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // signals and slots connections
    connect( m_CancelButton, SIGNAL( clicked() ), this, SLOT( slotCancelClicked() ) );
    connect( m_DeleteButton, SIGNAL( clicked() ), this, SLOT( slotDeleteClicked() ) );
    connect( m_OkButton, SIGNAL( clicked() ), this, SLOT( slotOkClicked() ) );
    connect( m_AddDirectoriesButton, SIGNAL( clicked() ), this, SLOT( slotAddDirectoriesClicked() ) );
    connect( m_AddFilesButton, SIGNAL( clicked() ), this, SLOT( slotAddFilesClicked() ) );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KIpMessengerAttachedFileDialogBase::languageChange()
{
    setCaption( tr2i18n( "KIpMessenger - Attach File List" ) );
    groupBox2->setTitle( tr2i18n( "Attach files" ) );
    m_DeleteButton->setText( tr2i18n( "Delete" ) );
    m_DeleteButton->setAccel( QKeySequence( QString::null ) );
    m_AddDirectoriesButton->setText( tr2i18n( "&Add Directories" ) );
    m_AddDirectoriesButton->setAccel( QKeySequence( tr2i18n( "Alt+A" ) ) );
    m_AddFilesButton->setText( tr2i18n( "Add Files" ) );
    m_AddFilesButton->setAccel( QKeySequence( QString::null ) );
    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" ) ) );
}

void KIpMessengerAttachedFileDialogBase::slotAddFilesClicked()
{
    qWarning( "KIpMessengerAttachedFileDialogBase::slotAddFilesClicked(): Not implemented yet" );
}

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

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

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

void KIpMessengerAttachedFileDialogBase::slotAddDirectoriesClicked()
{
    qWarning( "KIpMessengerAttachedFileDialogBase::slotAddDirectoriesClicked(): Not implemented yet" );
}

#include "attachedfiledialogbase.moc"
