Mercurial > hgrepos > Python2 > PyMuPDF
comparison mupdf-source/thirdparty/zint/frontend_qt/scalewindow.h @ 2:b50eed0cc0ef upstream
ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4.
The directory name has changed: no version number in the expanded directory now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 15 Sep 2025 11:43:07 +0200 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 1:1d09e1dec1d9 | 2:b50eed0cc0ef |
|---|---|
| 1 /* | |
| 2 Zint Barcode Generator - the open source barcode generator | |
| 3 Copyright (C) 2022-2023 Robin Stuart <rstuart114@gmail.com> | |
| 4 | |
| 5 This program is free software; you can redistribute it and/or modify | |
| 6 it under the terms of the GNU General Public License as published by | |
| 7 the Free Software Foundation; either version 3 of the License, or | |
| 8 (at your option) any later version. | |
| 9 | |
| 10 This program is distributed in the hope that it will be useful, | |
| 11 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 13 GNU General Public License for more details. | |
| 14 | |
| 15 You should have received a copy of the GNU General Public License along | |
| 16 with this program; if not, write to the Free Software Foundation, Inc., | |
| 17 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. | |
| 18 */ | |
| 19 /* SPDX-License-Identifier: GPL-3.0-or-later */ | |
| 20 | |
| 21 #ifndef SCALEWINDOW_H | |
| 22 #define SCALEWINDOW_H | |
| 23 | |
| 24 #include "ui_extScale.h" | |
| 25 #include "barcodeitem.h" | |
| 26 | |
| 27 class ScaleWindow : public QDialog, private Ui::ScaleDialog | |
| 28 { | |
| 29 Q_OBJECT | |
| 30 | |
| 31 private: | |
| 32 BarcodeItem *m_bc; | |
| 33 | |
| 34 public: | |
| 35 ScaleWindow(BarcodeItem *bc, struct Zint::QZintXdimDpVars *vars, double originalScale); | |
| 36 ~ScaleWindow(); | |
| 37 | |
| 38 bool Valid; | |
| 39 | |
| 40 struct Zint::QZintXdimDpVars m_vars; | |
| 41 | |
| 42 signals: | |
| 43 void scaleChanged(double scale); | |
| 44 | |
| 45 public slots: | |
| 46 void size_msg_ui_set(); | |
| 47 private slots: | |
| 48 void unset_scale(); | |
| 49 void okay(); | |
| 50 void update_scale(); | |
| 51 void x_dim_units_change(); | |
| 52 void x_dim_default(); | |
| 53 void resolution_units_change(); | |
| 54 void resolution_default(); | |
| 55 | |
| 56 private: | |
| 57 float get_x_dim_mm() const; | |
| 58 float get_dpmm() const; | |
| 59 const char *getFileType() const; | |
| 60 void set_maxima(); | |
| 61 double update_vars(); | |
| 62 double m_originalScale; | |
| 63 bool m_unset; | |
| 64 }; | |
| 65 | |
| 66 /* vim: set ts=4 sw=4 et : */ | |
| 67 #endif |
