ScreenLock.st
author sr
Thu, 26 Nov 2015 17:20:45 +0100
changeset 3527 aa939bace1e9
parent 1966 b82e1cebf7af
child 3847 ac2486ce7d6f
child 3855 1db7742d33ad
permissions -rw-r--r--
#OTHER class: ApplicationModel changed: #enqueueMessage:for:arguments:
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
     1
"{ Package: 'stx:libview2' }"
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     2
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     3
EventListener subclass:#ScreenLock
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     4
	instanceVariableNames:'workstation lastInactiveTime lockAfterSeconds lockChannel
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
     5
		lockChannelOut processor lockedViews hiddenViews'
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     6
	classVariableNames:''
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     7
	poolDictionaries:''
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     8
	category:'Interface-Support'
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
     9
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    10
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    11
!ScreenLock class methodsFor:'documentation'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    12
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    13
documentation
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    14
"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    15
    documentation to be added.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
    [author:]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	Stefan Vogel (stefan@nilpferd)
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
    [see also:]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    21
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
    [instance variables:]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    23
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    24
    [class variables:]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    25
"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    26
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    27
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    28
examples
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    29
"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    30
                                                                [exBegin]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    31
    |screenLock|
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    32
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    33
    screenLock := ScreenLock forDevice:Screen current.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    34
    screenLock lock.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    35
    Delay waitForSeconds:3.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    36
    screenLock unlock.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
    screenLock unlisten.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
                                                                [exEnd]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
                                                                [exBegin]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    41
    |screenLock|
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    42
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    43
    screenLock := ScreenLock forDevice:Screen current.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    44
    Delay waitForSeconds:1.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    45
    screenLock checkTime.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    46
    Delay waitForSeconds:12.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    47
    screenLock checkTime.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    48
    Delay waitForSeconds:3.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    49
    screenLock unlock.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
    screenLock unlisten.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
                                                                [exEnd]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
                                                                [exBegin]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
    |screenLock channel running|
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    55
    screenLock := ScreenLock forDevice:Screen current.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
    screenLock lockAfterSeconds:4.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    57
    [
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
        channel := false asValue.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    59
        channel onChangeEvaluate:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    60
            channel value ifTrue:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    61
                self information:'Application is locked\\Hit ok to unlock' withCRs.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    62
                channel value:false.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
            ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
        ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
        screenLock lockChannel:channel.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    66
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
        [
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    68
            Delay waitForSeconds:2.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    69
            screenLock checkTime.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    70
        ] loop.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    71
    ] valueNowOrOnUnwindDo:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    72
        screenLock unlisten.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
    ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    74
                                                                [exEnd]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    75
"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    76
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    77
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    78
!ScreenLock class methodsFor:'instance creation'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    79
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    80
forDevice:aWorkstation
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    81
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    82
    ^ self new initializeForDevice:aWorkstation
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    83
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    84
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    85
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    86
!ScreenLock methodsFor:'accessing'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    87
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    88
lockAfterSeconds
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    89
    "return the value of the instance variable 'lockAfterSeconds' (automatically generated)"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    90
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
    91
    ^ lockAfterSeconds
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
    92
!
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    93
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    94
lockAfterSeconds:something
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    95
    "set the value of the instance variable 'lockAfterSeconds' (automatically generated)"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    96
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
    97
    lockAfterSeconds := something.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
    98
!
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    99
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   100
lockChannel
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   101
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   102
    lockChannel isNil ifTrue:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   103
        self lockChannel:false asValue.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   104
    ].
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   105
    ^ lockChannel
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   106
!
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   107
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   108
lockChannel:something
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   109
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   110
    lockChannel notNil ifTrue:[ 
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   111
        lockChannel removeDependent:self.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   112
    ].
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   113
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   114
    lockChannel := something.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   115
    lockChannel addDependent:self.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   116
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   117
1415
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   118
lockChannelOut
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   119
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   120
    lockChannelOut isNil ifTrue:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   121
        lockChannelOut := false asValue.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   122
    ].
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   123
    ^ lockChannelOut
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   124
!
1415
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   125
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   126
lockChannelOut:something
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   127
    "set the value of the instance variable 'lockChannelOut' (automatically generated)"
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   128
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   129
    lockChannelOut := something.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   130
!
1415
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   131
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   132
processor
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   133
    "return the value of the instance variable 'processor' (automatically generated)"
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   134
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   135
    ^ processor
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   136
!
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   137
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   138
processor:something
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   139
    "set the value of the instance variable 'processor' (automatically generated)"
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   140
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   141
    processor := something.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   142
!
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   143
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   144
workstation
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   145
    "return the value of the instance variable 'workstation' (automatically generated)"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   146
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   147
    ^ workstation
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   148
!
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   149
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   150
workstation:something
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   151
    "set the value of the instance variable 'workstation' (automatically generated)"
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   152
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   153
    workstation := something.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   154
