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