MyBooks
dlgbooks.hpp
Go to the documentation of this file.
1 #ifndef DLGBOOKS_HPP
2 #define DLGBOOKS_HPP
3 
4 #include <QEvent>
5 #include <QShowEvent>
6 #include <QCloseEvent>
7 #include <QResizeEvent>
8 #include <QDialog>
9 #include <QWidget>
10 
11 #include "ui_dlgbooks.h"
12 
13 namespace Ui {
14 class DlgBooks;
15 }
16 
23 class DlgBooks : public QDialog
24 {
25  Q_OBJECT
26 
27 public:
28  explicit DlgBooks(QWidget *parent = 0);
29  ~DlgBooks();
30 
31 protected:
32  void changeEvent(QEvent *e);
33  void showEvent(QShowEvent *);
34  void resizeEvent(QResizeEvent *);
35  void closeEvent(QCloseEvent *);
36 
37 private slots:
38  void findTitle();
39  void findAuthTitles();
40  void slotClrSrch();
41  void slotAddBook();
42  void slotRowSel();
43  void slotEditBook();
44  void slotDelBook();
45  void slotActivateDel();
46 
47 private:
48  class BooksPrivate;
49 
50  BooksPrivate *d;
51  Ui::DlgBooks *ui;
52 
53  void loadTable();
54  void displaySettings();
55 
56  void readSettings();
57  void saveSettings();
58 };
59 
60 #endif // DLGBOOKS_HPP
Definition: reportpreview.h:30
Book title database maintenance.
Definition: dlgbooks.hpp:23
Definition: dlgbooks.cpp:24
Ui::DlgBooks * ui
Definition: dlgbooks.hpp:51
BooksPrivate * d
Definition: dlgbooks.hpp:48