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

KIO

Public Slots | Public Member Functions | Protected Member Functions | List of all members
KPreviewWidgetBase Class Referenceabstract

#include <kpreviewwidgetbase.h>

Inheritance diagram for KPreviewWidgetBase:
Inheritance graph
[legend]

Public Slots

virtual void clearPreview ()=0
 
virtual void showPreview (const KUrl &url)=0
 
QStringList supportedMimeTypes () const
 

Public Member Functions

 KPreviewWidgetBase (QWidget *parent)
 
 ~KPreviewWidgetBase ()
 

Protected Member Functions

void setSupportedMimeTypes (const QStringList &mimeTypes)
 

Detailed Description

Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(const KPreviewWidgetBase *).

Ownership will be transferred to KFileDialog, so you have to create the preview with "new" and let KFileDialog delete it.

Just derive your custom preview widget from KPreviewWidgetBase and implement all the pure virtual methods. The slot showPreview(const KUrl &) is called every time the file selection changes.

Abstract baseclass for all preview widgets.

Author
Frerich Raabe raabe.nosp@m.@kde.nosp@m..org

Definition at line 43 of file kpreviewwidgetbase.h.

Constructor & Destructor Documentation

KPreviewWidgetBase::KPreviewWidgetBase ( QWidget *  parent)

Constructor.

Construct the user interface of your preview widget here and pass the KFileDialog this preview widget is going to be used in as the parent.

Parameters
parentThe KFileDialog this preview widget is going to be used in

Definition at line 17 of file kpreviewwidgetbase.cpp.

KPreviewWidgetBase::~KPreviewWidgetBase ( )

Definition at line 22 of file kpreviewwidgetbase.cpp.

Member Function Documentation

virtual void KPreviewWidgetBase::clearPreview ( )
pure virtualslot

Reimplement this to clear the preview.

This is called when e.g. the selection is cleared or when multiple selections exist, or the directory is changed.

void KPreviewWidgetBase::setSupportedMimeTypes ( const QStringList &  mimeTypes)
protected

Definition at line 27 of file kpreviewwidgetbase.cpp.

virtual void KPreviewWidgetBase::showPreview ( const KUrl &  url)
pure virtualslot

This slot is called every time the user selects another file in the file dialog.

Implement the stuff necessary to reflect the change here.

Parameters
urlThe URL of the currently selected file.
QStringList KPreviewWidgetBase::supportedMimeTypes ( ) const
slot

Definition at line 32 of file kpreviewwidgetbase.cpp.


The documentation for this class was generated from the following files:
  • kpreviewwidgetbase.h
  • kpreviewwidgetbase.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