boxtemlateone.h 668 B

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