41 lines
748 B
C++
41 lines
748 B
C++
#ifndef DLGBARCODEFORMAT_H
|
|
#define DLGBARCODEFORMAT_H
|
|
|
|
#include <QDialog>
|
|
#include "ViewModels.h"
|
|
|
|
namespace Ui {
|
|
class DlgBarcodeFormat;
|
|
}
|
|
|
|
struct DlgBarcodeFormatVM {
|
|
QString type = "BARCODE_128";
|
|
int height = 9;
|
|
int width = 1;
|
|
int scale = 1;
|
|
InkType inkType = INK_TYPE_BLACK;
|
|
bool txtVisible = false;
|
|
};
|
|
|
|
Q_DECLARE_METATYPE(DlgBarcodeFormatVM);
|
|
|
|
class DlgBarcodeFormat : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit DlgBarcodeFormat(QWidget *parent = nullptr);
|
|
~DlgBarcodeFormat();
|
|
|
|
void setViewModel(DlgBarcodeFormatVM vm);
|
|
|
|
DlgBarcodeFormatVM viewModel();
|
|
|
|
private:
|
|
Ui::DlgBarcodeFormat *ui;
|
|
|
|
DlgBarcodeFormatVM m_vm;
|
|
};
|
|
|
|
#endif // DLGBARCODEFORMAT_H
|