1
#ifndef __KFI_CONSTANTS_H__
2
#define __KFI_CONSTANTS_H__
5
* KFontInst - KDE Font Installer
7
* Copyright 2003-2007 Craig Drummond <craig@kde.org>
11
* This program is free software; you can redistribute it and/or modify
12
* it under the terms of the GNU General Public License as published by
13
* the Free Software Foundation; either version 2 of the License, or
14
* (at your option) any later version.
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19
* General Public License for more details.
21
* You should have received a copy of the GNU General Public License
22
* along with this program; see the file COPYING. If not, write to
23
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
24
* Boston, MA 02110-1301, USA.
27
#include <config-workspace.h>
29
#include <KDE/KLocale>
30
#include <kio/udsentry.h>
32
#define KFI_NAME "kfontinst"
33
#define KFI_CATALOGUE KFI_NAME
36
#define KFI_INSTALLER KDE_BINDIR"/kfontinst"
37
#define KFI_VIEWER KDE_BINDIR"/kfontview"
39
#define KFI_INSTALLER "kfontinst"
40
#define KFI_VIEWER "kfontview"
43
#define KFI_PRINTER "kfontprint"
45
#define KFI_PRINT_GROUP "Print"
46
#define KFI_KIO_FONTS_PROTOCOL "fonts"
47
#define KFI_KIO_FONTS_USER I18N_NOOP("Personal")
48
#define KFI_KIO_FONTS_SYS I18N_NOOP("System")
49
#define KFI_KIO_FONTS_ALL I18N_NOOP("All")
50
#define KFI_KIO_NO_CLEAR "noclear"
51
#define KFI_KIO_TIMEOUT "timeout"
52
#define KFI_KIO_FACE "face"
54
#define KFI_IFACE "org.kde.fontinst"
56
#define KFI_FILE_QUERY "file"
57
#define KFI_NAME_QUERY "name"
58
#define KFI_STYLE_QUERY "style"
59
#define KFI_MIME_QUERY "mime"
61
#define KFI_SYS_USER "root"
63
#define KFI_AUTHINF_USER I18N_NOOP("Administrator")
64
#define KFI_UI_CFG_FILE KFI_NAME"uirc"
65
#define KFI_ROOT_CFG_DIR "/etc/fonts/"
66
#define KFI_DEFAULT_SYS_FONTS_FOLDER "/usr/local/share/fonts/"
68
#define KFI_NO_STYLE_INFO 0xFFFFFFFF
69
#define KFI_NAME_KEY "Name="
70
#define KFI_STYLE_KEY "Style="
71
#define KFI_PATH_KEY "Path="
72
#define KFI_FACE_KEY "Face="
74
#define KFI_FONTS_PACKAGE ".fonts.zip"
75
#define KFI_FONTS_PACKAGE_LEN 10
76
#define KFI_GROUPS_FILE "fontgroups.xml"
77
#define KFI_TMP_DIR_PREFIX "kfi"
79
#define KFI_NULL_SETTING 0xFF
91
// UDS_EXTRA entries...
94
UDS_EXTRA_FC_STYLE = (((KIO::UDSEntry::UDS_EXTRA|KIO::UDSEntry::UDS_STRING)^KIO::UDSEntry::UDS_STRING)|KIO::UDSEntry::UDS_NUMBER)+1,
95
UDS_EXTRA_FILE_NAME = KIO::UDSEntry::UDS_EXTRA+2,
96
UDS_EXTRA_FILE_FACE = KIO::UDSEntry::UDS_EXTRA+3
102
#define KFI_WEIGHT_THIN I18N_NOOP("Thin")
103
#define KFI_WEIGHT_EXTRALIGHT I18N_NOOP("Extra Light")
104
#define KFI_WEIGHT_ULTRALIGHT I18N_NOOP("Ultra Light")
105
#define KFI_WEIGHT_LIGHT I18N_NOOP("Light")
106
#define KFI_WEIGHT_REGULAR I18N_NOOP("Regular")
107
#define KFI_WEIGHT_NORMAL I18N_NOOP("Normal")
108
#define KFI_WEIGHT_MEDIUM I18N_NOOP("Medium")
109
#define KFI_WEIGHT_DEMIBOLD I18N_NOOP("Demi Bold")
110
#define KFI_WEIGHT_SEMIBOLD I18N_NOOP("Semi Bold")
111
#define KFI_WEIGHT_BOLD I18N_NOOP("Bold")
112
#define KFI_WEIGHT_EXTRABOLD I18N_NOOP("Extra Bold")
113
#define KFI_WEIGHT_ULTRABOLD I18N_NOOP("Ultra Bold")
114
#define KFI_WEIGHT_BLACK I18N_NOOP("Black")
115
#define KFI_WEIGHT_HEAVY I18N_NOOP("Heavy")
117
#define KFI_SLANT_ROMAN I18N_NOOP("Roman")
118
#define KFI_SLANT_ITALIC I18N_NOOP("Italic")
119
#define KFI_SLANT_OBLIQUE I18N_NOOP("Oblique")
121
#define KFI_WIDTH_ULTRACONDENSED I18N_NOOP("Ultra Condensed")
122
#define KFI_WIDTH_EXTRACONDENSED I18N_NOOP("Extra Condensed")
123
#define KFI_WIDTH_CONDENSED I18N_NOOP("Condensed")
124
#define KFI_WIDTH_SEMICONDENSED I18N_NOOP("Semi Condensed")
125
#define KFI_WIDTH_NORMAL I18N_NOOP("Normal")
126
#define KFI_WIDTH_SEMIEXPANDED I18N_NOOP("Semi Expanded")
127
#define KFI_WIDTH_EXPANDED I18N_NOOP("Expanded")
128
#define KFI_WIDTH_EXTRAEXPANDED I18N_NOOP("Extra Expanded")
129
#define KFI_WIDTH_ULTRAEXPANDED I18N_NOOP("Ultra Expanded")
131
#define KFI_SPACING_MONO I18N_NOOP("Monospaced")
132
#define KFI_SPACING_CHARCELL I18N_NOOP("Charcell")
133
#define KFI_SPACING_PROPORTIONAL I18N_NOOP("Proportional")
135
#define KFI_UNKNOWN_FOUNDRY I18N_NOOP("Unknown")