8 _WINGsConfiguration WINGsConfiguration
;
12 #define SYSTEM_FONT "-*-helvetica-medium-r-normal-*-%d-*-*-*-*-*-*-*,-*-*-medium-r-*-*-%d-*-*-*-*-*-*-*"
14 #define BOLD_SYSTEM_FONT "-*-helvetica-bold-r-normal-*-%d-*-*-*-*-*-*-*,-*-*-bold-r-*-*-%d-*-*-*-*-*-*-*"
21 W_ReadConfigurations(void)
23 WMUserDefaults
*defaults
;
25 memset(&WINGsConfiguration
, 0, sizeof(_WINGsConfiguration
));
27 defaults
= WMGetStandardUserDefaults();
30 WINGsConfiguration
.systemFont
=
31 WMGetUDStringForKey(defaults
, "SystemFont");
33 WINGsConfiguration
.boldSystemFont
=
34 WMGetUDStringForKey(defaults
, "BoldSystemFont");
36 WINGsConfiguration
.useMultiByte
=
37 WMGetUDBoolForKey(defaults
, "MultiByteText");
39 WINGsConfiguration
.doubleClickDelay
=
40 WMGetUDIntegerForKey(defaults
, "DoubleClickTime");
42 WINGsConfiguration
.defaultFontSize
=
43 WMGetUDIntegerForKey(defaults
, "DefaultFontSize");
47 if (!WINGsConfiguration
.systemFont
) {
48 WINGsConfiguration
.systemFont
= SYSTEM_FONT
;
50 if (!WINGsConfiguration
.boldSystemFont
) {
51 WINGsConfiguration
.boldSystemFont
= BOLD_SYSTEM_FONT
;
53 if (WINGsConfiguration
.doubleClickDelay
== 0) {
54 WINGsConfiguration
.doubleClickDelay
= 250;
56 if (WINGsConfiguration
.defaultFontSize
== 0) {
57 WINGsConfiguration
.defaultFontSize
= 12;