cliwindow.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. Zint Barcode Generator - the open source barcode generator
  3. Copyright (C) 2021-2022 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. /* SPDX-License-Identifier: GPL-3.0-or-later */
  17. #ifndef CLIWINDOW_H
  18. #define CLIWINDOW_H
  19. #include "ui_extCLI.h"
  20. #include "barcodeitem.h"
  21. class CLIWindow : public QDialog, private Ui::CLIDialog
  22. {
  23. Q_OBJECT
  24. public:
  25. CLIWindow(BarcodeItem *bc, const bool autoHeight, const double heightPerRow,
  26. const struct Zint::QZintXdimDpVars* xdimdpVars);
  27. virtual ~CLIWindow();
  28. private slots:
  29. void copy_to_clipboard();
  30. void generate_cli();
  31. protected:
  32. BarcodeItem *m_bc;
  33. bool m_autoHeight;
  34. double m_heightPerRow;
  35. const Zint::QZintXdimDpVars *m_xdimdpVars;
  36. };
  37. /* vim: set ts=4 sw=4 et : */
  38. #endif