.TH "KMimeTypeChooserDialog" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMimeTypeChooserDialog \- A Dialog to choose some mimetypes. Provides a checkable tree list of mimetypes, with icons and optinally comments and patterns, and an (optional) button to display the \fBKDE\fP mimetype editor.  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmimetypechooser.h>\fP
.PP
Inherits \fBKDialogBase\fP.
.PP
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMimeTypeChooserDialog\fP (const \fBQString\fP &caption=QString::null, const \fBQString\fP &text=QString::null, const \fBQStringList\fP &selectedMimeTypes=\fBQStringList\fP(), const \fBQString\fP &defaultGroup=QString::null, const \fBQStringList\fP &groupsToShow=\fBQStringList\fP(), int visuals=KMimeTypeChooser::Comments|KMimeTypeChooser::Patterns|KMimeTypeChooser::EditButton, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBKMimeTypeChooserDialog\fP (const \fBQString\fP &caption, const \fBQString\fP &text, const \fBQStringList\fP &selectedMimeTypes, const \fBQString\fP &defaultGroup, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBKMimeTypeChooser\fP * \fBchooser\fP ()"
.br
.in -1c
.SH "Detailed Description"
.PP 
A Dialog to choose some mimetypes. Provides a checkable tree list of mimetypes, with icons and optinally comments and patterns, and an (optional) button to display the \fBKDE\fP mimetype editor. 

Here is an example, using the dialog to set the text of two lineedits:
.PP
.PP
.nf
    QString text = i18n('Select the MimeTypes you want for this file type.');
    QStringList list = QStringList::split( QRegExp('\\s*;\\s*'), leMimetypes->text() );
    KMimeTypeChooserDialog *d = new KMimeTypeChooserDialog( this, 0,
                  i18n('Select Mime Types'), text, list, 'text' );
    if ( d->exec() == KDialogBase::Accepted ) {
      leWildcards->setText( d->chooser()->patterns().join(';') );
      leMimetypes->setText( d->chooser()->mimeTypes().join(';') );
    }
.fi
.PP
.PP
\fBAuthor:\fP
.RS 4
Anders Lund (anders at alweb dk) dec 19, 2001 
.RE
.PP

.PP
Definition at line 131 of file kmimetypechooser.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMimeTypeChooserDialog::KMimeTypeChooserDialog (const \fBQString\fP & caption = \fCQString::null\fP, const \fBQString\fP & text = \fCQString::null\fP, const \fBQStringList\fP & selectedMimeTypes = \fC\fBQStringList\fP()\fP, const \fBQString\fP & defaultGroup = \fCQString::null\fP, const \fBQStringList\fP & groupsToShow = \fC\fBQStringList\fP()\fP, int visuals = \fCKMimeTypeChooser::Comments|KMimeTypeChooser::Patterns|KMimeTypeChooser::EditButton\fP, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Create a \fBKMimeTypeChooser\fP dialog. 
.PP
\fBParameters:\fP
.RS 4
\fIcaption\fP The title of the dialog 
.br
\fItext\fP A Text to display above the list 
.br
\fIselectedMimeTypes\fP A list of mimetype names, theese will be checked in the list if they exist. patterns will be added to the list view. 
.br
\fIvisuals\fP A OR'd KMimetypeChooser::Visuals enum to decide which data and buttons to display. 
.br
\fIdefaultGroup\fP The group to open when no groups are selected (like 'text'). If not provided, no group is opened. If \fCgroupsToShow\fP is provided and defaultGroup is not a member of that, it is ignored. 
.br
\fIgroupsToShow\fP a list of mimetype groups to show. If empty, all groups are shown. 
.br
\fIparent\fP The parent widget to use 
.br
\fIname\fP The internal name of this object 
.RE
.PP

.PP
Definition at line 249 of file kmimetypechooser.cpp.
.PP
References KConfigBase::readSizeEntry(), and KDialogBase::setMainWidget().
.SS "KMimeTypeChooserDialog::KMimeTypeChooserDialog (const \fBQString\fP & caption, const \fBQString\fP & text, const \fBQStringList\fP & selectedMimeTypes, const \fBQString\fP & defaultGroup, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 
.PP
Definition at line 268 of file kmimetypechooser.cpp.
.PP
References KConfigBase::readSizeEntry(), and KDialogBase::setMainWidget().
.SH "Member Function Documentation"
.PP 
.SS "\fBKMimeTypeChooser\fP* KMimeTypeChooserDialog::chooser ()\fC [inline]\fP"
.PP
\fBReturns:\fP
.RS 4
a pointer to the \fBKMimeTypeChooser\fP widget 
.RE
.PP

.PP
Definition at line 174 of file kmimetypechooser.h.

.SH "Author"
.PP 
Generated automatically by Doxygen for kio Library from the source code.
