Commit c1694cd6 authored by Filippo Rusconi's avatar Filippo Rusconi

New upstream version 1.9.7

parent 318a212a
2017-06-28 RELEASE OF VERSION 1.9.7
2017-06-27 Set MathJax default local for increased security (Thanks to F. Rusconi)
2017-06-27 Fixed broken Cross Ref link
2017-01-14 Added missing Qt dll to Windows installer (Thanks to M. Ivanovski)
2017-01-07 RELEASE OF VERSION 1.9.6
2017-01-07 Fixed regression when invoking internal editor for Annote
2017-01-07 Fixed MacOSX build (Thanks to G. V. Wyngaerd)
......
......@@ -324,9 +324,8 @@ pdfurl_sufix=
action=browse_query
# QUERY INFO FOR CR
# Uses <<post>> http method
journal=
query=<<post>>http://www.crossref.org/guestquery?search_type=journal&auth=&issn=&title=<<journal>>&art_title=&volume=<<volume>>&issue=&page=<<pages>>%20&year=&isbn=&comp_num=&series_title=&multi_hit=on&view_records=Search&queryType=bibsearch
query=http://www.crossref.org/guestquery?search_type=journal&auth=&issn=&title=<<journal>>&art_title=&volume=<<volume>>&issue=&page=<<pages>>%20&year=&isbn=&comp_num=&series_title=&multi_hit=on&view_records=Search&queryType=bibsearch
capture_from_query=>\s*http://dx\.doi\.org/(.+)</a>
referenceurl_prefix=http://dx.doi.org/
referenceurl_sufix=
......
......@@ -5,4 +5,4 @@
tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
});
</script>
<script type="text/javascript" src="https://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
<script type="text/javascript" src="/usr/share/javascript/mathjax/MathJax.js"></script>
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bookmarkPlugin.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BOOKMARKPLUGIN_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "c2b.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef C2B_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Class implementation of the approximate search algorithm
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Class implementation of the approximate search algorithm
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "authorString.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef AUTHORSTRING_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibExtractor.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBEXTRACTOR_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibPreparser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBPREPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBREFERENCE_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "bibSearcher.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef BIBSEARCHER_H
......
LANGUAGE = C++
HEADERS += *.h
SOURCES += *.cpp
HEADERS += $$files(*.h)
SOURCES += $$files(*.cpp)
SOURCES -= $$files(moc_*.cpp)
SOURCES -= $$files(qrc_*.cpp)
RESOURCES += c2blib.qrc
DEFINES += C2B_USE_QMAKE
INCLUDEPATH += .
QT = core network
win32 {
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef CB2BIB_CONF_PARAMETERS_H
#define CB2BIB_CONF_PARAMETERS_H
const QString C2B_DATA_DIR("@C2B_INSTALL_DATA_DIR@");
#endif
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef CB2BIB_PARAMETERS_H
......@@ -9,11 +9,7 @@
#include <QString>
#ifdef C2B_USE_QMAKE
const QString C2B_DATA_DIR("/usr/share/cb2bib");
#else
#include "cb2bib_conf_parameters.h"
#endif
const int C2B_MESSAGE_TIME(6000);
const QString C2B_APPLICATION("cb2Bib");
......@@ -33,7 +29,7 @@ const QString C2B_ICON_DISCONNECT_B("connect_no.png");
const QString C2B_ICON_VIEWBIB_B("viewbib.png");
const QString C2B_ICON_VIEWC2B_B("viewcb.png");
const QString C2B_ORGANIZATION("MOLspaces");
const QString C2B_VERSION("1.9.6");
const QString C2B_VERSION("1.9.7");
// File Manager Client
#if defined(Q_OS_WIN)
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "cb2bib_utilities.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef CB2BIB_UTILITIES_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "collectionAnalyzer.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COLLECTIONANALYZER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "collectionIndex.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COLLECTIONINDEX_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "compositePattern.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COMPOSITEPATTERN_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "coreBibParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef COREBIBPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "document.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENT_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "documentCache.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENTCACHE_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENTCONTENTS_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "documentParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef DOCUMENTPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "heuristicBibParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef HEURISTICBIBPARSER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Improvements and modifications:
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
*
* Improvements and modifications:
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "journalDB.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef JOURNALDB_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "metadataParser.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef METADATAPARSER_H
......@@ -22,7 +22,7 @@ class metadataParser : public QObject
public:
explicit metadataParser(QObject* parento = 0);
metadataParser(coreBibParser* bp, QObject* parento = 0);
metadataParser(coreBibParser* cbp, QObject* parento = 0);
inline ~metadataParser() {}
bool insertMetadata(const bibReference& ref, const QString& fn, QString* error = 0) const;
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "monthDB.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef MONTHDB_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "network.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef NETWORK_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "networkQuery.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef NETWORKQUERY_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "posTagger.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef POSTAGGER_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "preprocess.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef PREPROCESS_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "pubmedXml.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef PUBMEDXML_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "searchPattern.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef SEARCHPATTERN_H
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "settings.h"
......@@ -129,7 +129,7 @@ void settings::setDefaults()
else if (QDir(_c2bApp->applicationDirPath() + "/../Resources/data/").exists())
C2B_DATA_DIR_MAC = QDir::cleanPath(_c2bApp->applicationDirPath() + "/../Resources/");
defaults["c2bAnnote/AnnoteCssFile"] = QDir::cleanPath(C2B_DATA_DIR_MAC + "/data/tex2html.css");
defaults["c2bAnnote/MathJaxHeaderFile"] = QDir::cleanPath(C2B_DATA_DIR_MAC + "/data/tex2html_mathjax_header.html");
defaults["c2bAnnote/MathJaxHeaderFile"] = QDir::cleanPath(C2B_DATA_DIR_MAC + "/data/tex2html_local_mathjax_header.html");
defaults["c2bBibSearcher/Pdf2TextBin"] = QDir::cleanPath(C2B_BIBSEARCHER_PDF2TXT_BIN);
defaults["c2bPdfImport/LastFile"] = QDir::cleanPath(C2B_DATA_DIR_MAC + "/testPDFImport/nomeaning1.pdf");
defaults["c2bPdfImport/Pdf2TextBin"] = QDir::cleanPath(C2B_PDFIMPORT_PDF2TXT_BIN);
......@@ -143,7 +143,7 @@ void settings::setDefaults()
defaults["cb2Bib/RegularExpressionFile"] = QDir::cleanPath(C2B_DATA_DIR_MAC + "/data/regexps.txt");
#else // Q_OS_UNIX
defaults["c2bAnnote/AnnoteCssFile"] = QDir::cleanPath(C2B_DATA_DIR + dsep + "data/tex2html.css");
defaults["c2bAnnote/MathJaxHeaderFile"] = QDir::cleanPath(C2B_DATA_DIR + dsep + "data/tex2html_mathjax_header.html");
defaults["c2bAnnote/MathJaxHeaderFile"] = QDir::cleanPath(C2B_DATA_DIR + dsep + "data/tex2html_local_mathjax_header.html");
defaults["c2bBibSearcher/Pdf2TextBin"] = QDir::cleanPath(C2B_BIBSEARCHER_PDF2TXT_BIN);
defaults["c2bPdfImport/LastFile"] = QDir::cleanPath(C2B_DATA_DIR + dsep + "testPDFImport/nomeaning1.pdf");
defaults["c2bPdfImport/Pdf2TextBin"] = QDir::cleanPath(C2B_PDFIMPORT_PDF2TXT_BIN);
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#ifndef SETTINGS_H
......@@ -105,7 +105,7 @@ public:
{
return _application_pid;
}
void setDefaultValue(const QString& key, const QVariant& value);
void setDefaultValue(const QString& key, const QVariant& defaulValue);
static bool isConsoleMode(int& argc, char** argv);
static bool isSingleApplicationMode(int& argc, char** argv);
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution.
***************************************************************************/
#include "substringMatcher.h"
......
/***************************************************************************
* Copyright (C) 2004-2017 by Pere Constans
* constans@molspaces.com
* cb2Bib version 1.9.6. Licensed under the GNU GPL version 3.
* cb2Bib version 1.9.7. Licensed under the GNU GPL version 3.