BiblioteQ

biblioteq_cd.h
1 #ifndef _BIBLIOTEQ_CD_H_
2 #define _BIBLIOTEQ_CD_H_
3
4 #include "biblioteq_item.h"
5 #include "ui_biblioteq_cdinfo.h"
6 #include "ui_biblioteq_tracks.h"
7
8 class biblioteq_cd: public QMainWindow, public biblioteq_item
9 {
10 Q_OBJECT
11
12 public:
13 biblioteq_cd(biblioteq *parentArg,
14 const QString &oidArg,
15 const int rowArg);
16 ~biblioteq_cd();
17 void duplicate(const QString &p_oid, const int state);
18 void insert(void);
19 void modify(const int state);
20 void search(const QString &field = "", const QString &value = "");
21
22 void setPublicationDateFormat(const QString &dateFormat)
23 {
24 cd.release_date->setDisplayFormat(dateFormat);
25 }
26
27 void updateWindow(const int);
28
29 private:
30 enum TracksColumns
31 {
32 ALBUM_NUMBER = 0,
33 ARTIST = 4,
34 COMPOSER = 5,
35 TRACK_NUMBER = 1,
36 TRACK_RUNTIME = 3,
37 TRACK_TITLE = 2
38 };
39
40 QAction *m_composer_action;
41 QDialog *m_tracks_diag;
42 QString m_engWindowTitle;
43 Ui_cdDialog cd;
44 Ui_tracksDialog trd;
45 void changeEvent(QEvent *event);
46 void closeEvent(QCloseEvent *event);
47
48 private slots:
49 void setGlobalFonts(const QFont &font);
50 void slotCancel(void);
51 void slotCloseTracksBrowser(void);
52 void slotComputeRuntime(void);
53 void slotDeleteTrack(void);
54 void slotGo(void);
55 void slotInsertTrack(void);
56 void slotPopulateCopiesEditor(void);
57 void slotPopulateTracksBrowser(void);
58 void slotPrint(void);
59 void slotPublicationDateEnabled(bool state);
60 void slotQuery(void);
61 void slotReset(void);
62 void slotSaveTracks(void);
63 void slotSelectImage(void);
64 void slotShowUsers(void);
65 };
66
67 #endif
biblioteq_cd
Definition: biblioteq_cd.h:8
biblioteq
Definition: biblioteq.h:179
biblioteq_item
Definition: biblioteq_item.h:42