BiblioteQ

biblioteq_import.h
1 #ifndef _BIBLIOTEQ_IMPORT_H_
2 #define _BIBLIOTEQ_IMPORT_H_
3
4 #include "ui_biblioteq_import.h"
5
6 class QProgressDialog;
7 class biblioteq;
8
9 class biblioteq_import: public QMainWindow
10 {
11 Q_OBJECT
12
13 public:
14 biblioteq_import(biblioteq *parent);
15 void show(QMainWindow *parent);
16
17 private:
18 enum BooksColumns
19 {
20 BIBLIOTEQ_BOOKS_TABLE_FIELD_NAME = 1,
21 CSV_COLUMN_NUMBER = 0,
22 SUBSTITUTE_VALUE = 2
23 };
24
25 QMap<int, QPair<QString, QString> > m_booksMappings;
26 Ui_importBrowser m_ui;
27 biblioteq *m_qmain;
28 void changeEvent(QEvent *event);
29 void importBooks(QProgressDialog *progress,
30 QStringList &errors,
31 qint64 *imported,
32 qint64 *notImported);
33
34 private slots:
35 void setGlobalFonts(const QFont &font);
36 void slotAddBookRow(void);
37 void slotBooksTemplates(int index);
38 void slotClose(void);
39 void slotDeleteBookRow(void);
40 void slotImport(void);
41 void slotReset(void);
42 void slotSelectCSVFile(void);
43 };
44
45 #endif
biblioteq_import
Definition: biblioteq_import.h:9
biblioteq
Definition: biblioteq.h:179