From dfe289850f068f19ba4a83ab4e7e22a7e09c13c9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sat, 26 Jan 2013 13:17:21 -0600 Subject: Rename a number of libraries and executables to avoid conflicts with KDE4 --- tdehtml/tdehtmlimage.h | 119 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 119 insertions(+) create mode 100644 tdehtml/tdehtmlimage.h (limited to 'tdehtml/tdehtmlimage.h') diff --git a/tdehtml/tdehtmlimage.h b/tdehtml/tdehtmlimage.h new file mode 100644 index 000000000..b8d2d86d4 --- /dev/null +++ b/tdehtml/tdehtmlimage.h @@ -0,0 +1,119 @@ +/* This file is part of the KDE project + Copyright (C) 2000 Simon Hausmann + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef __tdehtmlimage_h__ +#define __tdehtmlimage_h__ + +#include "tdehtml_part.h" +#include +#include + +#include "misc/loader_client.h" + +class KHTMLPart; +class TDEInstance; + +namespace tdehtml +{ + class CachedImage; +} + +/** + * @internal + */ +class KHTMLImageFactory : public KParts::Factory +{ + Q_OBJECT +public: + KHTMLImageFactory(); + virtual ~KHTMLImageFactory(); + + virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, + const char *className, const TQStringList &args ); + + static TDEInstance *instance() { return s_instance; } + +private: + static TDEInstance *s_instance; +}; + +/** + * @internal + */ +class KHTMLImage : public KParts::ReadOnlyPart, public tdehtml::CachedObjectClient +{ + Q_OBJECT +public: + KHTMLImage( TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, KHTMLPart::GUIProfile prof ); + virtual ~KHTMLImage(); + + virtual bool openFile() { return true; } // grmbl, should be non-pure in part.h, IMHO + + virtual bool openURL( const KURL &url ); + + virtual bool closeURL(); + + KHTMLPart *doc() const { return m_tdehtml; } + + virtual void notifyFinished( tdehtml::CachedObject *o ); + +protected: + virtual void guiActivateEvent( KParts::GUIActivateEvent *e ); + virtual bool eventFilter( TQObject *filterTarget, TQEvent *e ); + +private slots: + void restoreScrollPosition(); +// void slotImageJobFinished( TDEIO::Job *job ); + +// void updateWindowCaption(); + +private: + void disposeImage(); + + TQGuardedPtr m_tdehtml; + KParts::BrowserExtension *m_ext; + TQString m_mimeType; + tdehtml::CachedImage *m_image; + int m_xOffset, m_yOffset; +}; + +/** + * @internal + */ +class KHTMLImageBrowserExtension : public KParts::BrowserExtension +{ + Q_OBJECT +public: + KHTMLImageBrowserExtension( KHTMLImage *parent, const char *name = 0 ); + + virtual int xOffset(); + virtual int yOffset(); + +protected slots: + void print(); + void reparseConfiguration(); + void disableScrolling(); + +private: + KHTMLImage *m_imgPart; +}; + +#endif -- cgit v1.2.1 From 7427e438358d44c37e3c8b0a9cfbb225ffd60e79 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 27 Jan 2013 15:54:26 -0600 Subject: Rename KHTML and kiobuffer --- tdehtml/tdehtmlimage.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'tdehtml/tdehtmlimage.h') diff --git a/tdehtml/tdehtmlimage.h b/tdehtml/tdehtmlimage.h index b8d2d86d4..8b8b5893b 100644 --- a/tdehtml/tdehtmlimage.h +++ b/tdehtml/tdehtmlimage.h @@ -26,7 +26,7 @@ #include "misc/loader_client.h" -class KHTMLPart; +class TDEHTMLPart; class TDEInstance; namespace tdehtml @@ -37,12 +37,12 @@ namespace tdehtml /** * @internal */ -class KHTMLImageFactory : public KParts::Factory +class TDEHTMLImageFactory : public KParts::Factory { Q_OBJECT public: - KHTMLImageFactory(); - virtual ~KHTMLImageFactory(); + TDEHTMLImageFactory(); + virtual ~TDEHTMLImageFactory(); virtual KParts::Part *createPartObject( TQWidget *parentWidget, const char *widgetName, TQObject *parent, const char *name, @@ -57,13 +57,13 @@ private: /** * @internal */ -class KHTMLImage : public KParts::ReadOnlyPart, public tdehtml::CachedObjectClient +class TDEHTMLImage : public KParts::ReadOnlyPart, public tdehtml::CachedObjectClient { Q_OBJECT public: - KHTMLImage( TQWidget *parentWidget, const char *widgetName, - TQObject *parent, const char *name, KHTMLPart::GUIProfile prof ); - virtual ~KHTMLImage(); + TDEHTMLImage( TQWidget *parentWidget, const char *widgetName, + TQObject *parent, const char *name, TDEHTMLPart::GUIProfile prof ); + virtual ~TDEHTMLImage(); virtual bool openFile() { return true; } // grmbl, should be non-pure in part.h, IMHO @@ -71,7 +71,7 @@ public: virtual bool closeURL(); - KHTMLPart *doc() const { return m_tdehtml; } + TDEHTMLPart *doc() const { return m_tdehtml; } virtual void notifyFinished( tdehtml::CachedObject *o ); @@ -88,7 +88,7 @@ private slots: private: void disposeImage(); - TQGuardedPtr m_tdehtml; + TQGuardedPtr m_tdehtml; KParts::BrowserExtension *m_ext; TQString m_mimeType; tdehtml::CachedImage *m_image; @@ -98,11 +98,11 @@ private: /** * @internal */ -class KHTMLImageBrowserExtension : public KParts::BrowserExtension +class TDEHTMLImageBrowserExtension : public KParts::BrowserExtension { Q_OBJECT public: - KHTMLImageBrowserExtension( KHTMLImage *parent, const char *name = 0 ); + TDEHTMLImageBrowserExtension( TDEHTMLImage *parent, const char *name = 0 ); virtual int xOffset(); virtual int yOffset(); @@ -113,7 +113,7 @@ protected slots: void disableScrolling(); private: - KHTMLImage *m_imgPart; + TDEHTMLImage *m_imgPart; }; #endif -- cgit v1.2.1