BiblioteQ: Source/biblioteq_grey_literature.h Source File

BiblioteQ

biblioteq_grey_literature.h
1 #ifndef _BIBLIOTEQ_GREY_LITERATURE_H_
2 #define _BIBLIOTEQ_GREY_LITERATURE_H_
3
4 #include "biblioteq_item.h"
5 #include "ui_biblioteq_greyliteratureinfo.h"
6
7 class biblioteq_grey_literature: public QMainWindow, public biblioteq_item
8 {
9 Q_OBJECT
10
11 public:
12 biblioteq_grey_literature(biblioteq *parentArg,
13 const QString &oidArg,
14 const int rowArg);
15 ~biblioteq_grey_literature();
16 void duplicate(const QString &p_oid, const int state);
17 void insert(void);
18 void modify(const int state);
19 void search(const QString &field = "", const QString &value = "");
20
21 void setPublicationDateFormat(const QString &dateFormat)
22 {
23 m_ui.date->setDisplayFormat(dateFormat);
24 }
25
26 void updateWindow(const int state);
27
28 private:
29 enum Columns
30 {
31 COMPRESSED_SIZE = 2,
32 DESCRIPTION = 3,
33 DIGEST = 1,
34 FILE = 0,
35 MYOID = 4
36 };
37
38 QPalette m_te_orig_pal;
39 QString m_dt_orig_ss;
40 QString m_engWindowTitle;
41 Ui_biblioteq_greyliteratureinfo m_ui;
42 bool m_duplicate;
43 bool validateWidgets(void);
44 void changeEvent(QEvent *event);
45 void closeEvent(QCloseEvent *event);
46 void createFile(const QByteArray &bytes,
47 const QByteArray &digest,
48 const QString &fileName) const;
49 void highlightRequiredWidgets(void);
50 void insertDatabase(void);
51 void populateFiles(void);
52 void updateDatabase(void);
53
54 private slots:
55 void setGlobalFonts(const QFont &font);
56 void slotAttachFiles(void);
57 void slotCancel(void);
58 void slotDeleteFiles(void);
59 void slotExportFiles(void);
60 void slotFilesDoubleClicked(QTableWidgetItem *item);
61 void slotGo(void);
62 void slotPrint(void);
63 void slotPublicationDateEnabled(bool state);
64 void slotQuery(void);
65 void slotReset(void);
66 void slotShowUsers(void);
67 };
68
69 #endif
biblioteq_grey_literature
Definition: biblioteq_grey_literature.h:7
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42