/***************************************************************************
 *   Copyright (C) 2004-2006 by Pere Constans
 *   constans@molspaces.com
 *   cb2Bib version 0.6.1
 *   See LICENSE file that comes with this distribution
 ***************************************************************************/
#ifndef C2BTEXTBROWSER_H
#define C2BTEXTBROWSER_H

#include <qtextbrowser.h>


class QAction;


/**
@author Pere Constans
*/
class c2bTextBrowser : public QTextBrowser
{
    Q_OBJECT

public:
    c2bTextBrowser(QWidget *parent = 0, const char *name = 0);
    ~c2bTextBrowser();

    void setActions( QPtrList<QAction*>* aList );


public slots:
    virtual void setSource(const QString& dummy_name);

protected:
    QPtrList<QAction*>* cb2BibActions;
    virtual QPopupMenu *createPopupMenu( const QPoint& pos );

};

#endif
