|
|
Class: ViewStyle
Object
|
+--Collection
|
+--Set
|
+--Dictionary
|
+--ResourcePack
|
+--ViewStyle
- Package:
- stx:libview
- Category:
- Views-Support
- Version:
- rev:
1.35
date: 2009/11/17 10:01:40
- 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]
instance creation
-
fromFile: aFileNameArg
-
get the preferences definitions from a file
accessing
-
at: aKey
-
-
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 aquire a device color
to avoid repeated color allocations later
-
colorAt: aKey default: default
-
retrieve a color resource - also aquire a device color
to avoid repeated color allocations later
-
deviceResourceAt: aKey default: default
-
retrieve a resource - also aquire a device version
for the default display, to avoid repeated allocations later
-
doesNotUnderstand: aMessage
-
-
fontAt: aKey
-
retrieve a font resource - also aquire a device font
to avoid repeated font allocations later
-
fontAt: aKey default: default
-
retrieve a font resource - also aquire a device font
to avoid repeated font allocations later
-
is3D
-
-
name
-
-
viewGrey
-
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
-
answer true if this is a MS-Windows-Vista (or later) style.
XXX Currently we simply check the name
-
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:)
|