"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/bookmarkPlugin.h" (12 Feb 2021, 902 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 "bookmarkPlugin.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 BOOKMARKPLUGIN_H
    8 #define BOOKMARKPLUGIN_H
    9 
   10 #include <QMenu>
   11 
   12 class c2bFileSystemWatcher;
   13 
   14 
   15 class bookmarkPlugin : public QMenu
   16 {
   17 
   18     Q_OBJECT
   19 
   20 public:
   21     explicit bookmarkPlugin(QWidget* parentw = 0);
   22     ~bookmarkPlugin();
   23 
   24 
   25 signals:
   26     void editBookmarks();
   27     void openFile(const QString& fn);
   28 
   29 
   30 private:
   31     c2bFileSystemWatcher* _fsw;
   32     QString _bookmark_file;
   33     QString iconProvider(const QString& fn, const QString& iconFile);
   34 
   35 
   36 private slots:
   37     void init();
   38     void openBookmark();
   39     void parseBookmarks();
   40 };
   41 
   42 #endif