\section{KMime\-Type\-Chooser\-Dialog Class Reference}
\label{classKMimeTypeChooserDialog}\index{KMimeTypeChooserDialog@{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 {\bf KDE} mimetype editor.  


{\tt \#include $<$kmimetypechooser.h$>$}

Inheritance diagram for KMime\-Type\-Chooser\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=85pt]{classKMimeTypeChooserDialog__inherit__graph}
\end{center}
\end{figure}
Collaboration diagram for KMime\-Type\-Chooser\-Dialog:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[width=117pt]{classKMimeTypeChooserDialog__coll__graph}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
{\bf KMime\-Type\-Chooser\-Dialog} (const {\bf QString} \&caption=QString::null, const {\bf QString} \&text=QString::null, const {\bf QString\-List} \&selected\-Mime\-Types={\bf QString\-List}(), const {\bf QString} \&default\-Group=QString::null, const {\bf QString\-List} \&groups\-To\-Show={\bf QString\-List}(), int visuals=KMime\-Type\-Chooser::Comments$|$KMime\-Type\-Chooser::Patterns$|$KMime\-Type\-Chooser::Edit\-Button, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KMime\-Type\-Chooser\-Dialog} (const {\bf QString} \&caption, const {\bf QString} \&text, const {\bf QString\-List} \&selected\-Mime\-Types, const {\bf QString} \&default\-Group, {\bf QWidget} $\ast$parent=0, const char $\ast$name=0)
\item 
{\bf KMime\-Type\-Chooser} $\ast$ {\bf chooser} ()
\end{CompactItemize}


\subsection{Detailed Description}
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 {\bf KDE} mimetype editor. 

Here is an example, using the dialog to set the text of two lineedits:



\footnotesize\begin{verbatim}    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(";") );
    }
\end{verbatim}
\normalsize


\begin{Desc}
\item[Author:]Anders Lund (anders at alweb dk) dec 19, 2001 \end{Desc}




Definition at line 131 of file kmimetypechooser.h.

\subsection{Constructor \& Destructor Documentation}
\index{KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}!KMimeTypeChooserDialog@{KMimeTypeChooserDialog}}
\index{KMimeTypeChooserDialog@{KMimeTypeChooserDialog}!KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMime\-Type\-Chooser\-Dialog::KMime\-Type\-Chooser\-Dialog (const {\bf QString} \& {\em caption} = {\tt QString::null}, const {\bf QString} \& {\em text} = {\tt QString::null}, const {\bf QString\-List} \& {\em selected\-Mime\-Types} = {\tt {\bf QString\-List}()}, const {\bf QString} \& {\em default\-Group} = {\tt QString::null}, const {\bf QString\-List} \& {\em groups\-To\-Show} = {\tt {\bf QString\-List}()}, int {\em visuals} = {\tt KMimeTypeChooser::Comments$|$KMimeTypeChooser::Patterns$|$KMimeTypeChooser::EditButton}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKMimeTypeChooserDialog_a0}


Create a {\bf KMime\-Type\-Chooser}{\rm (p.\,\pageref{classKMimeTypeChooser})} dialog. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em caption}]The title of the dialog \item[{\em text}]A Text to display above the list \item[{\em selected\-Mime\-Types}]A list of mimetype names, theese will be checked in the list if they exist. patterns will be added to the list view. \item[{\em visuals}]A OR'd KMimetype\-Chooser::Visuals enum to decide which data and buttons to display. \item[{\em default\-Group}]The group to open when no groups are selected (like \char`\"{}text\char`\"{}). If not provided, no group is opened. If {\tt groups\-To\-Show} is provided and default\-Group is not a member of that, it is ignored. \item[{\em groups\-To\-Show}]a list of mimetype groups to show. If empty, all groups are shown. \item[{\em parent}]The parent widget to use \item[{\em name}]The internal name of this object \end{description}
\end{Desc}


Definition at line 249 of file kmimetypechooser.cpp.

References KConfig\-Base::read\-Size\-Entry(), and KDialog\-Base::set\-Main\-Widget().\index{KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}!KMimeTypeChooserDialog@{KMimeTypeChooserDialog}}
\index{KMimeTypeChooserDialog@{KMimeTypeChooserDialog}!KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}KMime\-Type\-Chooser\-Dialog::KMime\-Type\-Chooser\-Dialog (const {\bf QString} \& {\em caption}, const {\bf QString} \& {\em text}, const {\bf QString\-List} \& {\em selected\-Mime\-Types}, const {\bf QString} \& {\em default\-Group}, {\bf QWidget} $\ast$ {\em parent} = {\tt 0}, const char $\ast$ {\em name} = {\tt 0})}\label{classKMimeTypeChooserDialog_a1}


This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. 

Definition at line 268 of file kmimetypechooser.cpp.

References KConfig\-Base::read\-Size\-Entry(), and KDialog\-Base::set\-Main\-Widget().

\subsection{Member Function Documentation}
\index{KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}!chooser@{chooser}}
\index{chooser@{chooser}!KMimeTypeChooserDialog@{KMime\-Type\-Chooser\-Dialog}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf KMime\-Type\-Chooser}$\ast$ KMime\-Type\-Chooser\-Dialog::chooser ()\hspace{0.3cm}{\tt  [inline]}}\label{classKMimeTypeChooserDialog_a3}


\begin{Desc}
\item[Returns:]a pointer to the {\bf KMime\-Type\-Chooser}{\rm (p.\,\pageref{classKMimeTypeChooser})} widget \end{Desc}


Definition at line 174 of file kmimetypechooser.h.

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kmimetypechooser.h\item 
kmimetypechooser.cpp\end{CompactItemize}
