.TH "KMimeTypeChooser" kde3 "11 Jun 2005" "Version Version 3.4.1" "kio Library" \" -*- nroff -*-
.ad l
.nh
.SH NAME
KMimeTypeChooser \- This widget provides a checkable list of all available mimetypes, and a list of selected ones, as well as a corresponding list of file extensions, an optional text and an optional edit button (not working yet).  

.PP
.SH SYNOPSIS
.br
.PP
\fC#include <kmimetypechooser.h>\fP
.PP
Inherits \fBQVBox\fP.
.PP
.SS "Public Types"

.in +1c
.ti -1c
.RI "enum \fBVisuals\fP { \fBComments\fP = 1, \fBPatterns\fP = 2, \fBEditButton\fP = 4 }"
.br
.in -1c
.SS "Public Slots"

.in +1c
.ti -1c
.RI "void \fBeditMimeType\fP ()"
.br
.in -1c
.SS "Public Member Functions"

.in +1c
.ti -1c
.RI "\fBKMimeTypeChooser\fP (const \fBQString\fP &text=QString::null, const \fBQStringList\fP &selectedMimeTypes=0, const \fBQString\fP &defaultGroup=QString::null, const \fBQStringList\fP &groupsToShow=\fBQStringList\fP(), int visuals=Comments|Patterns|EditButton, \fBQWidget\fP *parent=0, const char *name=0)"
.br
.ti -1c
.RI "\fBQStringList\fP \fBmimeTypes\fP () const "
.br
.ti -1c
.RI "\fBQStringList\fP \fBpatterns\fP () const "
.br
.in -1c
.SH "Detailed Description"
.PP 
This widget provides a checkable list of all available mimetypes, and a list of selected ones, as well as a corresponding list of file extensions, an optional text and an optional edit button (not working yet). 

Mime types is presented in a list view, with name, comment and patterns columns.
.PP
\fBAuthor:\fP
.RS 4
Anders Lund (anders at alweb dk), jan 23, 2002 
.RE
.PP

.PP
Definition at line 34 of file kmimetypechooser.h.
.SH "Member Enumeration Documentation"
.PP 
.SS "enum \fBKMimeTypeChooser::Visuals\fP"
.PP
Buttons and data for display. 
.PP
\fBEnumeration values: \fP
.in +1c
.TP
\fB\fIComments \fP\fP
Show the Mimetypes Comment field in a column ('HTML Document'). 
.TP
\fB\fIPatterns \fP\fP
Show the Mimetypes Patterns field in a column ('*.html;*.htm'). 
.TP
\fB\fIEditButton \fP\fP
Show the 'Edit' button, allowing to edit the selected type. 
.PP
Definition at line 42 of file kmimetypechooser.h.
.SH "Constructor & Destructor Documentation"
.PP 
.SS "KMimeTypeChooser::KMimeTypeChooser (const \fBQString\fP & text = \fCQString::null\fP, const \fBQStringList\fP & selectedMimeTypes = \fC0\fP, const \fBQString\fP & defaultGroup = \fCQString::null\fP, const \fBQStringList\fP & groupsToShow = \fC\fBQStringList\fP()\fP, int visuals = \fCComments|Patterns|EditButton\fP, \fBQWidget\fP * parent = \fC0\fP, const char * name = \fC0\fP)"
.PP
Create a new KMimeTypeChooser. 
.PP
\fBParameters:\fP
.RS 4
\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. 
.br
\fIvisuals\fP A OR'd 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 50 of file kmimetypechooser.cpp.
.PP
References QWhatsThis::add(), Comments, EditButton, editMimeType(), and Patterns.
.SH "Member Function Documentation"
.PP 
.SS "\fBQStringList\fP KMimeTypeChooser::mimeTypes () const"
.PP
\fBReturns:\fP
.RS 4
a list of all selected selected mimetypes represented by their name. 
.RE
.PP

.PP
Definition at line 217 of file kmimetypechooser.cpp.
.SS "\fBQStringList\fP KMimeTypeChooser::patterns () const"
.PP
\fBReturns:\fP
.RS 4
a list of the fileame patterns associated with all selected mimetypes. 
.RE
.PP

.PP
Definition at line 229 of file kmimetypechooser.cpp.
.PP
References KMimeType::defaultMimeType(), and KMimeType::mimeType().
.SS "void KMimeTypeChooser::editMimeType ()\fC [slot]\fP"
.PP
edit the current mimetype Uses \fBKRun\fP to start the \fBKDE\fP mimetype editor for editing the currently selected mimetype. 
.PP
Definition at line 190 of file kmimetypechooser.cpp.
.PP
References QString::fromLatin1(), KRun::runCommand(), and QListViewItem::text().
.PP
Referenced by KMimeTypeChooser().

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