baseboxprinter.h 691 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #ifndef BASEBOXPRINTER_H
  2. #define BASEBOXPRINTER_H
  3. #include <QObject>
  4. #include "struct_/packinfo.h"
  5. #include <QPainter>
  6. #include "code39.h"
  7. #include <QImage>
  8. class BaseBoxPrinter
  9. {
  10. public:
  11. explicit BaseBoxPrinter();
  12. virtual ~BaseBoxPrinter();
  13. virtual QImage doPrinter(QSharedPointer<BoxInfo> box) = 0;
  14. virtual QImage BoxModel() = 0;
  15. virtual QSize printSize() = 0;
  16. protected:
  17. Code39 code;
  18. };
  19. class BasePackinfoPrinter
  20. {
  21. public:
  22. explicit BasePackinfoPrinter();
  23. virtual ~BasePackinfoPrinter();
  24. virtual QImage doPrinter(QSharedPointer<PackInfo> box) = 0;
  25. virtual QSize printSize() = 0;
  26. protected:
  27. Code39 code;
  28. };
  29. #endif // BASEBOXPRINTER_H