"Fossies" - the Fresh Open Source Software Archive  

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

c2bCiterExcerptView.cpp  (cb2bib-1.9.9):c2bCiterExcerptView.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 "c2bCiterExcerptView.h" #include "c2bCiterExcerptView.h"
#include "c2bSettings.h" #include "c2bSettings.h"
#include "c2bTextBrowser.h" #include "c2bTextBrowser.h"
#include "c2bUtils.h" #include "c2bUtils.h"
#include <QGridLayout> #include <QGridLayout>
skipping to change at line 29 skipping to change at line 29
QGridLayout* gl; QGridLayout* gl;
gl = new QGridLayout(this); gl = new QGridLayout(this);
gl->setContentsMargins(0, 0, 0, 0); gl->setContentsMargins(0, 0, 0, 0);
_browserP = new c2bTextBrowser(this); _browserP = new c2bTextBrowser(this);
gl->addWidget(_browserP, 0, 0, 1, 1); gl->addWidget(_browserP, 0, 0, 1, 1);
c2bSettings* settings(c2bSettingsP); c2bSettings* settings(c2bSettingsP);
resize(settings->value("c2bCiterExcerptView/size", QSize(500, 500)).toSize() ); resize(settings->value("c2bCiterExcerptView/size", QSize(500, 500)).toSize() );
move(settings->value("c2bCiterExcerptView/position", pos()).toPoint()); move(settings->value("c2bCiterExcerptView/position", pos()).toPoint());
_browserP->setFont(QFont(QFont().family(), settings->value("c2bCiterExcerptV _browserP->setFont(QFont(QFont().family(),
iew/BrowserFontPointSize", QFont().pointSize()).toInt())); settings->value("c2bCiterExcerptView/BrowserFontPoi
ntSize", QFont().pointSize()).toInt()));
QString css(c2bUtils::fileToString(settings->fileName("cb2Bib/BrowserCssFile "))); QString css(c2bUtils::fileToString(settings->fileName("cb2Bib/BrowserCssFile ")));
if (css.isEmpty()) if (css.isEmpty())
css = c2bUtils::fileToString(":/htm/htm/references.css"); css = c2bUtils::fileToString(":/htm/htm/references.css");
_browserP->document()->setDefaultStyleSheet(css); _browserP->document()->setDefaultStyleSheet(css);
QAction* c(new QAction(this)); QAction* c(new QAction(this));
c->setShortcut(QKeySequence(Qt::Key_Left)); c->setShortcut(QKeySequence(Qt::Key_Left));
addAction(c); addAction(c);
connect(c, SIGNAL(triggered()), this, SLOT(close())); connect(c, SIGNAL(triggered()), this, SLOT(close()));
 End of changes. 3 change blocks. 
4 lines changed or deleted 5 lines changed or added

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