Make a branch to make krunner Good Enough For Aaron™.
[kdebase/uwolfer.git] / workspace / kcontrol / kfontinst / lib / KfiConstants.h
blob32a5102adbd9bac2781c700e2fa3e41859554387
1 #ifndef __KFI_CONSTANTS_H__
2 #define __KFI_CONSTANTS_H__
4 /*
5 * KFontInst - KDE Font Installer
7 * Copyright 2003-2007 Craig Drummond <craig@kde.org>
9 * ----
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
35 #ifdef KDE_BINDIR
36 #define KFI_INSTALLER KDE_BINDIR"/kfontinst"
37 #define KFI_VIEWER KDE_BINDIR"/kfontview"
38 #else
39 #define KFI_INSTALLER "kfontinst"
40 #define KFI_VIEWER "kfontview"
41 #endif
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_PASS "pass"
53 #define KFI_KIO_FACE "face"
55 #define KFI_FILE_QUERY "file"
56 #define KFI_NAME_QUERY "name"
57 #define KFI_STYLE_QUERY "style"
58 #define KFI_MIME_QUERY "mime"
60 #define KFI_SYS_USER "root"
62 #define KFI_AUTHINF_USER I18N_NOOP("Administrator")
63 #define KFI_UI_CFG_FILE KFI_NAME"uirc"
64 #define KFI_ROOT_CFG_DIR "/etc/fonts/"
66 #define KFI_NO_STYLE_INFO 0xFFFFFFFF
67 #define KFI_NAME_KEY "Name="
68 #define KFI_STYLE_KEY "Style="
69 #define KFI_PATH_KEY "Path="
70 #define KFI_FACE_KEY "Face="
72 #define KFI_FONTS_PACKAGE ".fonts.zip"
73 #define KFI_FONTS_PACKAGE_LEN 10
74 #define KFI_GROUPS_FILE "fontgroups.xml"
75 #define KFI_TMP_DIR_PREFIX "kfi"
77 #define KFI_NULL_SETTING 0xFF
79 namespace KFI
82 // KIO::special
83 enum ESpecial
85 SPECIAL_RESCAN = 0,
86 SPECIAL_CONFIGURE
89 // UDS_EXTRA entries...
90 enum EUdsExtraEntries
92 UDS_EXTRA_FC_STYLE = (((KIO::UDSEntry::UDS_EXTRA|KIO::UDSEntry::UDS_STRING)^KIO::UDSEntry::UDS_STRING)|KIO::UDSEntry::UDS_NUMBER)+1,
93 UDS_EXTRA_FILE_NAME = KIO::UDSEntry::UDS_EXTRA+2,
94 UDS_EXTRA_FOUNDRY = KIO::UDSEntry::UDS_EXTRA+3,
95 UDS_EXTRA_FILE_LIST = KIO::UDSEntry::UDS_EXTRA+4,
96 UDS_EXTRA_WRITING_SYSTEMS = (((KIO::UDSEntry::UDS_EXTRA|KIO::UDSEntry::UDS_STRING)^KIO::UDSEntry::UDS_STRING)|KIO::UDSEntry::UDS_NUMBER)+5
101 // Font name...
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")
137 #endif