BiblioteQ: Source/biblioteq_copy_editor_book.h Source File

BiblioteQ

biblioteq_copy_editor_book.h
1 #ifndef _BIBLIOTEQ_COPY_EDITOR_BOOK_H_
2 #define _BIBLIOTEQ_COPY_EDITOR_BOOK_H_
3
4 #include "biblioteq_copy_editor.h"
5 #include "ui_biblioteq_bookcopybrowser.h"
6
7 class biblioteq_copy_editor_book: public biblioteq_copy_editor
8 {
9 Q_OBJECT
10
11 public:
12 biblioteq_copy_editor_book(QWidget *parent,
13 biblioteq *biblioteq,
14 biblioteq_item *bitemArg,
15 const bool showForLendingArg,
16 const int quantityArg,
17 const QString &ioidArg,
18 QSpinBox *spinboxArg,
19 const QFont &font,
20 const QString &uniqueIdArg);
21 ~biblioteq_copy_editor_book();
22 void populateCopiesEditor(void);
23
24 private:
25 class copy_class
26 {
27 public:
28 copy_class(const QString &condition,
29 const QString &copyid,
30 const QString &copynumber,
31 const QString &itemoid,
32 const QString &originality,
33 const QString &status)
34 {
35 m_condition = condition;
36 m_copyid = copyid;
37 m_copynumber = copynumber;
38 m_itemoid = itemoid;
39 m_originality = originality;
40 m_status = status;
41 };
42
43 public:
44 QString m_condition;
45 QString m_copyid;
46 QString m_copynumber;
47 QString m_itemoid;
48 QString m_originality;
49 QString m_status;
50 };
51
52 enum Columns
53 {
54 AVAILABILITY = 2,
55 BARCODE = 1,
56 CONDITION = 4,
57 COPY_NUMBER = 7,
58 MYOID = 6,
59 ORIGINALITY = 3,
60 STATUS = 5,
61 TITLE = 0
62 };
63
64 QList<copy_class *> m_copies;
65 QSpinBox *m_spinbox;
66 QString m_ioid;
67 QString m_itemType;
68 QVector<QString> m_columnHeaderIndexes;
69 QWidget *m_parent;
70 Ui_bookcopybrowser m_cb;
71 biblioteq *qmain;
72 biblioteq_item *m_bitem;
73 bool m_showForLending;
74 int m_quantity;
75 QString saveCopies(void);
76 void changeEvent(QEvent *event);
77 void clearCopiesList(void);
78 void closeEvent(QCloseEvent *event);
79 void keyPressEvent(QKeyEvent *event);
80
81 private slots:
82 void slotDeleteCopy(void);
83 void slotSaveCopies(void);
84 };
85
86 #endif
biblioteq_copy_editor_book
Definition: biblioteq_copy_editor_book.h:7
biblioteq_copy_editor
Definition: biblioteq_copy_editor.h:10
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42