baseboxprinter.h 657 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 QSize printSize() = 0;
  15. protected:
  16. Code39 code;
  17. };
  18. class BasePackinfoPrinter
  19. {
  20. public:
  21. explicit BasePackinfoPrinter();
  22. virtual ~BasePackinfoPrinter();
  23. virtual QImage doPrinter(QSharedPointer<PackInfo> box) = 0;
  24. virtual QSize printSize() = 0;
  25. protected:
  26. Code39 code;
  27. };
  28. #endif // BASEBOXPRINTER_H