• Skip to content
  • Skip to link menu
KDE 4.1 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

KMimeTypeChooser Class Reference

#include <kmimetypechooser.h>

Inheritance diagram for KMimeTypeChooser:

Inheritance graph
[legend]

List of all members.


Detailed Description

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.

Author:
Anders Lund (anders at alweb dk), jan 23, 2002

Definition at line 36 of file kmimetypechooser.h.


Public Types

enum  Visuals { Comments = 1, Patterns = 2, EditButton = 4 }

Public Member Functions

 KMimeTypeChooser (const QString &text=QString(), const QStringList &selectedMimeTypes=QStringList(), const QString &defaultGroup=QString(), const QStringList &groupsToShow=QStringList(), int visuals=Comments|Patterns|EditButton, QWidget *parent=0)
QStringList mimeTypes () const
QStringList patterns () const
 ~KMimeTypeChooser ()

Member Enumeration Documentation

enum KMimeTypeChooser::Visuals

Buttons and data for display.

Enumerator:
Comments  Show the Mimetypes Comment field in a column ("HTML Document").
Patterns  Show the Mimetypes Patterns field in a column ("*.html;*.htm").
EditButton  Show the "Edit" button, allowing to edit the selected type.

Definition at line 44 of file kmimetypechooser.h.


Constructor & Destructor Documentation

KMimeTypeChooser::KMimeTypeChooser ( const QString &  text = QString(),
const QStringList &  selectedMimeTypes = QStringList(),
const QString &  defaultGroup = QString(),
const QStringList &  groupsToShow = QStringList(),
int  visuals = Comments|Patterns|EditButton,
QWidget *  parent = 0 
) [explicit]

Create a new KMimeTypeChooser.

Parameters:
text A Text to display above the list
selectedMimeTypes A list of mimetype names, theese will be checked in the list if they exist.
visuals A OR'd Visuals enum to decide which data and buttons to display.
defaultGroup The group to open when no groups are selected (like "text"). If not provided, no group is opened. If groupsToShow is provided and defaultGroup is not a member of that, it is ignored.
groupsToShow a list of mimetype groups to show. If empty, all groups are shown.
parent The parent widget to use

Definition at line 63 of file kmimetypechooser.cpp.

KMimeTypeChooser::~KMimeTypeChooser (  ) 

Definition at line 120 of file kmimetypechooser.cpp.


Member Function Documentation

QStringList KMimeTypeChooser::mimeTypes (  )  const

Returns:
a list of all selected selected mimetypes represented by their name.

Definition at line 251 of file kmimetypechooser.cpp.

QStringList KMimeTypeChooser::patterns (  )  const

Returns:
a list of the fileame patterns associated with all selected mimetypes.

Definition at line 262 of file kmimetypechooser.cpp.


The documentation for this class was generated from the following files:
  • kmimetypechooser.h
  • kmimetypechooser.cpp

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • KIO
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal