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
761 B
C++
39 lines
761 B
C++
#ifndef RECEIPTSAVEFORM_H
|
|
#define RECEIPTSAVEFORM_H
|
|
|
|
#include <QDialog>
|
|
#include <objectbinder.h>
|
|
#include <autotablemodel.h>
|
|
#include "data/voucher.h"
|
|
|
|
namespace Ui {
|
|
class ReceiptSaveForm;
|
|
}
|
|
|
|
class ReceiptSaveForm : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ReceiptSaveForm(QSharedPointer<Voucher> voucher, QWidget *parent = 0);
|
|
~ReceiptSaveForm();
|
|
|
|
private slots:
|
|
void on_lineEdit_textChanged(const QString &text);
|
|
|
|
void on_radioAdd_toggled(bool checked);
|
|
|
|
private:
|
|
Ui::ReceiptSaveForm *ui;
|
|
ObjectBinder m_binder;
|
|
AutoTableModel<Voucher> *m_voucherModel;
|
|
bool m_saveAsNew;
|
|
QSharedPointer<Voucher> m_voucher;
|
|
|
|
// QDialog interface
|
|
public slots:
|
|
virtual void accept() override;
|
|
};
|
|
|
|
#endif // RECEIPTSAVEFORM_H
|