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

KIO

Public Types | Public Member Functions | List of all members
KMimeTypeChooser Class Reference

#include <kmimetypechooser.h>

Inheritance diagram for KMimeTypeChooser:
Inheritance graph
[legend]

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)
 
 ~KMimeTypeChooser ()
 
QStringList mimeTypes () const
 
QStringList patterns () const
 
- Public Member Functions inherited from KVBox
 KVBox (QWidget *parent=0)
 
 ~KVBox ()
 
- Public Member Functions inherited from KHBox
 KHBox (QWidget *parent=0)
 
 ~KHBox ()
 
virtual QSize minimumSizeHint () const
 
void setMargin (int margin)
 
void setSpacing (int space)
 
void setStretchFactor (QWidget *widget, int stretch)
 
virtual QSize sizeHint () const
 

Additional Inherited Members

- Protected Member Functions inherited from KHBox
 KHBox (bool vertical, QWidget *parent)
 
virtual void childEvent (QChildEvent *ev)
 

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.

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
textA Text to display above the list
selectedMimeTypesA list of mimetype names, theese will be checked in the list if they exist.
visualsA OR'd Visuals enum to decide which data and buttons to display.
defaultGroupThe 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.
groupsToShowa list of mimetype groups to show. If empty, all groups are shown.
parentThe parent widget to use

Definition at line 61 of file kmimetypechooser.cpp.

KMimeTypeChooser::~KMimeTypeChooser ( )

Definition at line 116 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 249 of file kmimetypechooser.cpp.

QStringList KMimeTypeChooser::patterns ( ) const
Returns
a list of the fileame patterns associated with all selected mimetypes.

Definition at line 260 of file kmimetypechooser.cpp.


The documentation for this class was generated from the following files:
  • kmimetypechooser.h
  • kmimetypechooser.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:50:04 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KIO

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

kdelibs API Reference

Skip menu "kdelibs API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal