2016-03-02 23:26:37 +01:00
|
|
|
#ifndef COMMODITYFORM_H
|
|
|
|
|
#define COMMODITYFORM_H
|
|
|
|
|
|
|
|
|
|
#include <QWidget>
|
|
|
|
|
#include <autoform.h>
|
|
|
|
|
#include "data/commoditydata.h"
|
|
|
|
|
#include "commodity-odb.hxx"
|
|
|
|
|
|
|
|
|
|
namespace Ui {
|
|
|
|
|
class CommodityForm;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
class CommodityForm : public AutoForm<CommodityData>
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit CommodityForm(QWidget *parent = 0);
|
|
|
|
|
~CommodityForm();
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
Ui::CommodityForm *ui;
|
|
|
|
|
|
2018-05-23 11:59:26 +02:00
|
|
|
bool m_codeAsNumber;
|
|
|
|
|
|
2016-03-02 23:26:37 +01:00
|
|
|
// FormBinder interface
|
|
|
|
|
protected:
|
|
|
|
|
void registerCombos();
|
2018-05-23 11:59:26 +02:00
|
|
|
void onShow();
|
|
|
|
|
private slots:
|
|
|
|
|
void on_code_textChanged(const QString &text);
|
2016-03-02 23:26:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif // COMMODITYFORM_H
|