/*************************************************************************** knightstextview.h - description ------------------- begin : Sun Dec 16 2001 copyright : (C) 2003 by Troy Corbin Jr. email : tcorbin@users.sourceforge.net ***************************************************************************/ /*************************************************************************** * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * ***************************************************************************/ #ifndef KNIGHTSTEXTVIEW_H #define KNIGHTSTEXTVIEW_H #include #include /** *@author Troy Corbin Jr./Alexander Wels */ class KPopupMenu; class resource; class KnightsTextView : public QTextBrowser { Q_OBJECT public: KnightsTextView(QWidget *parent, resource *Rsrc ); ~KnightsTextView(); void pageMove( Qt::Key key=Key_PageUp ); public slots: void display_menuView( const QPoint& ); void menuFunct( int ); void displayLink(const QString& urlString); void print( void ); signals: void rightButtonClicked( const QPoint& ); protected: void viewportMousePressEvent( QMouseEvent *e ); resource *myResource; KPopupMenu *menuView; }; #endif