40 lines
568 B
C++
40 lines
568 B
C++
#ifndef CMAINWINDOW_H
|
|
#define CMAINWINDOW_H
|
|
|
|
|
|
#include "cmonthlyview.h"
|
|
#include "cbooking.h"
|
|
|
|
#include <QMainWindow>
|
|
#include <QCloseEvent>
|
|
|
|
#include <QSqlDatabase>
|
|
|
|
|
|
namespace Ui {
|
|
class cMainWindow;
|
|
}
|
|
|
|
class cMainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit cMainWindow(QWidget *parent = nullptr);
|
|
~cMainWindow();
|
|
|
|
private:
|
|
Ui::cMainWindow* ui;
|
|
cMonthlyView* m_lpMonthlyView;
|
|
QSqlDatabase m_db;
|
|
cBookingList m_bookingList;
|
|
|
|
void initUI();
|
|
void openDB();
|
|
|
|
protected:
|
|
void closeEvent(QCloseEvent* event);
|
|
};
|
|
|
|
#endif // CMAINWINDOW_H
|