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

tdeio/tdefile

  • tdeio
  • tdefile
kpreviewwidgetbase.h
1/* This file is part of the KDE libraries
2 * Copyright (C) 2001 Frerich Raabe <raabe@kde.org>
3 * 2003 Carsten Pfeiffer <pfeiffer@kde.org>
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19 */
20
21#ifndef __KPREVIEWWIDGETBASE_H__
22#define __KPREVIEWWIDGETBASE_H__
23
24#include <tqptrdict.h>
25#include <tqwidget.h>
26
27#include <tdelibs_export.h>
28
29class KURL;
30
44class TDEIO_EXPORT KPreviewWidgetBase : public TQWidget
45{
46 TQ_OBJECT
47
48public:
57 KPreviewWidgetBase(TQWidget *parent, const char *name=0);
58 ~KPreviewWidgetBase();
59
60public slots:
67 virtual void showPreview(const KURL &url) = 0;
68
74 virtual void clearPreview() = 0;
75
76 TQStringList supportedMimeTypes() const;
77
78protected:
79 void setSupportedMimeTypes( const TQStringList& mimeTypes );
80
81protected:
82 virtual void virtual_hook( int, void* ) {};
83
84private:
85 class KPreviewWidgetBasePrivate;
86 KPreviewWidgetBasePrivate * d() const {
87 return s_private->find( const_cast<KPreviewWidgetBase*>( this ) );
88 }
89 static TQPtrDict<KPreviewWidgetBasePrivate> * s_private;
90};
91
92#endif
KPreviewWidgetBase
Abstract baseclass for all preview widgets which shall be used via KFileDialog::setPreviewWidget(cons...
Definition: kpreviewwidgetbase.h:45
KPreviewWidgetBase::showPreview
virtual void showPreview(const KURL &url)=0
This slot is called every time the user selects another file in the file dialog.
KPreviewWidgetBase::clearPreview
virtual void clearPreview()=0
Reimplement this to clear the preview.

tdeio/tdefile

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

tdeio/tdefile

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