sequencewindow.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. Zint Barcode Generator - the open source barcode generator
  3. Copyright (C) 2009-2021 Robin Stuart <rstuart114@gmail.com>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. /* vim: set ts=4 sw=4 et : */
  17. #ifndef SEQUENCEWINDOW_H
  18. #define SEQUENCEWINDOW_H
  19. #include "ui_extSequence.h"
  20. #include "barcodeitem.h"
  21. class SequenceWindow : public QDialog, private Ui::SequenceDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. SequenceWindow(BarcodeItem *bc);
  26. ~SequenceWindow();
  27. private:
  28. QString apply_format(const QString &raw_number);
  29. private slots:
  30. void clear_preview();
  31. void create_sequence();
  32. void check_generate();
  33. void from_file();
  34. void generate_sequence();
  35. protected:
  36. BarcodeItem *m_bc;
  37. };
  38. #endif