#include <kdialog.h>
#include <klocale.h>
/****************************************************************************
** Form implementation generated from reading ui file '/usr/src/ports/kdelibs3/kdelibs3-3.5.10-11.i686/src/kdelibs-3.5.10/kio/kfile/kpropertiesmimetypebase.ui'
**
** Created by User Interface Compiler
**
** WARNING! All changes made in this file will be lost!
****************************************************************************/

#include "kpropertiesmimetypebase.h"

#include <qvariant.h>
#include <klistview.h>
#include <qlabel.h>
#include <qheader.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>

/*
 *  Constructs a KPropertiesMimetypeBase as a child of 'parent', with the
 *  name 'name' and widget flags set to 'f'.
 */
KPropertiesMimetypeBase::KPropertiesMimetypeBase( QWidget* parent, const char* name, WFlags fl )
    : QWidget( parent, name, fl )
{
    if ( !name )
	setName( "widget2" );
    widget2Layout = new QVBoxLayout( this, 0, 6, "widget2Layout"); 

    textLabel1 = new QLabel( this, "textLabel1" );
    widget2Layout->addWidget( textLabel1 );

    listView = new KListView( this, "listView" );
    listView->addColumn( tr2i18n( "Mimetype" ) );
    listView->addColumn( tr2i18n( "Description" ) );
    widget2Layout->addWidget( listView );
    languageChange();
    resize( QSize(265, 213).expandedTo(minimumSizeHint()) );
    clearWState( WState_Polished );

    // buddies
    textLabel1->setBuddy( listView );
}

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

/*
 *  Sets the strings of the subwidgets using the current
 *  language.
 */
void KPropertiesMimetypeBase::languageChange()
{
    textLabel1->setText( tr2i18n( "Select one or more file types to add:" ) );
    listView->header()->setLabel( 0, tr2i18n( "Mimetype" ) );
    listView->header()->setLabel( 1, tr2i18n( "Description" ) );
    QWhatsThis::add( listView, tr2i18n( "<qt><p>Select one or more types of file that your application can handle here. This list is organized by <u>mimetypes</u>.</p>\n"
"<p>MIME, Multipurpose Internet (e)Mail Extension, is a standard protocol for identifying the type of data based on filename extensions and correspondent <u>mimetypes</u>. Example: the \"bmp\" part that comes after the dot in flower.bmp indicates that it is a specific kind of image, <u>image/x-bmp</u>. To know which application should open each type of file, the system should be informed about the abilities of each application to handle these extensions and mimetypes.</p>" ) );
}

#include "kpropertiesmimetypebase.moc"
