BiblioteQ: Source/biblioteq_photographcollection.h Source File

BiblioteQ

biblioteq_photographcollection.h
1 #ifndef _BIBLIOTEQ_PHOTOGRAPHCOLLECTION_H_
2 #define _BIBLIOTEQ_PHOTOGRAPHCOLLECTION_H_
3
4 #include "biblioteq_item.h"
5 #include "ui_biblioteq_photograph.h"
6 #include "ui_biblioteq_photographinfo.h"
7
8 class biblioteq_bgraphicsscene;
9
10 class biblioteq_photographcollection: public QMainWindow, public biblioteq_item
11 {
12 Q_OBJECT
13
14 public:
15 biblioteq_photographcollection(biblioteq *parentArg,
16 const QString &oidArg,
17 const int rowArg);
18 ~biblioteq_photographcollection();
19 void duplicate(const QString &p_oid, const int state);
20 void insert(void);
21 void modify(const int state, const QString &behavior = "");
22 void search(const QString &field = "", const QString &value = "");
23
24 void setPublicationDateFormat(const QString &dateFormat)
25 {
26 pc.publication_date->setDisplayFormat(dateFormat);
27 }
28
29 void updateWindow(const int state);
30
31 private:
32 QDialog *m_photo_diag;
33 QString m_engWindowTitle;
34 QString m_itemOid;
35 Ui_pcDialog pc;
36 Ui_photographDialog photo;
37 biblioteq_bgraphicsscene *m_scene;
38 bool verifyItemFields(void);
39 int photographsPerPage(void);
40 void changeEvent(QEvent *event);
41 void closeEvent(QCloseEvent *event);
42 void loadPhotographFromItem(QGraphicsScene *scene,
43 QGraphicsPixmapItem *item,
44 const int percent);
45 void loadPhotographFromItemInNewWindow(QGraphicsPixmapItem *item);
46 void setSceneRect(const int size);
47 void showPhotographs(const int page);
48 void storeData(void);
49 void updateTablePhotographCount(const int count);
50
51 private slots:
52 void slotAddItem(void);
53 void slotCancel(void);
54 void slotClosePhoto(void);
55 void slotDeleteItem(void);
56 void slotExportItem(void);
57 void slotExportPhotographs(void);
58 void slotGo(void);
59 void slotImageViewSizeChanged(const QString &text);
60 void slotImportItems(void);
61 void slotInsertItem(void);
62 void slotModifyItem(void);
63 void slotPageChanged(const QString &text);
64 void slotPrint(void);
65 void slotQuery(void);
66 void slotReset(void);
67 void slotSaveRotatedImage(const QImage &image,
68 const QString &format,
69 const qint64 oid);
70 void slotSceneSelectionChanged(void);
71 void slotSelectAll(void);
72 void slotSelectImage(void);
73 void slotUpdateItem(void);
74 void slotViewContextMenu(const QPoint &pos);
75 void slotViewNextPhotograph(void);
76 void slotViewPhotograph(void);
77 void slotViewPreviousPhotograph(void);
78 };
79
80 #endif
biblioteq_photographcollection
Definition: biblioteq_photographcollection.h:10
biblioteq_bgraphicsscene
Definition: biblioteq_bgraphicsscene.h:6
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42