~ubuntu-branches/ubuntu/utopic/kde-workspace/utopic-proposed

« back to all changes in this revision

Viewing changes to kcontrol/kfontinst/lib/KfiConstants.h

  • Committer: Bazaar Package Importer
  • Author(s): Michał Zając
  • Date: 2011-07-09 08:31:15 UTC
  • Revision ID: james.westby@ubuntu.com-20110709083115-ohyxn6z93mily9fc
Tags: upstream-4.6.90
Import upstream version 4.6.90

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __KFI_CONSTANTS_H__
 
2
#define __KFI_CONSTANTS_H__
 
3
 
 
4
/*
 
5
 * KFontInst - KDE Font Installer
 
6
 *
 
7
 * Copyright 2003-2007 Craig Drummond <craig@kde.org>
 
8
 *
 
9
 * ----
 
10
 *
 
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.
 
15
 *
 
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.
 
20
 *
 
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.
 
25
 */
 
26
 
 
27
#include <config-workspace.h>
 
28
 
 
29
#include <KDE/KLocale>
 
30
#include <kio/udsentry.h>
 
31
 
 
32
#define KFI_NAME                     "kfontinst"
 
33
#define KFI_CATALOGUE                KFI_NAME
 
34
 
 
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
 
42
 
 
43
#define KFI_PRINTER   "kfontprint"
 
44
 
 
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"
 
53
 
 
54
#define KFI_IFACE                    "org.kde.fontinst"
 
55
 
 
56
#define KFI_FILE_QUERY               "file"
 
57
#define KFI_NAME_QUERY               "name"
 
58
#define KFI_STYLE_QUERY              "style"
 
59
#define KFI_MIME_QUERY               "mime"
 
60
 
 
61
#define KFI_SYS_USER                 "root"
 
62
 
 
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/"
 
67
 
 
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="
 
73
 
 
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"
 
78
 
 
79
#define KFI_NULL_SETTING             0xFF
 
80
 
 
81
namespace KFI
 
82
{
 
83
 
 
84
// KIO::special
 
85
enum ESpecial
 
86
{
 
87
    SPECIAL_RESCAN = 0,
 
88
    SPECIAL_CONFIGURE
 
89
};
 
90
 
 
91
// UDS_EXTRA entries...
 
92
enum EUdsExtraEntries
 
93
{
 
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
 
97
};
 
98
 
 
99
}
 
100
 
 
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")
 
116
 
 
117
#define KFI_SLANT_ROMAN              I18N_NOOP("Roman")
 
118
#define KFI_SLANT_ITALIC             I18N_NOOP("Italic")
 
119
#define KFI_SLANT_OBLIQUE            I18N_NOOP("Oblique")
 
120
 
 
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")
 
130
 
 
131
#define KFI_SPACING_MONO             I18N_NOOP("Monospaced")
 
132
#define KFI_SPACING_CHARCELL         I18N_NOOP("Charcell")
 
133
#define KFI_SPACING_PROPORTIONAL     I18N_NOOP("Proportional")
 
134
 
 
135
#define KFI_UNKNOWN_FOUNDRY          I18N_NOOP("Unknown")
 
136
 
 
137
#endif