"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/cb2Bib.h" (12 Feb 2021, 4065 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 "cb2Bib.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 CB2BIB_H
    8 #define CB2BIB_H
    9 
   10 #include "ui_cb2Bib.h"
   11 
   12 #include <QHash>
   13 #include <QMainWindow>
   14 #include <QPointer>
   15 
   16 class bibSearcher;
   17 class c2bBibMenu;
   18 class c2bBibParser;
   19 class c2bCiterWidget;
   20 class c2bClipEdit;
   21 class c2bEditor;
   22 class c2bNetworkQuery;
   23 class c2bPdfImport;
   24 class c2bSearchInFiles;
   25 class c2bSettings;
   26 class c2bTextBrowser;
   27 
   28 
   29 class cb2Bib : public QMainWindow
   30 {
   31 
   32     Q_OBJECT
   33 
   34 public:
   35     explicit cb2Bib(QWidget* parentw = 0);
   36     ~cb2Bib();
   37 
   38 
   39 public slots:
   40     void show();
   41 
   42 
   43 signals:
   44     void addedBibToFile(const QString&);
   45     void endedProcessing(bool status);
   46 
   47 
   48 private:
   49     QHash<QString, c2bEditor*> _openDocuments;
   50     QPointer<c2bPdfImport> _pdfImportP;
   51     QPointer<c2bSearchInFiles> _searchInFilesP;
   52     QString _dropped_document_file;
   53     QString _raw_input_data;
   54     QString _target_document_file;
   55     QString buttonStatusTip(const QString& ms, const QKeySequence& ks) const;
   56     Ui::cb2Bib ui;
   57     bool _connected;
   58     bool _is_check_repeated_done;
   59     bool _modified;
   60     bool _tagged_view_mode;
   61     bool isReferenceRepeated();
   62     c2bBibMenu* _bib_menu;
   63     c2bBibParser* _bpP;
   64     c2bCiterWidget* _citerP;
   65     c2bClipEdit* BibBrowser;
   66     c2bClipEdit* ClipEdit;
   67     c2bNetworkQuery* _netQP;
   68     c2bSettings* _settingsP;
   69     c2bTextBrowser* AboutBrowser;
   70     void annoteEditor(const QString& annotefile);
   71     void c2bParse(const QString& text);
   72     void c2bPreparse(const QString& text);
   73     void closeEvent(QCloseEvent* qevent);
   74     void dragEnterEvent(QDragEnterEvent* qevent);
   75     void dropEvent(QDropEvent* qevent);
   76     void fileDroppedByUser(const QString& fn);
   77     void initAsBibTeXEditor();
   78     void processingEnded();
   79     void setBibMenu();
   80     void setWidgetMapping();
   81     void updateBibfile(const QString& fn);
   82     void updateViewButtons();
   83 
   84 
   85 private slots:
   86     void abbreviationsEditor();
   87     void addAuthors();
   88     void addEditors();
   89     void addMetadata();
   90     void addToFile(bool ready);
   91     void anyPattern();
   92     void bibEditor(const QString& bibtexfile, bibSearcher* searcher = 0);
   93     void bibModified(bool modified);
   94     void bookmarksEditor();
   95     void c2bInit();
   96     void checkRepeated();
   97     void dataChanged(const QString& str);
   98     void deleteTmpBib();
   99     void doSearchInFiles(const QString& string = QString(), const QString& fn = QString());
  100     void fileDropped(const QString& fn);
  101     void forceDataChange(const QString& str);
  102     void guessFields();
  103     void insertRegExp();
  104     void linkClicked(const QUrl& ln);
  105     void loadSettings();
  106     void makeNetQuery();
  107     void netQueryEnded(bool succeeded, const QString& targetPDF, const QString& targetBib);
  108     void on_AddBibB_clicked();
  109     void on_BibTeXDir_clicked();
  110     void on_ConfigureB_clicked();
  111     void on_ConnectB_clicked();
  112     void on_EditBibTeXB_clicked();
  113     void on_ExitB_clicked();
  114     void on_MakeNetworkQueryB_clicked();
  115     void on_PdfImportB_clicked();
  116     void on_SearchInFilesB_clicked();
  117     void on_ViewAboutB_clicked();
  118     void on_ViewBibB_clicked();
  119     void openAnnote();
  120     void openFileDocument();
  121     void postprocessBibTeX();
  122     void preparseClipboard();
  123     void readField(const QPoint& position);
  124     void regExpsEditor();
  125     void restartEngine();
  126     void savePattern(const QString& rx, const QString& rxname);
  127     void selectFile();
  128     void setDocumentFilename();
  129     void setTaggedClipEditMode(bool tagged);
  130     void setWindowTitle(const QString& title = QString());
  131     void showLink(const QString& ln);
  132     void showMessage(const QString& ms);
  133     void toggleReferenceTabs();
  134     void updateCheckRepeatedAction();
  135     void updateOpenDocuments(QObject* obj);
  136     void updateOpenDocuments(const QString& old_name, const QString& new_name);
  137 };
  138 
  139 #endif