"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bBibMenu.h" (12 Feb 2021, 2031 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 "c2bBibMenu.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 C2BBIBMENU_H
    8 #define C2BBIBMENU_H
    9 
   10 #include <QMenu>
   11 
   12 
   13 class c2bBibMenu : public QMenu
   14 {
   15 
   16     Q_OBJECT
   17 
   18 public:
   19     explicit c2bBibMenu(QWidget* parentw = 0);
   20     inline ~c2bBibMenu() {}
   21 
   22     inline QAction* addAuthorAction() const
   23     {
   24         return _add_author_action;
   25     }
   26     inline QAction* addEditorAction() const
   27     {
   28         return _add_editor_action;
   29     }
   30     inline QAction* anyPatternAction() const
   31     {
   32         return _any_pattern_action;
   33     }
   34     inline void setAnyPatternText(const QString& text)
   35     {
   36         _any_pattern_action->setText(text);
   37     }
   38 
   39     QAction* exec(const QPoint& p);
   40 
   41 
   42 protected:
   43     void keyPressEvent(QKeyEvent* qevent);
   44 
   45 
   46 private:
   47     QAction* _abstract_action;
   48     QAction* _add_author_action;
   49     QAction* _add_editor_action;
   50     QAction* _address_action;
   51     QAction* _annote_action;
   52     QAction* _any_pattern_action;
   53     QAction* _author_action;
   54     QAction* _booktitle_action;
   55     QAction* _chapter_action;
   56     QAction* _doi_action;
   57     QAction* _edition_action;
   58     QAction* _editor_action;
   59     QAction* _eprint_action;
   60     QAction* _file_action;
   61     QAction* _institution_action;
   62     QAction* _isbn_action;
   63     QAction* _issn_action;
   64     QAction* _journal_action;
   65     QAction* _keyboard_selection;
   66     QAction* _keywords_action;
   67     QAction* _month_action;
   68     QAction* _note_action;
   69     QAction* _number_action;
   70     QAction* _organization_action;
   71     QAction* _pages_action;
   72     QAction* _publisher_action;
   73     QAction* _school_action;
   74     QAction* _series_action;
   75     QAction* _title_action;
   76     QAction* _url_action;
   77     QAction* _volume_action;
   78     QAction* _year_action;
   79     bool _was_plus_pressed;
   80 };
   81 
   82 #endif