-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathKfiConstants.h
119 lines (98 loc) · 4.46 KB
/
KfiConstants.h
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
#ifndef __KFI_CONSTANTS_H__
#define __KFI_CONSTANTS_H__
/*
* KFontInst - KDE Font Installer
*
* Copyright 2003-2007 Craig Drummond <craig@kde.org>
*
* ----
*
* This program 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 2 of the License, or
* (at your option) any later version.
*
* This program 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 this program; see the file COPYING. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#include <QLatin1String>
#include <KLocalizedString>
#define KFI_NAME "kfontinst"
#define KFI_CATALOGUE KFI_NAME
#define KFI_INSTALLER QLatin1String("kfontinst")
#define KFI_VIEWER QLatin1String("kfontview")
#define KFI_PRINTER QLatin1String("kfontprint"), "libexec"
#define KFI_PRINT_GROUP "Print"
#define KFI_KIO_FONTS_PROTOCOL "fonts"
#define KFI_KIO_FONTS_USER I18N_NOOP("Personal")
#define KFI_KIO_FONTS_SYS I18N_NOOP("System")
#define KFI_KIO_FONTS_ALL I18N_NOOP("All")
#define KFI_KIO_NO_CLEAR "noclear"
#define KFI_KIO_TIMEOUT "timeout"
#define KFI_KIO_FACE "face"
#define KFI_IFACE "org.kde.fontinst"
#define KFI_FILE_QUERY "file"
#define KFI_NAME_QUERY "name"
#define KFI_STYLE_QUERY "style"
#define KFI_MIME_QUERY "mime"
#define KFI_SYS_USER "root"
#define KFI_AUTHINF_USER I18N_NOOP("Administrator")
#define KFI_UI_CFG_FILE KFI_NAME "uirc"
#define KFI_ROOT_CFG_DIR "/etc/fonts/"
#define KFI_DEFAULT_SYS_FONTS_FOLDER "/usr/local/share/fonts/"
#define KFI_NO_STYLE_INFO 0xFFFFFFFF
#define KFI_NAME_KEY "Name="
#define KFI_STYLE_KEY "Style="
#define KFI_PATH_KEY "Path="
#define KFI_FACE_KEY "Face="
#define KFI_FONTS_PACKAGE ".fonts.zip"
#define KFI_FONTS_PACKAGE_LEN 10
#define KFI_GROUPS_FILE "fontgroups.xml"
#define KFI_TMP_DIR_PREFIX "kfi"
#define KFI_NULL_SETTING 0xFF
namespace KFI {
// KIO::special
enum ESpecial {
SPECIAL_RESCAN = 0,
SPECIAL_CONFIGURE,
};
}
// Font name...
#define KFI_WEIGHT_THIN I18N_NOOP("Thin")
#define KFI_WEIGHT_EXTRALIGHT I18N_NOOP("Extra Light")
#define KFI_WEIGHT_ULTRALIGHT I18N_NOOP("Ultra Light")
#define KFI_WEIGHT_LIGHT I18N_NOOP("Light")
#define KFI_WEIGHT_REGULAR I18N_NOOP("Regular")
#define KFI_WEIGHT_NORMAL I18N_NOOP("Normal")
#define KFI_WEIGHT_MEDIUM I18N_NOOP("Medium")
#define KFI_WEIGHT_DEMIBOLD I18N_NOOP("Demi Bold")
#define KFI_WEIGHT_SEMIBOLD I18N_NOOP("Semi Bold")
#define KFI_WEIGHT_BOLD I18N_NOOP("Bold")
#define KFI_WEIGHT_EXTRABOLD I18N_NOOP("Extra Bold")
#define KFI_WEIGHT_ULTRABOLD I18N_NOOP("Ultra Bold")
#define KFI_WEIGHT_BLACK I18N_NOOP("Black")
#define KFI_WEIGHT_HEAVY I18N_NOOP("Heavy")
#define KFI_SLANT_ROMAN I18N_NOOP("Roman")
#define KFI_SLANT_ITALIC I18N_NOOP("Italic")
#define KFI_SLANT_OBLIQUE I18N_NOOP("Oblique")
#define KFI_WIDTH_ULTRACONDENSED I18N_NOOP("Ultra Condensed")
#define KFI_WIDTH_EXTRACONDENSED I18N_NOOP("Extra Condensed")
#define KFI_WIDTH_CONDENSED I18N_NOOP("Condensed")
#define KFI_WIDTH_SEMICONDENSED I18N_NOOP("Semi Condensed")
#define KFI_WIDTH_NORMAL I18N_NOOP("Normal")
#define KFI_WIDTH_SEMIEXPANDED I18N_NOOP("Semi Expanded")
#define KFI_WIDTH_EXPANDED I18N_NOOP("Expanded")
#define KFI_WIDTH_EXTRAEXPANDED I18N_NOOP("Extra Expanded")
#define KFI_WIDTH_ULTRAEXPANDED I18N_NOOP("Ultra Expanded")
#define KFI_SPACING_MONO I18N_NOOP("Monospaced")
#define KFI_SPACING_CHARCELL I18N_NOOP("Charcell")
#define KFI_SPACING_PROPORTIONAL I18N_NOOP("Proportional")
#define KFI_UNKNOWN_FOUNDRY I18N_NOOP("Unknown")
#endif