1 /*************************************************************************** 2 * Copyright (C) 2004-2021 by Pere Constans 3 * constans@molspaces.com 4 * cb2Bib version 2.0.1. Licensed under the GNU GPL version 3. 5 * See the LICENSE file that comes with this distribution. 6 ***************************************************************************/ 7 #ifndef C2BPOSTPROCESS_H 8 #define C2BPOSTPROCESS_H 9 10 #include "ui_c2bLogWidget.h" 11 12 #include <QDialog> 13 14 15 class QProcess; 16 17 class c2bPostprocess : public QDialog 18 { 19 20 Q_OBJECT 21 22 public: 23 explicit c2bPostprocess(const QString& fn, QWidget* parentw = 0); 24 ~c2bPostprocess(); 25 26 27 protected: 28 void PProcessFile(); 29 void addToLog(); 30 31 32 protected slots: 33 void conversionEnded(); 34 void help(); 35 void openFile(); 36 37 38 private: 39 QProcess* _ppBibTeX; 40 QPushButton* _buttonOpenFile; 41 QString PPBIBTEX_ARG; 42 QString PPBIBTEX_BIN; 43 QString PPBIBTEX_EXT; 44 QString _bib; 45 QString _out; 46 Ui::c2bLogWidget ui; 47 }; 48 49 #endif