• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • tdeio/tdeio
 

tdeio/tdeio

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

#include <kmimetypechooser.h>

Inherits TQVBox.

Public Types

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

Public Slots

void editMimeType ()
 

Public Member Functions

 KMimeTypeChooser (const TQString &text=TQString::null, const TQStringList &selectedMimeTypes=0, const TQString &defaultGroup=TQString::null, const TQStringList &groupsToShow=TQStringList(), int visuals=Comments|Patterns|EditButton, TQWidget *parent=0, const char *name=0)
 
TQStringList mimeTypes () const
 
TQStringList patterns () const
 

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 34 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 42 of file kmimetypechooser.h.

Constructor & Destructor Documentation

KMimeTypeChooser::KMimeTypeChooser ( const TQString &  text = TQString::null,
const TQStringList &  selectedMimeTypes = 0,
const TQString &  defaultGroup = TQString::null,
const TQStringList &  groupsToShow = TQStringList(),
int  visuals = Comments|Patterns|EditButton,
TQWidget *  parent = 0,
const char *  name = 0 
)

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
nameThe internal name of this object

Definition at line 50 of file kmimetypechooser.cpp.

Member Function Documentation

void KMimeTypeChooser::editMimeType ( )
slot

edit the current mimetype Uses KRun to start the KDE mimetype editor for editing the currently selected mimetype.

Definition at line 190 of file kmimetypechooser.cpp.

TQStringList KMimeTypeChooser::mimeTypes ( ) const
Returns
a list of all selected selected mimetypes represented by their name.

Definition at line 217 of file kmimetypechooser.cpp.

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

Definition at line 229 of file kmimetypechooser.cpp.


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

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

tdeio/tdeio

Skip menu "tdeio/tdeio"
  • arts
  • dcop
  • dnssd
  • interfaces
  •   kspeech
  •     interface
  •     library
  •   tdetexteditor
  • kate
  • kded
  • kdoctools
  • kimgio
  • kjs
  • libtdemid
  • libtdescreensaver
  •     tdecore
  • tdeabc
  • tdecmshell
  • tdecore
  • tdefx
  • tdehtml
  • tdeinit
  • tdeio
  •   bookmarks
  •   httpfilter
  •   kpasswdserver
  •   kssl
  • tdeioslave
  •   http
  •   tdefile
  •   tdeio
  •   tdeioexec
  • tdemdi
  •   tdemdi
  • tdenewstuff
  • tdeparts
  • tdeprint
  • tderandr
  • tderesources
  • tdespell2
  • tdesu
  • tdeui
  • tdeunittest
  • tdeutils
  • tdewallet
Generated for tdeio/tdeio by doxygen 1.8.8
This website is maintained by Timothy Pearson.