1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
/************************************************************************
**
** Copyright (C) 2019-2024 Kevin B. Hendricks, Stratford Ontario Canada
** Copyright (C) 2019-2024 Doug Massay
**
** This file is part of PageEdit.
**
** PageEdit is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** PageEdit is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with PageEdit. If not, see <http://www.gnu.org/licenses/>.
**
*************************************************************************/
#pragma once
#ifndef PE_CONSTANTS_H
#define PE_CONSTANTS_H
class QString;
// QL1SV() Macro to handle renaming of QLatin1String to QLatin1StringView in Qt6.4+
#include <QLatin1StringView>
#define QL1SV(t) QLatin1StringView(t)
// Workaround LTO issues with static initializers when initailized
// from const qstrings from a different compilation unit
#define PAGEEDIT_SETTINGS_FILE "pageedit.ini"
#define PAGEEDIT_V6_SETTINGS_FILE "pageedit_v6.ini"
extern const float ZOOM_STEP;
extern const float ZOOM_MIN;
extern const float ZOOM_MAX;
extern const float ZOOM_NORMAL;
extern const QString PAGEEDIT_PREFS_DIR;
extern const QString PATH_LIST_DELIM;
#if !defined(_WIN32) && !defined(__APPLE__)
extern const QString pageedit_share_root;
extern const QString force_sigil_darkmode_palette;
extern const QString force_pageedit_darkmode_palette;
extern const QString mathjax_dir;
#endif
#endif // PE_CONSTANTS_H
|