Tools__FontSettingsApplication.st
author Claus Gittinger <cg@exept.de>
Tue, 21 Apr 2020 13:26:33 +0200
changeset 19578 088c98423554
parent 19430 7cdcbf30918e
permissions -rw-r--r--
#FEATURE by cg class: DebugView class definition changed: #enter:select:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
17249
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     1
"
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     2
 COPYRIGHT (c) 2014 by eXept Software AG
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     3
              All Rights Reserved
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     4
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     5
 This software is furnished under a license and may be used
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     6
 only in accordance with the terms of that license and with the
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     7
 inclusion of the above copyright notice. This software may not
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     8
 be provided or otherwise made available to, or used by, any
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
     9
 other person. No title to or ownership of the software is
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    10
 hereby transferred.
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    11
"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
14213
ebed72d87fe8 class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14205
diff changeset
    14
"{ NameSpace: Tools }"
ebed72d87fe8 class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14205
diff changeset
    15
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
AbstractSettingsApplication subclass:#FontSettingsApplication
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'filter allOfThem labelDef buttonDef listDef menuDef textDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
		othersDef allFontLabelHolder buttonsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
		textFontLabelHolder labelsFontLabelHolder listsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
		menusFontLabelHolder otherFontLabelHolder allLabel buttonsLabel
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
		textLabel labelLabel listsLabel menuLabel inputFieldLabel
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
		inputFieldDef inputFieldFontLabelHolder otherLabel
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
    23
		linuxFontWorkaround otherDef tooltipDef tooltipFontLabelHolder
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
    24
		tooltipLabel useXftFontsOnly fontSizeSelectionHolder
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
    25
		lookSelectionHolder useXFontsOnly'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	classVariableNames:''
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
	poolDictionaries:''
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
	category:'Interface-Smalltalk'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
17249
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    31
!FontSettingsApplication class methodsFor:'documentation'!
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    32
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    33
copyright
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    34
"
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    35
 COPYRIGHT (c) 2014 by eXept Software AG
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    36
              All Rights Reserved
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    37
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    38
 This software is furnished under a license and may be used
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    39
 only in accordance with the terms of that license and with the
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    40
 inclusion of the above copyright notice. This software may not
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    41
 be provided or otherwise made available to, or used by, any
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    42
 other person. No title to or ownership of the software is
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    43
 hereby transferred.
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    44
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    45
"
d96ea0023b35 #DOCUMENTATION by cg
Claus Gittinger <cg@exept.de>
parents: 17152
diff changeset
    46
! !
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
!FontSettingsApplication class methodsFor:'instance creation'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
fontForEncoding:encodingMatch
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    | inst |
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    inst := self new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
    inst encodingMatch:encodingMatch.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
    self initialize.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
    self open.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
!FontSettingsApplication class methodsFor:'help specs'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
17905
e0151dd19a58 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17850
diff changeset
    62
helpSpec
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    "This resource specification was automatically generated
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
     by the UIHelpTool of ST/X."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
    "Do not manually edit this!! If it is corrupted,
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
     the UIHelpTool may not be able to read the specification."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
    "
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
     UIHelpTool openOnClass:FontSettingsAppl    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    "
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    <resource: #help>
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
17905
e0151dd19a58 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 17850
diff changeset
    75
    ^ super helpSpec addPairsFrom:#(
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    77
changeCodeFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    78
'Open a font dialog to change the font used in code views only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    79
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    80
changeInputFieldFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    81
'Open a font dialog to change the font used in input fields only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    82
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    83
changeLabelFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    84
'Open a font dialog to change the font used in labels only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    85
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    86
changeListFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    87
'Open a font dialog to change the font used in lists only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    88
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    89
changeMenuFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    90
'Open a font dialog to change the font used in menus only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    91
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    92
changeButtonFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    93
'Open a font dialog to change the font used in buttons only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    94
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    95
changeTooltipFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    96
'Open a font dialog to change the font used in tooltips only'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    97
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    98
changeAllFont
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
    99
'Open a font dialog to change the font used in all views'
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   100
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   101
#resetToDefault
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   102
'Reset fonts back to original default values (as specified in the window style-file and OS settings)'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   103
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   104
#changeToHighContrast
19430
7cdcbf30918e #UI_ENHANCEMENT by exept
anharman
parents: 19408
diff changeset
   105
'Change settings for higher contrast.\Useful for presentations and outdoor operation (bright sunlight)'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   106
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   107
#changeToNormalContrast
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   108
'Change settings for normal contrast.'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   109
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   110
#changeToBigFonts
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   111
'Change settings for bigger fonts.\Useful for presentations'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   112
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   113
#changeToHugeFonts
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   114
'Change settings for huge fonts.\Useful for presentations'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   115
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   116
#changeToSmallFonts
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   117
'Change settings for small fonts.\Useful on smaller screens (13 or 15 inch)'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   118
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   119
#changeToNormalFonts
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   120
'Change settings for default font sizes.'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   121
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   122
#changeToSTXLook
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   123
'Change settings for an ST/X-like look with fixed-width code fonts'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   124
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   125
#changeToSTXLookXft
19430
7cdcbf30918e #UI_ENHANCEMENT by exept
anharman
parents: 19408
diff changeset
   126
'Change settings for an ST/X-like look with fixed-width code fonts).\Uses better looking Xft fonts if available (XWindow only)'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   127
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   128
#changeToSqueakLook
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   129
'Change settings for a Squeak-like look with variable code fonts'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   130
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   131
#changeToVisualAgeLook
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   132
'Change settings for a VisualAge-like look with bold variable code fonts'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   133
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   134
#useXftFontsOnly
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   135
'Don''t try to use and don''t offer non-Xft fonts in font selection dialogs (XWindow only).\If checked, ST/X will use the much nicer looking, but sometimes slower Xft fonts.'
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   136
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   137
#useXFontsOnly
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   138
'Don''t try to use and don''t offer Xft fonts in font selection dialogs (XWindow only).\Check this, if you are working with remote displays via a slow communication line,\to suppress any Xft font usage.\(Xft font rendering requires a much higher bandwidth.)'
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   139
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   140
)
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   141
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   142
    "Created: / 17-03-2012 / 11:37:51 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   143
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   144
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   145
!FontSettingsApplication class methodsFor:'image specs'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   146
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   147
defaultIcon
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   148
    <resource: #programImage>
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
    ^ ToolbarIconLibrary fontIcon
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   151
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   152
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   153
defaultIcon2
14417
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   154
    <resource: #image>
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   155
    "This resource specification was automatically generated
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   156
     by the ImageEditor of ST/X."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   157
    "Do not manually edit this!! If it is corrupted,
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   158
     the ImageEditor may not be able to read the specification."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   159
    "
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   160
     self defaultIcon2 inspect
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   161
     ImageEditor openOnClass:self andSelector:#defaultIcon2
