"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bTextBrowser.h" (12 Feb 2021, 817 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "c2bTextBrowser.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef C2BTEXTBROWSER_H
    8 #define C2BTEXTBROWSER_H
    9 
   10 #include <QTextBrowser>
   11 
   12 
   13 class QAction;
   14 
   15 
   16 /**
   17     @author Pere Constans
   18 */
   19 class c2bTextBrowser : public QTextBrowser
   20 {
   21     Q_OBJECT
   22 
   23 public:
   24     explicit c2bTextBrowser(QWidget* parentw = 0);
   25     ~c2bTextBrowser();
   26 
   27     void updateHtml(const QString& newHtml);
   28 
   29 
   30 public slots:
   31     virtual void setSource(const QUrl& name);
   32 
   33 
   34 protected:
   35     virtual void contextMenuEvent(QContextMenuEvent* qevent);
   36 };
   37 
   38 #endif