You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
732 B
C++
39 lines
732 B
C++
#ifndef CAMPGRID_H
|
|
#define CAMPGRID_H
|
|
|
|
#include <core.h>
|
|
#include "data/camp-data.h"
|
|
|
|
#include "detailwidget.h"
|
|
|
|
class CampGrid : public GridForm<CampData>
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit CampGrid(QWidget *parent = nullptr);
|
|
|
|
// IGridForm interface
|
|
protected:
|
|
void handleNewRecord() override;
|
|
void handleEditRecord() override;
|
|
|
|
// GridForm interface
|
|
protected:
|
|
void doDelete(CampDataPtr entity) override;
|
|
|
|
private:
|
|
void addToVoucher(const CampDataPtr& data);
|
|
DetailWidget *m_detail;
|
|
|
|
|
|
// IGridForm interface
|
|
protected:
|
|
void currentIndexChanged(const QModelIndex ¤t) override;
|
|
|
|
// GridForm interface
|
|
protected:
|
|
QList<CampDataPtr> listForGrid() override;
|
|
};
|
|
|
|
#endif // CAMPGRID_H
|