00001
00002
00003
00004
00005
00006 #ifndef REVDESC_H
00007 #define REVDESC_H
00008
00009 #include <qtextbrowser.h>
00010
00011 class QPopupMenu;
00012 class Domain;
00013
00014
00015
00016
00017
00018
00019
00020 class RevDesc: public QTextBrowser {
00021 Q_OBJECT
00022 public:
00023 RevDesc(QWidget* parent, const char* name);
00024 void setDomain(Domain* dm) { d = dm; }
00025
00026 protected:
00027 virtual QPopupMenu* createPopupMenu(const QPoint& pos);
00028
00029 private slots:
00030 void on_linkClicked(const QString& link);
00031 void on_highlighted(const QString& link);
00032 void on_linkCopy();
00033
00034 private:
00035 Domain* d;
00036 QString highlightedLink;
00037 };
00038
00039 #endif