eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'ViewStyle':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ViewStyle


Inheritance:

   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

Description:


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.


Related information:

    View
    [Configuration & Customization]

Class protocol:

constants
o  adwaita

o  macosx_yosemite

o  msWindows8

o  msWindowsVista

o  msWindowsXP

o  normal

instance creation
o  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


Instance protocol:

accessing
o  at: aKey
(comment from inherited method)
translate a string

o  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.

o  colorAt: aKey
retrieve a color resource - also acquire a device color
to avoid repeated color allocations later

o  colorAt: aKey default: default
retrieve a color resource - also acquire a device color
to avoid repeated color allocations later

o  deviceResourceAt: aKey default: default
retrieve a resource - also acquire a device version
for the default display, to avoid repeated allocations later

o  doesNotUnderstand: aMessage

o  fontAt: aKey
retrieve a font resource - also acquire a device font
to avoid repeated font allocations later

o  fontAt: aKey default: default
retrieve a font resource - also acquire a device font
to avoid repeated font allocations later

o  is3D

o  name

o  viewGrey

accessing-internals
o  superPack: anotherResourcePack

error handling
o  nonexistingFileRead
here, a non-existing stylesheet is treated as an error

queries
o  isWindowsStyle
answer true if this is a MS-Windows style.
XXX Currently we simply check the name

o  isWindowsVistaStyle
Modified (format): / 19-11-2016 / 15:49:48 / cg

o  isWindowsXPStyle
answer true if this is a MS-Windows-XP (or later) style.
XXX Currently we simply check the name

special
o  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:)



ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 06 Dec 2019 08:30:17 GMT