Files
prodejna/camp/campgrid.h
T

40 lines
709 B
C++
Raw Normal View History

#ifndef CAMPGRID_H
#define CAMPGRID_H
#include <core.h>
#include "data/camp-data.h"
#include "camp-odb.hxx"
#include "detailwidget.h"
class CampGrid : public GridForm<CampData>
{
Q_OBJECT
public:
CampGrid(QWidget *parent = NULL);
2017-05-13 21:57:11 +02:00
// 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 &current);
// GridForm interface
protected:
virtual QList<CampDataPtr> listForGrid() override;
};
#endif // CAMPGRID_H