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

KDEWebKit

kwebview.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the KDE project.
00003  *
00004  * Copyright (C) 2007 Trolltech ASA
00005  * Copyright (C) 2008 Urs Wolfer <uwolfer @ kde.org>
00006  * Copyright (C) 2008 Laurent Montel <montel@kde.org>
00007  * Copyright (C) 2008 Michael Howell <mhowell123@gmail.com>
00008  * Copyright (C) 2009 Dawit Alemayehu <adawit @ kde.org>
00009  *
00010  * This library is free software; you can redistribute it and/or
00011  * modify it under the terms of the GNU Library General Public
00012  * License as published by the Free Software Foundation; either
00013  * version 2 of the License, or (at your option) any later version.
00014  *
00015  * This library is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018  * Library General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU Library General Public License
00021  * along with this library; see the file COPYING.LIB.  If not, write to
00022  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023  * Boston, MA 02110-1301, USA.
00024  *
00025  */
00026 #ifndef KWEBVIEW_H
00027 #define KWEBVIEW_H
00028 
00029 #include <kdewebkit_export.h>
00030 
00031 #include <QtWebKit/QWebView>
00032 
00033 class KUrl;
00034 template<class T> class KWebViewPrivate;
00035 
00056 class KDEWEBKIT_EXPORT KWebView : public QWebView
00057 {
00058     Q_OBJECT
00059     Q_PROPERTY(bool externalContentAllowed READ isExternalContentAllowed WRITE setAllowExternalContent)
00060 public:
00073     explicit KWebView(QWidget *parent = 0, bool createCustomPage = true);
00074 
00078     ~KWebView();
00079 
00088     bool isExternalContentAllowed() const;
00089 
00100     void setAllowExternalContent(bool allow);
00101 
00102 Q_SIGNALS:
00121 #ifndef KDE_NO_DEPRECATED
00122     KDE_DEPRECATED void selectionClipboardUrlPasted(const KUrl &url);
00123 #endif
00124 
00147     void selectionClipboardUrlPasted(const KUrl &url, const QString& searchText);
00148 
00158     void linkShiftClicked(const KUrl &url);
00159 
00169     void linkMiddleOrCtrlClicked(const KUrl &url);
00170 
00171 protected:
00180     void wheelEvent(QWheelEvent *event);
00181 
00190     virtual void mousePressEvent(QMouseEvent *event);
00191 
00200     virtual void mouseReleaseEvent(QMouseEvent *event);
00201 
00202 private:
00203     friend class KWebViewPrivate<KWebView>;
00204     KWebViewPrivate<KWebView> * const d;
00205 };
00206 
00207 #endif // KWEBVIEW_H

KDEWebKit

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

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
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