|
Class: ViewStyle
Object
|
+--Collection
|
+--Set
|
+--Dictionary
|
+--ResourcePack
|
+--ViewStyle
|
+--UISettings
- Package:
- stx:libview
- Category:
- Views-Support
- Version:
- rev:
1.43
date: 2018/10/15 09:42:10
- user: cg
- file: ViewStyle.st directory: libview
- module: stx stc-classLibrary: libview
- Author:
- Claus Gittinger
instances of this class keep all view-style specific information.
The current viewStyle is kept in Views-classvariable called 'StyleSheet'
and is instantiated with 'View defaultStyle:aStyleSymbol', which reads
a stylesheet from a file '<aStyleSymbol>.style' (usually in the 'resources'
directory.
View
[Configuration & Customization]
constants
-
adwaita
-
-
macosx_yosemite
-
-
msWindows8
-
-
msWindowsVista
-
-
msWindowsXP
-
-
normal
-
instance creation
-
fromFile: aFileNameArg
-
get the preferences definitions from a file
usage example(s):
ViewStyle fromFile:'motif'
ViewStyle fromFile:'motif.style'
ViewStyle fromFile:'normal.style'
ViewStyle fromFile:'iris.style'
ViewStyle fromFile:'iris.style' asFilename
|
accessing
-
at: aKey
-
(comment from inherited method)
translate a string
-
at: aKey default: default
-
translate a string; if not present, return default.
Here, two keys are tried, iff the key is of the form 'foo.bar',
'fooBar' is also tried.
This has been added for a smooth migration towards names with a form of
'classname.itemKey' in the stylesheets.
-
colorAt: aKey
-
retrieve a color resource - also acquire a device color
to avoid repeated color allocations later
-
colorAt: aKey default: default
-
retrieve a color resource - also acquire a device color
to avoid repeated color allocations later
-
deviceResourceAt: aKey default: default
-
retrieve a resource - also acquire a device version
for the default display, to avoid repeated allocations later
-
doesNotUnderstand: aMessage
-
-
fontAt: aKey
-
retrieve a font resource - also acquire a device font
to avoid repeated font allocations later
-
fontAt: aKey default: default
-
retrieve a font resource - also acquire a device font
to avoid repeated font allocations later
-
is3D
-
-
name
-
-
viewGrey
-
accessing-internals
-
superPack: anotherResourcePack
-
error handling
-
nonexistingFileRead
-
here, a non-existing stylesheet is treated as an error
queries
-
isWindowsStyle
-
answer true if this is a MS-Windows style.
XXX Currently we simply check the name
-
isWindowsVistaStyle
-
Modified (format): / 19-11-2016 / 15:49:48 / cg
-
isWindowsXPStyle
-
answer true if this is a MS-Windows-XP (or later) style.
XXX Currently we simply check the name
special
-
newDerivedStyle
-
create and return a new style, which inherits from
the receiver, but possibly overrides individual entries.
This may be useful to give a single button some different
look (in the future - read the comment in SimpleView>>viewStyle:)
|