kima2/src/gui/reportdialog.h

34 lines
747 B
C
Raw Normal View History

2018-07-30 09:50:54 +02:00
#ifndef REPORT_DIALOG_H
#define REPORT_DIALOG_H
#include "ui_reportdialog.h"
#include "reportmodel.h"
2019-10-10 08:09:16 +02:00
#include <core/marketplace.h>
2018-07-30 09:50:54 +02:00
#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-08-06 21:24:10 +02:00
void onPrintSellerReceiptButtonClicked();
void onReportViewSelectionChanged(const QItemSelection& selected,
const QItemSelection& deselected);
2018-07-31 10:28:07 +02:00
2019-10-07 14:08:01 +02:00
private:
Ui::ReportDialog ui_;
2018-07-30 09:50:54 +02:00
Marketplace* market_;
std::unique_ptr<ReportModel> model_;
};
2019-10-10 08:09:16 +02:00
#endif