boxtemlateone.h 644 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef BOXTEMLATEONE_H
  2. #define BOXTEMLATEONE_H
  3. #include "baseboxprinter.h"
  4. class BoxTemlateOne : public BaseBoxPrinter
  5. {
  6. public:
  7. BoxTemlateOne();
  8. virtual QImage doPrinter(QSharedPointer<BoxInfo> box);
  9. virtual QSize printSize();
  10. private:
  11. const int MAXWIDTH=100;
  12. const int MAXHEIGHT=80;
  13. int FONTHEIGHT=10;
  14. };
  15. class PackTemlateOne : public BasePackinfoPrinter
  16. {
  17. public:
  18. PackTemlateOne();
  19. virtual QImage doPrinter(QSharedPointer<PackInfo> pack);
  20. virtual QSize printSize();
  21. private:
  22. private:
  23. const int MAXWIDTH=100;
  24. const int MAXHEIGHT=80;
  25. int FONTHEIGHT=10;
  26. };
  27. #endif // BOXTEMLATEONE_H