! !
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   155
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   156
!ScreenLock methodsFor:'change & update'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   157
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   158
update:aspect with:param from:anObject
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   159
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   160
    |lock|
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   161
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   162
    anObject == lockChannel ifTrue:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   163
        aspect == #value ifTrue:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   164
            "/ lockChannel is a value holder
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   165
            lock := lockChannel value.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   166
        ] ifFalse:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   167
            "/ lockChannel is a block or something else
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   168
            lock := param.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   169
        ].
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   170
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   171
        "lock or unlock the screen
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   172
         If a processor is defined, let the processor perform the unlock,
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   173
         so that posssible Display errors do not affect the sender"
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   174
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   175
        lock == true ifTrue:[
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   176
            processor isNil ifTrue:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   177
                self lockScreen.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   178
            ] ifFalse:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   179
                processor enqueueMessage:#lockScreen for:self arguments:#().
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   180
            ].
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   181
        ] ifFalse:[
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   182
            processor isNil ifTrue:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   183
                self unlockScreen.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   184
            ] ifFalse:[
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   185
                processor enqueueMessage:#unlockScreen for:self arguments:#().
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   186
            ].
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   187
        ]
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   188
    ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   189
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   190
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   191
!ScreenLock methodsFor:'events'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   192
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   193
buttonMotion:state x:x y:y view:aView
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   194
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   195
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   196
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   197
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   198
buttonMultiPress:button x:x y:y view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   199
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   200
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   201
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   202
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   203
buttonPress:button x:x y:y view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   204
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   205
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   206
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   207
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   208
buttonRelease:button x:x y:y view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   209
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   210
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   211
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   212
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   213
keyPress:key x:x y:y view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   214
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   215
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   216
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   217
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   218
keyRelease:key x:x y:y view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   219
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   220
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   221
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   222
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   223
mouseWheelMotion:state x:x y:y amount:amount deltaTime:dTime view:aView
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   224
    ^ self gotEventForView:aView.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   225
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   226
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   227
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   228
!ScreenLock methodsFor:'lock interface'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   229
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   230
checkTime
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   231
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   232
    |now|
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   233
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   234
    lockedViews isNil ifTrue:[
1966
b82e1cebf7af Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents: 1462
diff changeset
   235
        now := Timestamp now.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   236
        lastInactiveTime notNil ifTrue:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   237
            (lastInactiveTime addSeconds:lockAfterSeconds value) < now ifTrue:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   238
                self lock
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   239
            ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   240
        ] ifFalse:[
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   241
            lastInactiveTime := now.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   242
        ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   243
    ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   244
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   245
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   246
lock
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   247
   "trigger locking of screen"
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   248
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   249
    self lockChannel value:true.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   250
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   251
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   252
unlisten
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   253
    "do not listen for events any longer.
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   254
     This must be called when a screen lock is detached from a
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   255
     screen."
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   256
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   257
    workstation removeEventListener:self
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   258
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   259
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   260
unlock
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   261
   "trigger unlocking of screen"
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   262
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   263
    self lockChannel value:false.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   264
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   265
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   266
!ScreenLock methodsFor:'private'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   267
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   268
gotEventForView:v
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   269
    "got an event.
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   270
     Reset the inactive timer.
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   271
     If locked, eat all user events (for security)"
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   272
1376
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   273
    lockedViews isNil ifTrue:[
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   274
        lastInactiveTime := nil.        
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   275
        ^ false.
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   276
    ].
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   277
    ^ lockedViews includes:v.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   278
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   279
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   280
initializeForDevice:aWorkstation
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   281
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   282
     lockAfterSeconds := 10.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   283
     workstation := aWorkstation.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   284
     workstation addEventListener:self.
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   285
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   286
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   287
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   288
lockScreen
1416
79f3aee2d64c Add processor (an ApplicationModel), which processes the lock/unlock
Stefan Vogel <sv@exept.de>
parents: 1415
diff changeset
   289
    "lock the screen"
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   290
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   291
    lockedViews := workstation allViews.
1376
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   292
    hiddenViews := lockedViews select:[:v|
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   293
        "close popupViews, they will leave the modal loop when 
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   294
         they are unmapped.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   295
         This is a kludge, but invisible popUpViews are 
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   296
         currently not supported"
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   297
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   298
        v isPopUpView ifTrue:[
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   299
            v hide.
1376
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   300
        ].
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   301
        v shown and:[v isTopView].
1376
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   302
    ].
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   303
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   304
    hiddenViews do:[:v|
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   305
        v beInvisible.
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   306
    ].
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   307
1415
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   308
    lockChannelOut notNil ifTrue:[      
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   309
        lockChannelOut value:true.
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   310
    ].
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   311
!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   312
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   313
unlockScreen
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   314
1376
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   315
    lastInactiveTime := nil.
6294517bece4 Keep date of start of inactivity.
Stefan Vogel <sv@exept.de>
parents: 1374
diff changeset
   316
    hiddenViews do:[:v|
1462
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   317
        "don't try to restore views that have been closed while
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   318
         being invisible"
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   319
        v id notNil ifTrue:[
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   320
            v beVisible.
b7ffa1109142 Do not restore views that have been closed whlie being invisible.
Stefan Vogel <sv@exept.de>
parents: 1416
diff changeset
   321
        ].
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   322
    ].
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   323
    hiddenViews := lockedViews := nil.
1415
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   324
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   325
    lockChannelOut notNil ifTrue:[      
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   326
        lockChannelOut value:false.
fd8738cc4733 Use lockChannelOut to avoid races when locking/unlocking
Stefan Vogel <sv@exept.de>
parents: 1376
diff changeset
   327
    ].
1374
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   328
! !
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   329
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   330
!ScreenLock methodsFor:'queries'!
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   331
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   332
isLocked
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   333
881f1ba7ca1e Eat all user generated events if locked.
Stefan Vogel <sv@exept.de>
parents: 1371
diff changeset
   334
    ^ lockedViews notNil
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   335
! !
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   336
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   337
!ScreenLock class methodsFor:'documentation'!
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   338
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   339
version
1966
b82e1cebf7af Rename AbsoluteTime to Timestamp
Stefan Vogel <sv@exept.de>
parents: 1462
diff changeset
   340
    ^ '$Header: /cvs/stx/stx/libview2/ScreenLock.st,v 1.7 2004-03-20 19:20:31 stefan Exp $'
1371
a022e5804f07 initial checkin
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   341
! !