"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/c2bSearchInFilesPattern.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.

c2bSearchInFilesPattern.cpp  (cb2bib-1.9.9):c2bSearchInFilesPattern.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 "c2bSearchInFilesPattern.h" #include "c2bSearchInFilesPattern.h"
#include "c2b.h" #include "c2b.h"
#include "c2bBibParser.h" #include "c2bBibParser.h"
#include "c2bSettings.h" #include "c2bSettings.h"
#include <searchPattern.h> #include <searchPattern.h>
skipping to change at line 28 skipping to change at line 28
{ {
ui.setupUi(this); ui.setupUi(this);
c2bBibParser* bp = c2b::bibParser(); c2bBibParser* bp = c2b::bibParser();
ui.patternType->addItems(searchPattern::types()); ui.patternType->addItems(searchPattern::types());
ui.patternType->setCurrentIndex(c2bSettingsP->value("c2bSearchInFiles/Patter nTypeIndex", 0).toInt()); ui.patternType->setCurrentIndex(c2bSettingsP->value("c2bSearchInFiles/Patter nTypeIndex", 0).toInt());
ui.patternScope->addItems(bp->sortedBibliographicFields()); ui.patternScope->addItems(bp->sortedBibliographicFields());
ui.yearScope->hide(); ui.yearScope->hide();
ui.inputPattern->setFocus(); ui.inputPattern->setFocus();
connect(ui.clearB, SIGNAL(clicked()), this, SLOT(patternChanged())); connect(ui.clearB, SIGNAL(clicked()), this, SLOT(patternChanged()));
connect(ui.inputPattern, SIGNAL(textEdited(const QString&)), this, SLOT(patt connect(ui.inputPattern, SIGNAL(textEdited(QString)), this, SLOT(patternChan
ernChanged())); ged()));
connect(ui.patternScope, SIGNAL(currentIndexChanged(const QString&)), this, connect(ui.patternScope, SIGNAL(currentIndexChanged(QString)), this, SLOT(sh
SLOT(showYearScope(const QString&))); owYearScope(QString)));
} }
c2bSearchInFilesPattern::~c2bSearchInFilesPattern() c2bSearchInFilesPattern::~c2bSearchInFilesPattern()
{ {
c2bSettingsP->setValue("c2bSearchInFiles/PatternTypeIndex", ui.patternType-> currentIndex()); c2bSettingsP->setValue("c2bSearchInFiles/PatternTypeIndex", ui.patternType-> currentIndex());
} }
void c2bSearchInFilesPattern::patternChanged() void c2bSearchInFilesPattern::patternChanged()
{ {
emit patternAvailable(isAvailable()); emit patternAvailable(isAvailable());
 End of changes. 3 change blocks. 
6 lines changed or deleted 6 lines changed or added

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