boxtemlateone.h 698 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 QImage BoxModel();
  11. virtual QSize printSize();
  12. private:
  13. const int MAXWIDTH=100;
  14. const int MAXHEIGHT=80;
  15. int FONTHEIGHT=10;
  16. };
  17. class PackTemlateOne : public BasePackinfoPrinter
  18. {
  19. public:
  20. PackTemlateOne();
  21. virtual QImage doPrinter(QSharedPointer<PackInfo> pack);
  22. virtual QSize printSize();
  23. private:
  24. private:
  25. const int MAXWIDTH=100;
  26. const int MAXHEIGHT=80;
  27. int FONTHEIGHT=10;
  28. };
  29. #endif // BOXTEMLATEONE_H