2018-07-30 09:50:54 +02:00
|
|
|
#ifndef REPORT_DIALOG_H
|
|
|
|
#define REPORT_DIALOG_H
|
|
|
|
|
|
|
|
#include "ui_reportdialog.h"
|
|
|
|
|
|
|
|
#include "reportmodel.h"
|
|
|
|
|
|
|
|
#include <marketplace.h>
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
|
|
|
class ReportDialog : public QDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
ReportDialog(QWidget* parent = nullptr,
|
|
|
|
Qt::WindowFlags f = Qt::WindowTitleHint | Qt::WindowSystemMenuHint);
|
|
|
|
|
2018-07-31 10:28:07 +02:00
|
|
|
private slots:
|
|
|
|
void onExportCsvButtonClicked();
|
2018-07-31 16:15:48 +02:00
|
|
|
void onPrintReportButtonClicked();
|
2018-07-31 10:28:07 +02:00
|
|
|
|
|
|
|
private:
|
2018-07-30 09:50:54 +02:00
|
|
|
Ui::ReportDialog ui_;
|
|
|
|
Marketplace* market_;
|
|
|
|
std::unique_ptr<ReportModel> model_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|