"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bRLWebSearchSettings.cpp" between
cb2bib-1.9.9.tar.gz and cb2bib-2.0.0.tar.gz

About: cb2Bib is a multiplatform application for rapidly extracting unformatted, or unstandardized bibliographic references from email alerts, journal Web pages, and PDF files.

c2bRLWebSearchSettings.cpp  (cb2bib-1.9.9):c2bRLWebSearchSettings.cpp  (cb2bib-2.0.0)
/*************************************************************************** /***************************************************************************
* Copyright (C) 2004-2018 by Pere Constans * Copyright (C) 2004-2019 by Pere Constans
* constans@molspaces.com * constans@molspaces.com
* cb2Bib version 1.9.9. Licensed under the GNU GPL version 3. * cb2Bib version 2.0.0. Licensed under the GNU GPL version 3.
* See the LICENSE file that comes with this distribution. * See the LICENSE file that comes with this distribution.
***************************************************************************/ ***************************************************************************/
#include "c2bRLWebSearchSettings.h" #include "c2bRLWebSearchSettings.h"
#include "c2bSettings.h" #include "c2bSettings.h"
c2bRLWebSearchSettings::c2bRLWebSearchSettings(QWidget* parentw) : QDialog(paren tw) c2bRLWebSearchSettings::c2bRLWebSearchSettings(QWidget* parentw) : QDialog(paren tw)
{ {
ui.setupUi(this); ui.setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
skipping to change at line 27 skipping to change at line 27
const QString searchEngine(settings->value("c2bReferenceList/SearchEngine"). toString()); const QString searchEngine(settings->value("c2bReferenceList/SearchEngine"). toString());
ui.searchEngine->addItem(searchEngine); ui.searchEngine->addItem(searchEngine);
ui.searchEngine->addItem("https://www.google.com/search?ie=UTF-8&q="); ui.searchEngine->addItem("https://www.google.com/search?ie=UTF-8&q=");
ui.searchEngine->addItem("https://scholar.google.com/scholar?ie=UTF-8&q="); ui.searchEngine->addItem("https://scholar.google.com/scholar?ie=UTF-8&q=");
ui.searchEngine->addItem("http://www.ncbi.nlm.nih.gov/pubmed?term="); ui.searchEngine->addItem("http://www.ncbi.nlm.nih.gov/pubmed?term=");
ui.searchEngine->setCurrentIndex(0); ui.searchEngine->setCurrentIndex(0);
ui.searchEngine->setFocus(); ui.searchEngine->setFocus();
ui.addQuotes->setChecked(settings->value("c2bReferenceList/SearchEngineAddQu otes").toBool()); ui.addQuotes->setChecked(settings->value("c2bReferenceList/SearchEngineAddQu otes").toBool());
} }
c2bRLWebSearchSettings::~c2bRLWebSearchSettings() c2bRLWebSearchSettings::~c2bRLWebSearchSettings() {}
{}
void c2bRLWebSearchSettings::accept() void c2bRLWebSearchSettings::accept()
{ {
c2bSettings* settings(c2bSettingsP); c2bSettings* settings(c2bSettingsP);
settings->setValue("c2bReferenceList/SearchEngine", ui.searchEngine->current Text()); settings->setValue("c2bReferenceList/SearchEngine", ui.searchEngine->current Text());
settings->setValue("c2bReferenceList/SearchEngineAddQuotes", ui.addQuotes->i sChecked()); settings->setValue("c2bReferenceList/SearchEngineAddQuotes", ui.addQuotes->i sChecked());
QDialog::accept(); QDialog::accept();
} }
 End of changes. 3 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)