#ifndef CAMPGRID_H #define CAMPGRID_H #include #include "data/camp-data.h" #include "camp-odb.hxx" #include "detailwidget.h" class CampGrid : public GridForm { Q_OBJECT public: CampGrid(QWidget *parent = NULL); // IGridForm interface protected: void handleNewRecord(); void handleEditRecord(); // GridForm interface protected: void doDelete(CampDataPtr entity); private: void addToVoucher(CampDataPtr data); DetailWidget *m_detail; // IGridForm interface protected: void currentIndexChanged(const QModelIndex ¤t); // GridForm interface protected: virtual QList listForGrid() override; }; #endif // CAMPGRID_H