diff options
Diffstat (limited to 'src/kde/kchmviewwindow_khtmlpart.h')
-rw-r--r-- | src/kde/kchmviewwindow_khtmlpart.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/src/kde/kchmviewwindow_khtmlpart.h b/src/kde/kchmviewwindow_khtmlpart.h index 5799f62..b2d5aa6 100644 --- a/src/kde/kchmviewwindow_khtmlpart.h +++ b/src/kde/kchmviewwindow_khtmlpart.h @@ -28,29 +28,33 @@ #include "kchmsourcefactory.h" #include "libchmtextencoding.h" +#ifdef Q_MOC_RUN +#define USE_KDE +#endif // Q_MOC_RUN /** @author Georgy Yunaev */ /* - * For Qt-only version, we cannot compile KCHMViewWindow_KHTMLPart. However, - * we cannot just exclude it, because it would not generate a MOC file for a KDE - * version. Therefore we declare it, and compile the .moc file, but do not provide + * For TQt-only version, we cannot compile KCHMViewWindow_KHTMLPart. However, + * we cannot just exclude it, because it would not generate a TQMOC file for a KDE + * version. Therefore we declare it, and compile the .tqmoc file, but do not provide * the class methods. */ #if defined (USE_KDE) class KCHMViewWindow_KHTMLPart : public KHTMLPart, public KCHMViewWindow { Q_OBJECT +TQ_OBJECT public: - KCHMViewWindow_KHTMLPart( QTabWidget * parent ); + KCHMViewWindow_KHTMLPart( TQTabWidget * tqparent ); ~KCHMViewWindow_KHTMLPart(); //! Open a page from current chm archive - virtual bool openPage (const QString& url); + virtual bool openPage (const TQString& url); //! Invalidate current view, doing all the cleanups etc. - virtual void invalidate(); + virtual void tqinvalidate(); //! Return current ZoomFactor. virtual int getZoomFactor() const { return m_zoomfactor; } @@ -64,8 +68,8 @@ public: //! Popups the print dialog, and prints the current page on the printer. virtual bool printCurrentPage(); - //! Initiates the find-in-page search, if succeed, cursor moved to the first entry - virtual void searchWord( const QString & word, bool forward = true, bool casesensitive = false ); + //! Initiates the tqfind-in-page search, if succeed, cursor moved to the first entry + virtual void searchWord( const TQString & word, bool forward = true, bool casesensitive = false ); //! Select the content of the whole page virtual void clipSelectAll(); @@ -83,8 +87,8 @@ public: //! Sets the scrollbar position. virtual void setScrollbarPosition(int pos); - virtual QObject * getQObject() { return this; } - virtual QWidget * getQWidget(); + virtual TQObject * getTQObject() { return this; } + virtual TQWidget * getTQWidget(); signals: /*! @@ -92,19 +96,19 @@ signals: * If signalLinkClicked() sets follow_link to false, the current page should NOT change. * Otherwise it should be changed to the new link value. */ - void signalLinkClicked ( const QString & newlink, bool& follow_link ); + void signalLinkClicked ( const TQString & newlink, bool& follow_link ); private slots: - virtual void slotLinkClicked ( const QString & newlink); + virtual void slotLinkClicked ( const TQString & newlink); virtual void onOpenURLRequest( const KURL &, const KParts::URLArgs & ); - virtual void onPopupMenu ( const QString & url, const QPoint & point ); + virtual void onPopupMenu ( const TQString & url, const TQPoint & point ); private: - void setSource ( const QString & name ); + void setSource ( const TQString & name ); int m_zoomfactor; bool m_searchForward; - QString m_searchText; + TQString m_searchText; const LCHMTextEncoding * m_currentEncoding; }; |