14417
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   162
     Icon flushCachedIcons"
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   163
    
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   164
    ^ Icon constantNamed:#'FontSettingsAppl class defaultIcon2'
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   165
        ifAbsentPut:[
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   166
            (Depth4Image new)
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   167
                width:22;
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   168
                height:22;
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   169
                photometric:(#palette);
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   170
                bitsPerSample:(#( 4 ));
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   171
                samplesPerPixel:(1);
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   172
                bits:(ByteArray 
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   173
                            fromPackedString:'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   174
@@@@@@@@@@@@@@@@@@@@@!!X @@@@@@@!!X @@@6H@@@@@@DP6H@@@Y!!H@@@@@QDY"@@@BY"@@@@ADQBY"@@@FX @@@@@DQCX @@@6H@@@@@QEP6H@@@@ @@@@
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   175
ADUDP @C@@@@@@@DQSH@@@L @@@@@@QEL @@@2@@@@@@ADT2@@@CH@@@@@@DQSH@@@L @@@@@@QEL @@@2@@@@@@QDT2@@@CH@@@@@QDQSH@@@@ @@@@@DQE
14417
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   176
P @@@@@@@@@@@DQ@@@@@@@@@@@@@@D@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b');
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   177
                colorMapFromArray:#[ 0 0 0 255 255 255 150 150 150 213 213 213 215 48 48 134 54 54 240 240 240 ];
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   178
                mask:((ImageMask new)
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   179
                            width:22;
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   180
                            height:22;
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   181
                            bits:(ByteArray 
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   182
                                        fromPackedString:'@@@@@G @OG0@O''<@O7>@O<?@A>? A?? A??@A<?@A<>@A<>@A<>@A=>@C?>@G<>@C<\@@8D@@H@@@@@@@@@@@@@@');
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   183
                            yourself);
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   184
                yourself
2e0d40de0740 Use ImageMask instead of Depth1Image for masks
Stefan Vogel <sv@exept.de>
parents: 14319
diff changeset
   185
        ]
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   186
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   187
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   188
!FontSettingsApplication class methodsFor:'interface specs'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   189
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   190
windowSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   191
    "This resource specification was automatically generated
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   192
     by the UIPainter of ST/X."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   193
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   194
    "Do not manually edit this!! If it is corrupted,
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   195
     the UIPainter may not be able to read the specification."
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   196
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   197
    "
14319
a84b4a0c15ca class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14213
diff changeset
   198
     UIPainter new openOnClass:Tools::FontSettingsApplication andSelector:#windowSpec
a84b4a0c15ca class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14213
diff changeset
   199
     Tools::FontSettingsApplication new openInterface:#windowSpec
a84b4a0c15ca class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14213
diff changeset
   200
     Tools::FontSettingsApplication open
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   201
    "
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   202
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   203
    <resource: #canvas>
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   205
    ^ 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   206
    #(FullSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   207
       name: windowSpec
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   208
       uuid: '733e91ea-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   209
       window: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   210
      (WindowSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   211
         label: 'Font Settings'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   212
         name: 'Font Settings'
14319
a84b4a0c15ca class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14213
diff changeset
   213
         flags: 1
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   214
         uuid: '733e94f6-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   215
         min: (Point 10 10)
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   216
         bounds: (Rectangle 0 0 643 810)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   217
       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   218
       component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   219
      (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   220
         collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   221
          (VerticalPanelViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   222
             name: 'VerticalPanel1'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   223
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 0 1.0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   224
             uuid: '733ee168-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   225
             horizontalLayout: fitSpace
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
             verticalLayout: topSpace
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   227
             horizontalSpace: 3
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   228
             verticalSpace: 3
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   229
             component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   230
            (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   231
               collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
                (TextEditorSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   233
                   name: 'TextEditor1'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   234
                   style: labelFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   235
                   uuid: '733ee4a6-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   236
                   model: infoText
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   237
                   hasHorizontalScrollBar: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   238
                   hasVerticalScrollBar: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   239
                   miniScrollerHorizontal: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   240
                   miniScrollerVertical: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   241
                   isReadOnly: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   242
                   hasKeyboardFocusInitially: false
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   243
                   extent: (Point 637 132)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   244
                   viewClassName: 'ListView'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   245
                   postBuildCallback: postBuildHelpLabel:
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   246
                 )
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   247
                (DividerSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   248
                   name: 'Separator14'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   249
                   uuid: '733ee7a8-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   250
                   extent: (Point 637 4)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   251
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   252
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   253
                   name: 'CodeBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   254
                   uuid: '733ee8d4-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   255
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   256
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   257
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   258
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   259
                         label: 'Code'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   260
                         name: 'Label1'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   261
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   262
                         uuid: '733ee99c-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   263
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   264
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   265
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   266
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   267
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   268
                         name: 'Button1'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   269
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   270
                         activeHelpKey: changeCodeFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   271
                         uuid: '733eebae-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   272
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   273
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   274
                         model: changeTextFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   275
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   276
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   277
                         label: 'Text Font'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   278
                         name: 'Label2'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   279
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   280
                         uuid: '733eee6a-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   281
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   282
                         labelChannel: textFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
                         postBuildCallback: postBuildTextFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   289
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
                   name: 'InputFieldsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   293
                   uuid: '733eef82-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
                         label: 'Input Fields'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
                         name: 'Input Fields'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   301
                         uuid: '733ef02c-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   305
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   306
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   307
                         name: 'ChangeText'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   308
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   309
                         activeHelpKey: changeInputFieldFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   310
                         uuid: '733ef0fe-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   311
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   312
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   313
                         model: changeInputFieldFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   314
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                         label: 'InputFields Font'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
                         name: 'InputFieldsFont'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   318
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   319
                         uuid: '733ef220-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
                         labelChannel: inputFieldFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
                         postBuildCallback: postBuildInputFieldFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   328
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
                   name: 'ListsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   332
                   uuid: '733ef310-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   334
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   335
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   336
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   337
                         label: 'Lists'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
                         name: 'Lists'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   339
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   340
                         uuid: '733ef3b0-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   341
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   342
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   343
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   344
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   345
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   346
                         name: 'ChangeLists'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   347
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   348
                         activeHelpKey: changeListFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   349
                         uuid: '733ef482-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   350
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   351
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   352
                         model: changeListsFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   353
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   354
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   355
                         label: 'Lists Font'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   356
                         name: 'ListsFont'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   357
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   358
                         uuid: '733ef590-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   359
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   360
                         labelChannel: listsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   361
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   362
                         postBuildCallback: postBuildListsFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   363
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   364
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   365
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   366
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   367
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   368
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   369
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   370
                   name: 'MenusBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   371
                   uuid: '733ef68a-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   372
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   373
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   374
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   375
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   376
                         label: 'Menus'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   377
                         name: 'Menus'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   378
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   379
                         uuid: '733ef72a-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   380
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   381
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   382
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   383
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   384
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   385
                         name: 'ChangeMenus'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   386
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   387
                         activeHelpKey: changeMenuFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   388
                         uuid: '733ef7f2-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   389
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   390
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   391
                         model: changeMenusFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   392
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   393
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   394
                         label: 'Menus Font'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   395
                         name: 'MenusFont'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   396
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   397
                         uuid: '733ef964-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   398
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   399
                         labelChannel: menusFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   400
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   401
                         postBuildCallback: postBuildMenuesFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   402
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   403
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   404
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   405
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   406
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   407
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   408
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   409
                   name: 'LabelsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   410
                   uuid: '733efa68-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   411
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   412
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   413
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   414
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   415
                         label: 'Labels'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   416
                         name: 'Labels'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   417
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   418
                         uuid: '733efb08-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   419
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   420
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   421
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   422
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   423
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   424
                         name: 'ChangeLabels'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   425
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   426
                         activeHelpKey: changeLabelFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   427
                         uuid: '733efc3e-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   428
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   429
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   430
                         model: changeLabelsFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   431
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   432
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   433
                         label: 'Labels'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   434
                         name: 'LabelsFont'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   435
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   436
                         uuid: '733efd56-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   437
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   438
                         labelChannel: labelsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   439
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   440
                         postBuildCallback: postBuildLabelsFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   441
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   442
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   443
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   444
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   445
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   446
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   447
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   448
                   name: 'ButtonsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   449
                   uuid: '733efe46-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   450
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   451
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   452
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   453
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   454
                         label: 'Buttons'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   455
                         name: 'Buttons'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   456
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   457
                         uuid: '733efee6-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   458
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   459
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   460
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   461
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   462
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   463
                         name: 'Change Buttons'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   464
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   465
                         activeHelpKey: changeButtonFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   466
                         uuid: '733effb8-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   467
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   468
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   469
                         model: changeButtonsFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   470
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   471
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   472
                         label: 'Buttons Font'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   473
                         name: 'ButtonsFont'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   474
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   475
                         uuid: '733f00c6-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   476
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   477
                         labelChannel: buttonsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   478
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   479
                         postBuildCallback: postBuildButtonsFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   480
                       )
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   481
                      )
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   482
                    
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   483
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   484
                   extent: (Point 637 45)
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   485
                 )
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   486
                (ViewSpec
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   487
                   name: 'ToolTipsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   488
                   uuid: '733f01c0-3c23-11e9-860e-b8f6b1108e05'
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   489
                   component: 
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   490
                  (SpecCollection
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   491
                     collection: (
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   492
                      (LabelSpec
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   493
                         label: 'Tooltips'
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   494
                         name: 'Label7'
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   495
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   496
                         uuid: '733f0260-3c23-11e9-860e-b8f6b1108e05'
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   497
                         translateLabel: true
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   498
                         adjust: left
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   499
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   500
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   501
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   502
                         name: 'Button11'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   503
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   504
                         activeHelpKey: changeTooltipFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   505
                         uuid: '733f0332-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   506
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   507
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   508
                         model: changeTooltipFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   509
                       )
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   510
                      (LabelSpec
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   511
                         label: 'Label'
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   512
                         name: 'Label8'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   513
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   514
                         uuid: '733f0440-3c23-11e9-860e-b8f6b1108e05'
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   515
                         translateLabel: true
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   516
                         labelChannel: tooltipFontLabelHolder
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   517
                         adjust: left
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   518
                         postBuildCallback: postBuildTooltipFontLabel:
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   519
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   520
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   521
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   522
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   523
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   524
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   525
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   526
                   name: 'OtherBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   527
                   uuid: '733f053a-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   528
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   529
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   530
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   531
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   532
                         label: 'All Others'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   533
                         name: 'Label5'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   534
                         layout: (LayoutFrame 0 0.0 0 0 0 1.0 20 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   535
                         uuid: '733f05d0-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   536
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   537
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   538
                       )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   539
                      (ActionButtonSpec
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   540
                         label: 'Change...'
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   541
                         name: 'Button9'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   542
                         layout: (LayoutFrame 100 0.0 15 0 205 0 37 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   543
                         uuid: '733f06a2-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   544
                         translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   545
                         tabable: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   546
                         model: changeOtherFont
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   547
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   548
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   549
                         label: 'Label'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   550
                         name: 'Label6'
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   551
                         layout: (LayoutFrame 210 0 15 0 -2 1 37 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   552
                         activeHelpKey: changeOtherFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   553
                         uuid: '733f07b0-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   554
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   555
                         labelChannel: otherFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   556
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   557
                         postBuildCallback: postBuildOtherFontLabel:
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   558
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   559
                      (DividerSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   560
                         name: 'Separator13'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   561
                         layout: (LayoutFrame 0 0.0 -3 1 0 1.0 0 1)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   562
                         uuid: '733f0896-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   563
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   564
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   565
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   566
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   567
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   568
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   569
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   570
                   name: 'AllBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   571
                   uuid: '733f0968-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   572
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   573
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   574
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   575
                      (LabelSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   576
                         label: 'All'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   577
                         name: 'All'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   578
                         layout: (LayoutFrame 0 0.0 4 0 0 1.0 24 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   579
                         uuid: '733f0a08-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   580
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   581
                         adjust: left
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   582
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   583
                      (ActionButtonSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   584
                         label: 'Change...'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   585
                         name: 'ChangeAll'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   586
                         layout: (LayoutFrame 100 0.0 11 0 205 0 33 0)
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   587
                         activeHelpKey: changeAllFont
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   588
                         uuid: '733f0ada-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   589
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   590
                         tabable: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   591
                         model: changeAllFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   592
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   593
                      (DividerSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   594
                         name: 'Separator1'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   595
                         layout: (LayoutFrame 0 0.0 -3 1 0 1.0 0 1)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   596
                         uuid: '733f0bf2-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   597
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   598
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   599
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   600
                   )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   601
                   extent: (Point 637 45)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   602
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   603
                (CheckBoxSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   604
                   label: 'Linux font workaround: do not reset fonts on snapshot restart'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   605
                   name: 'LinuxFontWorkaroundBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   606
                   uuid: '733f0ca6-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   607
                   visibilityChannel: linuxFontWorkaroundVisible
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   608
                   model: linuxFontWorkaround
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   609
                   translateLabel: true
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   610
                   extent: (Point 637 30)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   611
                 )
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   612
                (CheckBoxSpec
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   613
                   label: 'Only Use Xft Fonts / Suppress Ugly X-Fonts (Unix Only)'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   614
                   name: 'CheckBox1'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   615
                   activeHelpKey: useXftFontsOnly
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   616
                   uuid: '733f4108-3c23-11e9-860e-b8f6b1108e05'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   617
                   visibilityChannel: useXftFontsOnlyVisible
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   618
                   enableChannel: useXftFontsOnlyEnabled
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   619
                   model: useXftFontsOnly
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   620
                   translateLabel: true
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   621
                   extent: (Point 637 30)
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   622
                 )
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   623
                (CheckBoxSpec
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   624
                   label: 'Only Use X Fonts / Suppress Slow Xft-Fonts (Unix Only)'
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   625
                   name: 'CheckBox2'
16482
5b57eef90d30 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 16460
diff changeset
   626
                   activeHelpKey: useXFontsOnly
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   627
                   uuid: '733f4248-3c23-11e9-860e-b8f6b1108e05'
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   628
                   visibilityChannel: useXFontsOnlyVisible
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   629
                   enableChannel: useXFontsOnlyEnabled
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   630
                   model: useXFontsOnly
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   631
                   translateLabel: true
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   632
                   extent: (Point 637 30)
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   633
                 )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   634
                (DividerSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   635
                   name: 'Separator12'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   636
                   uuid: '733f432e-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   637
                   visibilityChannel: linuxFontWorkaroundVisible
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   638
                   extent: (Point 637 3)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   639
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   640
                (ViewSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   641
                   name: 'SpecialsBox'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   642
                   uuid: '733f43e2-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   643
                   component: 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   644
                  (SpecCollection
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   645
                     collection: (
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   646
                      (ActionButtonSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   647
                         label: 'Default'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   648
                         name: 'Button2'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   649
                         layout: (LayoutFrame 0 0.0 13 0 140 0 35 0)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   650
                         activeHelpKey: resetToDefault
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   651
                         uuid: '733f4496-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   652
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   653
                         tabable: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   654
                         model: changeToDefault
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   655
                       )
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   656
                      (LabelSpec
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   657
                         label: 'Font Size:'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   658
                         name: 'Label9'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   659
                         layout: (LayoutFrame 148 0.0 13 0 298 0 35 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   660
                         uuid: '733f45e0-3c23-11e9-860e-b8f6b1108e05'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   661
                         translateLabel: true
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   662
                         adjust: left
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   663
                       )
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   664
                      (ComboListSpec
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   665
                         name: 'ComboList1'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   666
                         layout: (LayoutFrame 256 0 13 0 0 1 35 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   667
                         uuid: '733f46da-3c23-11e9-860e-b8f6b1108e05'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   668
                         model: fontSizeSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   669
                         comboList: fontSizeListLabels
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   670
                         useIndex: true
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   671
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   672
                      (ActionButtonSpec
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   673
                         label: 'High Contrast'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   674
                         name: 'Button13'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   675
                         layout: (LayoutFrame 256 0.0 77 0 386 0 99 0)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   676
                         activeHelpKey: changeToHighContrast
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   677
                         uuid: '733f4860-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   678
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   679
                         tabable: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   680
                         model: changeToHighContrast
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   681
                       )
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   682
                      (LabelSpec
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   683
                         label: 'Look:'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   684
                         name: 'Label10'
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   685
                         layout: (LayoutFrame 148 0.0 45 0 298 0 67 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   686
                         uuid: '733f4982-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   687
                         translateLabel: true
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   688
                         adjust: left
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   689
                       )
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   690
                      (ComboListSpec
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   691
                         name: 'ComboList2'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   692
                         layout: (LayoutFrame 256 0 45 0 0 1 67 0)
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   693
                         uuid: '733f4a5e-3c23-11e9-860e-b8f6b1108e05'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   694
                         model: lookSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   695
                         comboList: lookListLabels
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   696
                         useIndex: true
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   697
                       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   698
                      (ActionButtonSpec
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   699
                         label: 'Use Xft Fonts'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   700
                         name: 'Button10'
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   701
                         layout: (LayoutFrame 0 0.0 77 0 140 0 99 0)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   702
                         activeHelpKey: changeToSTXLookXft
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   703
                         uuid: '733f4b26-3c23-11e9-860e-b8f6b1108e05'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   704
                         translateLabel: true
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   705
                         tabable: true
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   706
                         model: changeToUseXft
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   707
                         enableChannel: hasXftFonts
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   708
                       )
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   709
                      (ActionButtonSpec
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   710
                         label: 'Normal Contrast'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   711
                         name: 'Button14'
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   712
                         layout: (LayoutFrame 400 0.0 77 0 530 0 99 0)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   713
                         activeHelpKey: changeToNormalContrast
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   714
                         uuid: '733f4c48-3c23-11e9-860e-b8f6b1108e05'
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   715
                         translateLabel: true
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   716
                         tabable: true
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   717
                         model: changeToNormalContrast
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   718
                       )
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   719
                      )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   720
                    
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   721
                   )
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
   722
                   extent: (Point 637 124)
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   723
                 )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   724
                )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   725
              
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   726
             )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   727
           )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   728
          )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   729
        
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   730
       )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   731
     )
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   732
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   733
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   734
!FontSettingsApplication methodsFor:'accessing'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   735
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   736
buttonDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   737
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   738
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   739
    (v := self buttonDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   740
        ^ self defaultFontSpecDictionary at:#Button
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   741
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   742
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   743
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   744
    "Created: / 01-03-2019 / 14:15:28 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   745
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   746
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   747
encodingMatch:aEncodingMatch
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   748
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   749
    aEncodingMatch notNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   750
        filter := [:f | f encoding notNil 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   751
                        and:[aEncodingMatch match:f encoding]].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   752
    ].
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   753
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   754
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   755
inputFieldDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   756
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   757
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   758
    (v := self inputFieldDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   759
        ^ self defaultFontSpecDictionary at:#InputField
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   760
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   761
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   762
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   763
    "Created: / 01-03-2019 / 14:16:15 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   764
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   765
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   766
labelDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   767
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   768
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   769
    (v := self labelDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   770
        ^ self defaultFontSpecDictionary at:#Label
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   771
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   772
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   773
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   774
    "Created: / 01-03-2019 / 14:15:15 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   775
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   776
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   777
listDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   778
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   779
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   780
    (v := self listDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   781
        ^ self defaultFontSpecDictionary at:#List
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   782
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   783
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   784
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   785
    "Created: / 01-03-2019 / 14:16:25 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   786
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   787
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   788
menuDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   789
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   790
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   791
    (v := self menuDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   792
        ^ self defaultFontSpecDictionary at:#Menu
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   793
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   794
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   795
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   796
    "Created: / 01-03-2019 / 14:16:44 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   797
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   798
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   799
otherDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   800
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   801
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   802
    (v := self otherDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   803
        ^ self defaultFontSpecDictionary at:#Other
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   804
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   805
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   806
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   807
    "Created: / 01-03-2019 / 14:15:08 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   808
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   809
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   810
textDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   811
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   812
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   813
    (v := self textDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   814
        ^ self defaultFontSpecDictionary at:#Text
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   815
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   816
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   817
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   818
    "Created: / 01-03-2019 / 14:16:00 / Claus Gittinger"
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   819
!
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   820
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   821
tooltipDefValue
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   822
    |v|
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   823
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   824
    (v := self tooltipDef value) isNil ifTrue:[
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   825
        ^ self defaultFontSpecDictionary at:#Tooltip
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   826
    ].
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   827
    ^ v asFontDescription storeString
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   828
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
   829
    "Created: / 01-03-2019 / 14:16:35 / Claus Gittinger"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   830
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   831
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   832
!FontSettingsApplication methodsFor:'actions'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   833
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   834
basicReadFontSettings
16320
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   835
    |prefs readFont sz lookIdx idx defaultTextFont|
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
   836
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
   837
    self readAspects:#(useXftFontsOnly useXFontsOnly) from:currentUserPrefs.
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   838
    
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
   839
    prefs := currentUserPrefs fontPreferences.
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   840
    prefs isNil ifTrue:[
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   841
        prefs := Dictionary new.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   842
    ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   843
    
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   844
    readFont := 
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   845
        [:key :default |
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   846
            |s fn|
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   847
            
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   848
            s := prefs at:key ifAbsent:nil.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   849
            s notNil ifTrue:[
15892
490403cc6c1f #BUGFIX
Claus Gittinger <cg@exept.de>
parents: 15887
diff changeset
   850
                fn := Object readFrom:s.
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   851
                self useXftFontsOnly value ifTrue:[
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   852
                    fn := XftFontDescription for:fn
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   853
                ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   854
            ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   855
            fn isNil ifTrue:[
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   856
                fn := default.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   857
            ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   858
            fn
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   859
        ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   860
        
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   861
    self allOfThem value:View defaultFont.
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   862
    {
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   863
        {#otherDef      . #Other      . View defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   864
        {#labelDef      . #Label      . Label defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   865
        {#buttonDef     . #Button     . Button defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   866
        {#listDef       . #List       . SelectionInListView defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   867
        {#menuDef       . #Menu       . MenuView defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   868
        {#textDef       . #Text       . TextView defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   869
        {#inputFieldDef . #InputField . EditField defaultFont } .
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   870
        {#tooltipDef    . #Tooltip    . ActiveHelpView defaultFont } 
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   871
    } triplesDo:[:holderGetter :aspectName :defaultValue |
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   872
        |holder font|
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   873
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   874
        holder := self perform:holderGetter.
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   875
        font := readFont value:aspectName value:defaultValue.
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   876
        holder value = font ifFalse:[
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   877
            holder value:font
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   878
        ].
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   879
    ].    
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   880
    "/ self otherDef value = (readFont value:#Other value:View defaultFont) ifFalse:[
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   881
    "/    self otherDef value:(readFont value:#Other value:View defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   882
    "/ ].    
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   883
    "/ self labelDef value:(readFont value:#Label value:Label defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   884
    "/ self buttonDef value:(readFont value:#Button value:Button defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   885
    "/ self listDef value:(readFont value:#List value:SelectionInListView defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   886
    "/ self menuDef value:(readFont value:#Menu value:MenuView defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   887
    "/ self textDef value:(readFont value:#Text value:TextView defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   888
    "/ self inputFieldDef value:(readFont value:#InputField value:EditField defaultFont).
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   889
    "/ self tooltipDef value:(readFont value:#Tooltip value:ActiveHelpView defaultFont).
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   890
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   891
    sz := TextView defaultFont size.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   892
    idx := self fontSizeListValues indexOf:sz.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   893
    idx ~~ 0 ifTrue:[
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   894
        self fontSizeSelectionHolder value:idx withoutNotifying:self.
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   895
    ].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   896
    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   897
    lookIdx := nil.
16320
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   898
    defaultTextFont := TextView defaultFont.
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   899
    (defaultTextFont face = #bold) ifTrue:[
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   900
        lookIdx := self lookListValues indexOf:#vage.
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   901
    ] ifFalse:[
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
   902
        (defaultTextFont onDevice:self device) isFixedWidth ifTrue:[
16320
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   903
            lookIdx := self lookListValues indexOf:#stx.
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   904
        ] ifFalse:[    
16320
cd9e227fdeec #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16289
diff changeset
   905
            lookIdx := self lookListValues indexOf:#squeak.
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   906
        ].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
   907
    ].
15933
6d96850e24d3 #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15932
diff changeset
   908
    self lookSelectionHolder value:lookIdx withoutNotifying:self
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   909
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   910
    "Modified: / 10-10-2011 / 12:15:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   911
    "Created: / 06-02-2012 / 12:22:39 / cg"
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
   912
    "Modified: / 28-02-2019 / 18:04:42 / Claus Gittinger"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   913
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   914
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   915
basicReadSettings
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   916
    self basicReadFontSettings.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   917
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   918
    self readAspects: #(linuxFontWorkaround) from: currentUserPrefs
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   919
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   920
    "Modified: / 10-10-2011 / 12:15:31 / Jan Vrany <jan.vrany@fit.cvut.cz>"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   921
    "Modified: / 06-02-2012 / 12:22:51 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   922
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   923
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   924
basicSaveSettings
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   925
    "/ |fn|
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   926
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
   927
    self writeAspects: #(linuxFontWorkaround useXftFontsOnly useXFontsOnly) to: currentUserPrefs.
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
   928
    currentUserPrefs fontPreferences:self fontSpecDictionary.
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   929
        
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   930
"/    fn := self otherDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   931
"/    SimpleView withAllSubclasses do:[:cls | cls defaultFont:fn].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   932
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   933
"/    fn := self labelDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   934
"/    Label defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   935
"/    CheckBox defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   936
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   937
"/    fn := self buttonDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   938
"/    Button defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   939
"/    Toggle defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   940
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   941
"/    fn := self textDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   942
"/    TextView withAllSubclasses do:[:cls | cls defaultFont:fn].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   943
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   944
"/    fn := self inputFieldDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   945
"/    EditField withAllSubclasses do:[:cls | cls defaultFont:fn].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   946
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   947
"/    fn := self listDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   948
"/    SelectionInListView withAllSubclasses do:[:cls | cls defaultFont:fn].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   949
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   950
"/    fn := self tooltipDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   951
"/    ActiveHelpView withAllSubclasses do:[:cls | cls defaultFont:fn].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   952
"/
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   953
"/    fn := self menuDef value.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   954
"/    ListView defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   955
"/    MenuView defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   956
"/    MenuPanel defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   957
"/    NoteBookView defaultFont:fn.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
   958
"/    PullDownMenu defaultFont:fn.
14494
680379a3dbef class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14491
diff changeset
   959
680379a3dbef class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14491
diff changeset
   960
    DebugView newDebugger.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   961
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   962
    "Modified: / 10-10-2011 / 12:15:56 / Jan Vrany <jan.vrany@fit.cvut.cz>"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   963
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   964
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   965
changeAllFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   966
    |f|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   967
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   968
    self withWaitCursorDo:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   969
        f := FontPanel 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   970
                fontFromUserInitial:(self allOfThem value) 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   971
                title:(resources string:'Font for %1' with:'All')
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   972
                filter:filter.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   973
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   974
    f notNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   975
        "/ self allOfThem value:(f onDevice:allLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   976
        self otherDef value:(f onDevice:otherLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   977
        self labelDef value:(f onDevice:labelLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   978
        self buttonDef value:(f onDevice:buttonsLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   979
        self listDef value:(f onDevice:listsLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   980
        self menuDef value:(f onDevice:menuLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   981
        self textDef value:(f onDevice:textLabel device).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   982
        self inputFieldDef value:(f onDevice:inputFieldLabel device).
16080
91f72a42634b #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15933
diff changeset
   983
        self tooltipDef value:(f onDevice:tooltipLabel device).
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   984
    ]
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   985
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   986
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   987
changeButtonsFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   988
    self changeFontFor:self buttonDef labelTitle:'Buttons'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   989
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   990
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   991
changeFontFor:aHolder labelTitle:labelTitle
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   992
    |f |
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   993
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   994
    self withWaitCursorDo:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   995
        f := FontPanel 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   996
                fontFromUserInitial:(aHolder value) 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   997
                title:(resources string:'Font for %1' with:labelTitle)
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   998
                filter:filter.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   999
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1000
    f notNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1001
        aHolder value:(f onDevice:self graphicsDevice).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1002
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1003
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1004
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1005
changeInputFieldFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1006
    self changeFontFor:self inputFieldDef labelTitle:'Input Fields'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1007
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1008
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1009
changeLabelsFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1010
    self changeFontFor:self labelDef labelTitle:'Labels'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1011
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1012
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1013
changeListsFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1014
    self changeFontFor:self listDef labelTitle:'Lists'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1015
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1016
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1017
changeMenusFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1018
    self changeFontFor:self menuDef labelTitle:'Menus'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1019
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1020
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1021
changeOtherFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1022
    self changeFontFor:self otherDef labelTitle:'All Others'.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1023
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1024
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1025
changeTextFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1026
    self changeFontFor:self textDef labelTitle:'Edited Text'.
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1027
!
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1028
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1029
changeTooltipFont
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1030
    self changeFontFor:self tooltipDef labelTitle:'Tooltops'.
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1031
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1032
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
  1033
defaultFontSpecDictionary
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
  1034
    ^ Dictionary new
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1035
        at:#Other put:View defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1036
        at:#Label put:View defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1037
        at:#Button put:Button defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1038
        at:#Text put:TextView defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1039
        at:#InputField put:EditField defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1040
        at:#List put:SelectionInListView defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1041
        at:#Tooltip put:ActiveHelpView defaultFont asFontDescription storeString;
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1042
        at:#Menu put:MenuView defaultFont asFontDescription storeString;
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
  1043
        yourself
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1044
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1045
    "Modified: / 01-03-2019 / 14:13:44 / Claus Gittinger"
16981
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
  1046
!
a22824384c13 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16978
diff changeset
  1047
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1048
fontSizeSelectionChanged
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1049
    |idx sz|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1050
    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1051
    idx := self fontSizeSelectionHolder value.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1052
    sz := self fontSizeListValues at:idx ifAbsent:nil.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1053
    sz notNil ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1054
        self changeToFontsWithSize:sz
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1055
    ].    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1056
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1057
16978
bb2a86f7fc63 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16482
diff changeset
  1058
fontSpecDictionary
bb2a86f7fc63 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16482
diff changeset
  1059
    ^ Dictionary new
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1060
        at:#Other put:(self otherDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1061
        at:#Label put:(self labelDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1062
        at:#Button put:(self buttonDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1063
        at:#Text put:(self textDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1064
        at:#InputField put:(self inputFieldDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1065
        at:#List put:(self listDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1066
        at:#Tooltip put:(self tooltipDefValue);
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1067
        at:#Menu put:(self menuDefValue);
16978
bb2a86f7fc63 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16482
diff changeset
  1068
        yourself
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1069
18626
ddd710be1fdb #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18625
diff changeset
  1070
    "Modified: / 01-03-2019 / 14:18:37 / Claus Gittinger"
16978
bb2a86f7fc63 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16482
diff changeset
  1071
!
bb2a86f7fc63 #BUGFIX by stefan
Stefan Vogel <sv@exept.de>
parents: 16482
diff changeset
  1072
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1073
lookSelectionChanged
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1074
    |idx look|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1075
    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1076
    idx := self lookSelectionHolder value.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1077
    look := self lookListValues at:idx ifAbsent:nil.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1078
    look notNil ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1079
        look == #stx ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1080
            self changeToSTXLook
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1081
        ] ifFalse:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1082
            look == #squeak ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1083
                self changeToSqueakLook
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1084
            ] ifFalse:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1085
                look == #vage ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1086
                    self changeToVisualAgeLook
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1087
                ]
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1088
            ]
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1089
        ].    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1090
    ].    
17152
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1091
!
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1092
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1093
readFontsFromWidgetDefaults
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1094
    |sz idx|
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1095
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1096
    self allOfThem value:View defaultFont.
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1097
    self otherDef value:(View defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1098
    self labelDef value:(Label defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1099
    self buttonDef value:(Button defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1100
    self listDef value:(SelectionInListView defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1101
    self menuDef value:(MenuView defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1102
    self textDef value:(TextView defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1103
    self inputFieldDef value:(EditField defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1104
    self tooltipDef value:(ActiveHelpView defaultFont).
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1105
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1106
    sz := TextView defaultFont size.
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1107
    idx := self fontSizeListValues indexOf:sz.
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1108
    idx ~~ 0 ifTrue:[
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1109
        self fontSizeSelectionHolder value:idx withoutNotifying:self.
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1110
    ].
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1111
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1112
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1113
!FontSettingsApplication methodsFor:'actions-common looks'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1114
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1115
changeToBigFonts
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1116
    self changeToFontsWithSize:16
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1117
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1118
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1119
changeToDefault
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1120
    "/View readStyleSheetAndUpdateAllStyleCaches.
17152
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1121
    SimpleView readStyleSheet.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1122
    View updateAllStyleCaches.
17152
983f638ea6c1 #BUGFIX by cg
Claus Gittinger <cg@exept.de>
parents: 16981
diff changeset
  1123
    self readFontsFromWidgetDefaults.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1124
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1125
    "Created: / 06-02-2012 / 12:06:00 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1126
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1127
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1128
changeToFix:fixFont variable:variableFont
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1129
    self textDef value:fixFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1130
    self inputFieldDef value:fixFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1131
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1132
    self menuDef value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1133
    self listDef value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1134
    self labelDef value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1135
    self buttonDef value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1136
    self otherDef value:variableFont.
16080
91f72a42634b #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15933
diff changeset
  1137
    self tooltipDef value:variableFont.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1138
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1139
    self allOfThem value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1140
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1141
    "Created: / 06-02-2012 / 12:18:34 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1142
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1143
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1144
changeToFontsWithSize:points
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1145
    |f fixFont variableFont|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1146
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1147
    f := TextView defaultFont.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1148
    f := f asSize:points.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1149
    TextView defaultFont:f.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1150
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1151
    fixFont := (self textDef value "TextView defaultFont" asSize:points).
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1152
    variableFont := (self labelDef value "Label defaultFont" asSize:points).
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1153
    self changeToFix:fixFont variable:variableFont.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1154
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1155
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1156
changeToHighContrast
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1157
    |fixFont variableFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1158
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1159
    fixFont := (self textDef value "TextView defaultFont") asFace:'bold'.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1160
    variableFont := (self labelDef value "Label defaultFont") asFace:'bold'.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1161
    self changeToFix:fixFont variable:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1162
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1163
    "Created: / 06-02-2012 / 12:12:47 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1164
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1165
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1166
changeToHugeFonts
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1167
    self changeToFontsWithSize:18
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1168
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1169
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1170
changeToNormalContrast
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1171
    |fixFont variableFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1172
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1173
    fixFont := (self textDef value "TextView defaultFont") asFace:'medium'.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1174
    variableFont := (self labelDef value "Label defaultFont") asFace:'medium'.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1175
    self changeToFix:fixFont variable:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1176
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1177
    "Created: / 06-02-2012 / 12:12:47 / cg"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1178
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1179
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1180
changeToSTXLook
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1181
    self changeToSTXLookWithSize:(TextView defaultFont size)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1182
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1183
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1184
changeToSTXLookSmall
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1185
    |f|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1186
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1187
    f := TextView defaultFont.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1188
    f := f asSize:10.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1189
    TextView defaultFont:f.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1190
    
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1191
    self changeToSTXLook.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1192
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1193
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1194
changeToSTXLookSmallXft
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1195
    |f|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1196
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1197
    f := TextView defaultFont.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1198
    f := f asSize:10.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1199
    TextView defaultFont:f.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1200
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1201
    self changeToSTXLookXft
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1202
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1203
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1204
changeToSTXLookWithSize:points
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1205
    |fixFont variableFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1206
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1207
    fixFont := (Font family:'courier new' face:'medium' style:'roman' size:points).
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1208
    variableFont := (Font family:'arial' face:'medium' style:'roman' size:points).
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1209
    self changeToFix:fixFont variable:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1210
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1211
    "Created: / 17-03-2012 / 11:23:16 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1212
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1213
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1214
changeToSTXLookXft
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1215
    |fixFont variableFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1216
16094
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1217
    self hasXftFonts ifFalse:[
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1218
        self changeToSTXLook.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1219
        ^ self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1220
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1221
16094
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1222
    fixFont := XftFontDescription family:'Courier' face:'regular' style:'roman' size:(TextView defaultFont size).
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1223
    variableFont := XftFontDescription family:'Arial' face:'regular' style:'roman' size:(TextView defaultFont size).
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1224
    self changeToFix:fixFont variable:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1225
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1226
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1227
changeToSmallFonts
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1228
    self changeToFontsWithSize:10
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1229
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1230
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1231
changeToSqueakLook
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1232
    |variableFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1233
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1234
    variableFont := (Font family:'arial' face:'medium' style:'roman' size:(TextView defaultFont size)).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1235
    self changeToFix:variableFont variable:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1236
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1237
    "Created: / 17-03-2012 / 11:22:59 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1238
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1239
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1240
changeToUseXft
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1241
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1242
    |fixFont variableFont|
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1243
16094
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1244
    self hasXftFonts ifFalse:[
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1245
        ^ self.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1246
    ].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1247
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1248
    TextView defaultFont:(XftFontDescription family:'Courier' face:'regular' style:'roman' size:(TextView defaultFont size)).
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1249
    Label defaultFont:(XftFontDescription family:'Arial' face:'regular' style:'roman' size:(Label defaultFont size)).
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1250
    
16094
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1251
    fixFont := XftFontDescription family:'Courier' face:'regular' style:'roman' size:(TextView defaultFont size).
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1252
    variableFont := XftFontDescription family:'Arial' face:'regular' style:'roman' size:(TextView defaultFont size).
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1253
    self changeToFix:fixFont variable:variableFont.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1254
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1255
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1256
changeToVisualAgeLook
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1257
    |variableFont variableBoldFont|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1258
17850
c53dd6e96e93 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 17249
diff changeset
  1259
    variableBoldFont := (Font family:'arial' face:'medium' style:'roman' size:(TextView defaultFont size)).
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1260
    variableFont := (Font family:'arial' face:'medium' style:'roman' size:(TextView defaultFont size)).
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1261
    self changeToFix:variableBoldFont variable:variableBoldFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1262
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1263
    self menuDef value:variableFont.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1264
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1265
    "Created: / 17-03-2012 / 11:22:18 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1266
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1267
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1268
!FontSettingsApplication methodsFor:'aspects'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1269
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1270
allFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1271
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1272
    allFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1273
        allFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1274
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1275
    ^ allFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1276
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1277
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1278
allOfThem
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1279
    "return/create the 'allOfThem' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1280
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1281
    allOfThem isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1282
        allOfThem := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1283
        allOfThem addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1284
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1285
    ^ allOfThem
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1286
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1287
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1288
buttonDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1289
    "return/create the 'buttonDef' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1290
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1291
    buttonDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1292
        buttonDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1293
        buttonDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1294
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1295
    ^ buttonDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1296
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1297
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1298
buttonsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1299
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1300
    buttonsFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1301
        buttonsFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1302
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1303
    ^ buttonsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1304
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1305
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1306
fontSizeLabelsAndValues
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1307
    ^ #(
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1308
        ('Default (12)' 12)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1309
        (nil nil)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1310
        ('Tiny (8)' 8)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1311
        ('Small (10)' 10)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1312
        ('Big (16)' 16)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1313
        ('Huge (18)' 18)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1314
        ('<keep as is>' nil)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1315
    )
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1316
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1317
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1318
fontSizeListLabels
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1319
    ^ self fontSizeLabelsAndValues collect:[:each | each first].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1320
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1321
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1322
fontSizeListValues
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1323
    ^ self fontSizeLabelsAndValues collect:[:each | each second].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1324
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1325
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1326
fontSizeSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1327
    fontSizeSelectionHolder isNil ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1328
        fontSizeSelectionHolder := nil asValue.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1329
        fontSizeSelectionHolder onChangeSend:#fontSizeSelectionChanged to:self.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1330
    ].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1331
    ^ fontSizeSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1332
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1333
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1334
infoText
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1335
    ^ (self resources 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1336
        string:'FONT_SETTINGS_INFO'
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1337
        default:'Please notice that changes only affect new windows.
19408
333b314ade11 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18943
diff changeset
  1338
Existing windows usually remember their initial font as created.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1339
If required, reopen some of the views, including the Launcher itself.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1340
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1341
Also notice: 
19408
333b314ade11 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 18943
diff changeset
  1342
    unless you save changed settings, 
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1343
    only the current session is affected by changes here.') withCRs
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1344
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1345
    "Created: / 17-08-2010 / 10:52:00 / cg"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1346
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1347
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1348
inputFieldDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1349
    inputFieldDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1350
        inputFieldDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1351
        inputFieldDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1352
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1353
    ^ inputFieldDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1354
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1355
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1356
inputFieldFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1357
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1358
    inputFieldFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1359
        inputFieldFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1360
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1361
    ^ inputFieldFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1362
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1363
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1364
labelDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1365
    "return/create the 'labelDef' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1366
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1367
    labelDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1368
        labelDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1369
        labelDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1370
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1371
    ^ labelDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1372
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1373
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1374
labelsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1375
    labelsFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1376
        labelsFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1377
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1378
    ^ labelsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1379
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1380
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1381
linuxFontWorkaround
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1382
    linuxFontWorkaround isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1383
        linuxFontWorkaround := false asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1384
        linuxFontWorkaround onChangeSend:#updateModifiedChannel to:self
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1385
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1386
    ^ linuxFontWorkaround.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1387
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1388
    "Created: / 10-10-2011 / 12:14:26 / Jan Vrany <jan.vrany@fit.cvut.cz>"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1389
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1390
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1391
linuxFontWorkaroundVisible
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1392
    ^OperatingSystem getOSType == #linux
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1393
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1394
    "Created: / 10-10-2011 / 12:57:51 / Jan Vrany <jan.vrany@fit.cvut.cz>"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1395
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1396
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1397
listDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1398
    "return/create the 'listDef' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1399
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1400
    listDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1401
        listDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1402
        listDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1403
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1404
    ^ listDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1405
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1406
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1407
listsFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1408
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1409
    listsFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1410
        listsFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1411
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1412
    ^ listsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1413
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1414
15932
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1415
lookLabelsAndValues
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1416
    ^ #(
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1417
        ('ST/X Look (monospace font for code)' #stx)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1418
        ('Squeak Look (variable font for code)' #squeak)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1419
        ('V''Age Look (variable bold font for code)' #vage)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1420
        ('<keep as is>' nil)
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1421
    )
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1422
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1423
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1424
lookListLabels
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1425
    ^ self lookLabelsAndValues collect:[:each | each first].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1426
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1427
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1428
lookListValues
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1429
    ^ self lookLabelsAndValues collect:[:each | each second].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1430
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1431
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1432
lookSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1433
    lookSelectionHolder isNil ifTrue:[
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1434
        lookSelectionHolder := nil asValue.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1435
        lookSelectionHolder onChangeSend:#lookSelectionChanged to:self.
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1436
    ].
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1437
    ^ lookSelectionHolder
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1438
!
31756c0844aa #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 15892
diff changeset
  1439
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1440
menuDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1441
    "return/create the 'menuDef' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1442
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1443
    menuDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1444
        menuDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1445
        menuDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1446
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1447
    ^ menuDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1448
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1449
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1450
menusFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1451
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1452
    menusFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1453
        menusFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1454
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1455
    ^ menusFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1456
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1457
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1458
otherDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1459
    otherDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1460
        otherDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1461
        otherDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1462
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1463
    ^ otherDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1464
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1465
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1466
otherFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1467
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1468
    otherFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1469
        otherFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1470
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1471
    ^ otherFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1472
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1473
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1474
textDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1475
    "return/create the 'textDef' value holder (automatically generated)"
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1476
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1477
    textDef isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1478
        textDef := ValueHolder new.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1479
        textDef addDependent:self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1480
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1481
    ^ textDef
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1482
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1483
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1484
textFontLabelHolder
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1485
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1486
    textFontLabelHolder isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1487
        textFontLabelHolder := '' asValue.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1488
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1489
    ^ textFontLabelHolder.
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1490
!
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1491
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1492
tooltipDef
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1493
    tooltipDef isNil ifTrue:[
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1494
        tooltipDef := ValueHolder new.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1495
        tooltipDef addDependent:self.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1496
    ].
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1497
    ^ tooltipDef
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1498
!
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1499
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1500
tooltipFontLabelHolder
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1501
    tooltipFontLabelHolder isNil ifTrue:[
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1502
        tooltipFontLabelHolder := '' asValue.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1503
    ].
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1504
    ^ tooltipFontLabelHolder.
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1505
!
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1506
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1507
useXFontsOnly
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1508
    useXFontsOnly isNil ifTrue:[
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1509
        useXFontsOnly := false asValue.
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1510
        useXFontsOnly onChangeSend:#useXftSettingsChanged to:self
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1511
    ].
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1512
    ^ useXFontsOnly.
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1513
!
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1514
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1515
useXFontsOnlyEnabled
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1516
    ^ builder valueAspectFor:#useXFontsOnlyEnabled initialValue:true
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1517
!
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1518
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1519
useXFontsOnlyVisible
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1520
18943
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1521
    ^ Screen isX11Platform
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1522
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1523
    "Modified: / 25-07-2019 / 12:32:23 / Claus Gittinger"
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1524
!
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1525
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1526
useXftFontsOnly
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1527
    useXftFontsOnly isNil ifTrue:[
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1528
        useXftFontsOnly := false asValue.
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1529
        useXftFontsOnly onChangeSend:#useXftSettingsChanged to:self
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1530
    ].
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1531
    ^ useXftFontsOnly.
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1532
!
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1533
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1534
useXftFontsOnlyEnabled
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1535
    ^ builder valueAspectFor:#useXftFontsOnlyEnabled initialValue:true
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1536
!
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1537
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1538
useXftFontsOnlyVisible
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1539
18943
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1540
    ^ Screen isX11Platform
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1541
b20434807df6 #REFACTORING by cg
Claus Gittinger <cg@exept.de>
parents: 18626
diff changeset
  1542
    "Modified: / 25-07-2019 / 12:32:28 / Claus Gittinger"
16460
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1543
!
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1544
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1545
useXftSettingsChanged
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1546
    |enableUseXft enableUseX|
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1547
    
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1548
    self updateModifiedChannel.
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1549
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1550
    enableUseXft := enableUseX := true.
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1551
    
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1552
    self useXftFontsOnly value ifTrue:[
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1553
        enableUseX := false
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1554
    ].    
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1555
    self useXFontsOnly value ifTrue:[
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1556
        enableUseXft := false
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1557
    ].
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1558
    
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1559
    self useXFontsOnlyEnabled value:enableUseX.
c8ec3e7fb2e1 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 16320
diff changeset
  1560
    self useXftFontsOnlyEnabled value:enableUseXft
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1561
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1562
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1563
!FontSettingsApplication methodsFor:'change & update'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1564
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1565
update:something with:aParameter from:changedObject
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1566
    |whichLabel whichFontLabelHolder|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1567
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1568
    builder notNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1569
        changedObject == self allOfThem ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1570
            whichLabel := allLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1571
            whichFontLabelHolder := self allFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1572
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1573
        changedObject == self otherDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1574
            whichLabel := otherLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1575
            whichFontLabelHolder := self otherFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1576
        ].
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1577
        changedObject == self tooltipDef ifTrue:[
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1578
            whichLabel := tooltipLabel.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1579
            whichFontLabelHolder := self tooltipFontLabelHolder.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1580
        ].
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1581
        changedObject == self labelDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1582
            whichLabel := labelLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1583
            whichFontLabelHolder := self labelsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1584
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1585
        changedObject == self buttonDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1586
            whichLabel := buttonsLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1587
            whichFontLabelHolder := self buttonsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1588
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1589
        changedObject == self listDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1590
            whichLabel := listsLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1591
            whichFontLabelHolder := self listsFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1592
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1593
        changedObject == self menuDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1594
            whichLabel := menuLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1595
            whichFontLabelHolder := self menusFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1596
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1597
        changedObject == self textDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1598
            whichLabel := textLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1599
            whichFontLabelHolder := self textFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1600
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1601
        changedObject == self inputFieldDef ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1602
            whichLabel := inputFieldLabel.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1603
            whichFontLabelHolder := self inputFieldFontLabelHolder.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1604
        ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1605
        whichLabel notNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1606
            self updateFontOfLabel:whichLabel andFontNameHolder:whichFontLabelHolder from:changedObject.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1607
            ^ self.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1608
        ]
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1609
    ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1610
    super update:something with:aParameter from:changedObject
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1611
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1612
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1613
updateAllFontLabels
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1614
    self update:#value with:nil from:self allOfThem.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1615
    self update:#value with:nil from:self otherDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1616
    self update:#value with:nil from:self labelDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1617
    self update:#value with:nil from:self buttonDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1618
    self update:#value with:nil from:self listDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1619
    self update:#value with:nil from:self menuDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1620
    self update:#value with:nil from:self textDef.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1621
    self update:#value with:nil from:self inputFieldDef.
16080
91f72a42634b #BUGFIX
Stefan Vogel <sv@exept.de>
parents: 15933
diff changeset
  1622
    self update:#value with:nil from:self tooltipDef.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1623
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1624
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1625
updateFontOfLabel:labelWidget andFontNameHolder:fontNameHolder from:changedObject 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1626
    |f label|
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1627
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1628
    f := changedObject value.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1629
    labelWidget font:f.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1630
    label := f isNil ifTrue:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1631
                ''
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1632
            ] ifFalse:[
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1633
                f userFriendlyName
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1634
            ].
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1635
    fontNameHolder value:label.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1636
    self updateModifiedChannel
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1637
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1638
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1639
!FontSettingsApplication methodsFor:'help'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1640
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1641
helpFilename
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1642
    ^ 'Launcher/fontSettings.html'
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1643
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1644
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1645
!FontSettingsApplication methodsFor:'initialization & release'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1646
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1647
postBuildAllFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1648
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1649
    allLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1650
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1651
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1652
postBuildButtonsFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1653
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1654
    buttonsLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1655
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1656
14569
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1657
postBuildHelpLabel:aWidget
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1658
    aWidget level:0.
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1659
    aWidget scrolledView backgroundColor:self window viewBackground.
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1660
    aWidget font:(Label defaultFont).
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1661
!
9de61339e34d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14494
diff changeset
  1662
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1663
postBuildInputFieldFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1664
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1665
    inputFieldLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1666
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1667
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1668
postBuildLabelsFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1669
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1670
    labelLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1671
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1672
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1673
postBuildListsFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1674
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1675
    listsLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1676
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1677
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1678
postBuildMenuesFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1679
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1680
    menuLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1681
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1682
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1683
postBuildOtherFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1684
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1685
    otherLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1686
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1687
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1688
postBuildTextFontLabel:aWidget
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1689
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1690
    textLabel := aWidget.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1691
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1692
14658
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1693
postBuildTooltipFontLabel:aWidget
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1694
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1695
    tooltipLabel := aWidget.
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1696
!
755e0402b60d class: Tools::FontSettingsApplication
Claus Gittinger <cg@exept.de>
parents: 14618
diff changeset
  1697
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1698
postBuildWith:aBuilder 
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1699
"/    self readSettings.
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1700
    self updateAllFontLabels.
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1701
    self modifiedChannel value:false.
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1702
    super postBuildWith:aBuilder
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1703
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1704
    "Modified: / 28-02-2019 / 18:09:24 / Claus Gittinger"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1705
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1706
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1707
!FontSettingsApplication methodsFor:'queries'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1708
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1709
hasUnsavedChanges
18625
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1710
    ((currentUserPrefs fontPreferences ? self defaultFontSpecDictionary) sameContentsAs: self fontSpecDictionary) ifFalse:[
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1711
        ^ true
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1712
    ].
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1713
    (self hasChangedAspectIn:#(linuxFontWorkaround useXftFontsOnly useXFontsOnly) asComparedTo:currentUserPrefs) ifTrue:[
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1714
        ^ true
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1715
    ].
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1716
    ^ false
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1717
860dd8ce3cb5 #FEATURE by cg
Claus Gittinger <cg@exept.de>
parents: 17905
diff changeset
  1718
    "Modified: / 28-02-2019 / 18:20:59 / Claus Gittinger"
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1719
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1720
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1721
hasXftFonts
16094
ea79b6e5a7fc #REFACTORING
Stefan Vogel <sv@exept.de>
parents: 16080
diff changeset
  1722
    ^ self graphicsDevice supportsXftFonts
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1723
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1724
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1725
!FontSettingsApplication class methodsFor:'documentation'!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1726
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1727
version
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1728
    ^ '$Header$'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1729
!
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1730
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1731
version_CVS
15887
933c82d405ca #UI_ENHANCEMENT
Claus Gittinger <cg@exept.de>
parents: 14909
diff changeset
  1732
    ^ '$Header$'
14205
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1733
! !
733f2b55db73 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
  1734