File: c2bUpdateMetadata.h

package info (click to toggle)
cb2bib 1.4.9-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 3,500 kB
  • ctags: 2,613
  • sloc: cpp: 26,112; sh: 481; makefile: 17
file content (49 lines) | stat: -rw-r--r-- 1,088 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
/***************************************************************************
 *   Copyright (C) 2004-2012 by Pere Constans
 *   constans@molspaces.com
 *   cb2Bib version 1.4.9. Licensed under the GNU GPL version 3.
 *   See the LICENSE file that comes with this distribution.
 ***************************************************************************/
#ifndef C2BUPDATEMETADATA_H
#define C2BUPDATEMETADATA_H

#include "ui_c2bLogWidget.h"

#include <QDialog>


class bibReference;
class c2bBibParser;


class c2bUpdateMetadata : public QDialog
{

    Q_OBJECT

public:
    c2bUpdateMetadata(QWidget* parentw = 0);
    ~c2bUpdateMetadata();

    void update(const QString& fn, const QString& bibtex);


private slots:
    void aborted();
    void help();
    void update();


private:
    QPushButton* _buttonAbort;
    QString _bibtex;
    QString _fn;
    Ui::c2bLogWidget ui;
    bool _aborted;
    bool needsUpdating(const bibReference& ref, const bibReference& mref);
    c2bBibParser* _bpP;
    void writeDifferences(const bibReference& ref, const bibReference& mref);

};

#endif