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 C2BEXPORTDIALOG_H 8 #define C2BEXPORTDIALOG_H 9 10 #include "c2bExport.h" 11 12 #include "ui_c2bExportDialog.h" 13 14 #include <QDialog> 15 16 17 class c2bSettings; 18 19 class c2bExportDialog : public QDialog 20 { 21 22 Q_OBJECT 23 24 public: 25 c2bExportDialog(const QString& fn, const QString& contents, const QStringList& keys, QWidget* parentw = 0); 26 ~c2bExportDialog(); 27 28 inline const QString exportFilename() const 29 { 30 return ui.ExportFile->text(); 31 } 32 33 34 private: 35 Ui::c2bExportDialog ui; 36 c2bExport::export_data _ed; 37 c2bSettings* settings; 38 39 40 private slots: 41 void _export(); 42 void getDocumentsDirectory(); 43 void getExportFile(); 44 void help(); 45 }; 46 47 #endif