#ifndef SHOPFORM_H #define SHOPFORM_H #include #include #include "data/shop-data.h" #include namespace Ui { class ShopForm; } class ShopForm : public QWidget { Q_OBJECT public: explicit ShopForm(QWidget *parent = 0); ~ShopForm(); void loadLast(); void fillRaceiptCombo(); private slots: void on_directSale_clicked(); void on_temporarySaveButton_clicked(); void on_saveButton_clicked(); void on_loadButton_clicked(); void onCountChanged(); void on_receiptCombo_currentIndexChanged(int index); private: Ui::ShopForm *ui; QSharedPointer m_voucher; AutoTableModel *m_itemsModel; void createVoucher(); void doTempSave(bool comboChanged); void changeReceipt(); void connectItemSignals(); }; #endif // SHOPFORM_H