BiblioteQ: Source/biblioteq_otheroptions.h Source File

BiblioteQ

biblioteq_otheroptions.h
1 #ifndef _BIBLIOTEQ_OTHEROPTIONS_H_
2 #define _BIBLIOTEQ_OTHEROPTIONS_H_
3
4 #include "ui_biblioteq_otheroptions.h"
5
6 class biblioteq;
7
8 class biblioteq_otheroptions: public QMainWindow
9 {
10 Q_OBJECT
11
12 public:
13 biblioteq_otheroptions(biblioteq *parent);
14 ~biblioteq_otheroptions();
15 QColor availabilityColor(const QString &it) const;
16 QString publicationDateFormat(const QString &it) const;
17 bool showMainTableImages(void) const;
18 int booksAccessionNumberIndex(void) const;
19 void prepareSettings(void);
20
21 private:
22 enum ItemsColumns
23 {
24 AVAILABILITY_COLOR = 1,
25 ITEM_TYPE = 0,
26 PUBLICATION_DATE_FORMAT = 1
27 };
28
29 Ui_otheroptions m_ui;
30 biblioteq *qmain;
31 void changeEvent(QEvent *event);
32 void closeEvent(QCloseEvent *event);
33 void keyPressEvent(QKeyEvent *event);
34 void prepareAvailability(void);
35
36 private slots:
37 void setGlobalFonts(const QFont &font);
38 void slotClose(void);
39 void slotPreviewCanvasBackgroundColor(const QColor &color);
40 void slotSave(void);
41 void slotSelectAvailabilityColor(void);
42 void slotSelectMainwindowCanvasBackgroundColor(void);
43
44 public slots:
45 void showNormal(void);
46
47 signals:
48 void mainWindowCanvasBackgroundColorChanged(const QColor &color);
49 void mainWindowCanvasBackgroundColorPreview(const QColor &color);
50 void saved(void);
51 };
52
53 #endif
biblioteq_otheroptions
Definition: biblioteq_otheroptions.h:8
biblioteq
Definition: biblioteq.h:179