"Fossies" - the Fresh Open Source Software Archive  

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

c2bConfigureFR.cpp  (cb2bib-1.9.9):c2bConfigureFR.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 "c2bConfigureFR.h" #include "c2bConfigureFR.h"
#include <QTreeWidgetItem> #include <QTreeWidgetItem>
c2bConfigureFR::c2bConfigureFR(QTreeWidgetItem* item, QWidget* parentw) : QDialo g(parentw) c2bConfigureFR::c2bConfigureFR(QTreeWidgetItem* item, QWidget* parentw) : QDialo g(parentw)
{ {
ui.setupUi(this); ui.setupUi(this);
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
itemFindReplace = item; itemFindReplace = item;
ui.lineEditFind->setText(itemFindReplace->text(0)); ui.lineEditFind->setText(itemFindReplace->text(0));
ui.lineEditReplace->setText(itemFindReplace->text(1)); ui.lineEditReplace->setText(itemFindReplace->text(1));
ui.lineEditDescription->setText(itemFindReplace->text(2)); ui.lineEditDescription->setText(itemFindReplace->text(2));
ui.lineEditFind->setFocus(); ui.lineEditFind->setFocus();
} }
c2bConfigureFR::~c2bConfigureFR() c2bConfigureFR::~c2bConfigureFR() {}
{}
void c2bConfigureFR::reject() void c2bConfigureFR::reject()
{ {
QDialog::reject(); QDialog::reject();
} }
void c2bConfigureFR::accept() void c2bConfigureFR::accept()
{ {
itemFindReplace->setText(0, ui.lineEditFind->text()); itemFindReplace->setText(0, ui.lineEditFind->text());
itemFindReplace->setText(1, ui.lineEditReplace->text()); itemFindReplace->setText(1, ui.lineEditReplace->text());
 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)