LicenceBox.st
author Claus Gittinger <cg@exept.de>
Fri, 15 Jun 2018 10:54:35 +0200
changeset 5816 7876c07931a7
parent 4661 f4b3a9ed36a7
child 5395 f34b4fa64217
child 5924 ddd06fc11405
permissions -rw-r--r--
#DOCUMENTATION by cg class: ComboListView class comment/format in: #documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     1
"
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     2
 COPYRIGHT (c) 1996 by eXept Software AG
250
645390ad8e95 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
     3
	      All Rights Reserved
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     4
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     5
 This software is furnished under a license and may be used
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     6
 only in accordance with the terms of that license and with the
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     8
 be provided or otherwise made available to, or used by, any
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
     9
 other person.  No title to or ownership of the software is
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
    10
 hereby transferred.
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
    11
"
2799
e57e0c9c28bd *** empty log message ***
penk
parents: 2798
diff changeset
    12
"{ Package: 'stx:libwidg2' }"
2795
889c4e545810 raising again (wrong focus in dialogs)
Claus Gittinger <cg@exept.de>
parents: 2054
diff changeset
    13
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    14
DialogBox subclass:#LicenceBox
1365
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    15
	instanceVariableNames:'accepted destroySemaphore fileName textView'
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    16
	classVariableNames:'LicenceRejectSignal'
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    18
	category:'Views-DialogBoxes'
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    19
!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    20
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
    21
!LicenceBox class methodsFor:'documentation'!
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    22
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    23
copyright
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    24
"
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    25
 COPYRIGHT (c) 1996 by eXept Software AG
250
645390ad8e95 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    26
	      All Rights Reserved
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    27
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    28
 This software is furnished under a license and may be used
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    29
 only in accordance with the terms of that license and with the
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    31
 be provided or otherwise made available to, or used by, any
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    32
 other person.  No title to or ownership of the software is
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    33
 hereby transferred.
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    34
"
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    35
!
243
82637ad60d26 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 241
diff changeset
    36
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    37
documentation
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    38
"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    39
    LicenceBox shows a licence text when opened, an returns true,
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    40
    if the licence has been accepted, false otherwise.
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    41
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    42
    [author:]
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    43
	Stefan Vogel
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    44
1364
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    45
    [start with:]
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    46
	LicenceBox open
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
    47
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    48
    [see also:]
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    49
	AboutBox
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    50
"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    51
!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    52
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    53
examples
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    54
"
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    55
						[exBegin]
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    56
    LicenceRejectSignal handle:[:ex|
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    57
	Transcript showCR:'Licence rejected'.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    58
    ] do:[
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    59
	LicenceBox open.
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    60
	Transcript showCR:'Licence accepted'.
2796
cb060f544b24 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
    61
    ]
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    62
						[exEnd]
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    63
"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    64
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    65
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
    66
!LicenceBox class methodsFor:'initialization'!
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    67
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    68
initialize
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    69
    LicenceRejectSignal isNil ifTrue:[
244
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    70
	LicenceRejectSignal := ErrorSignal newSignalMayProceed:true.
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    71
	LicenceRejectSignal nameClass:self message:#licenceRejectSignal.
646c3da97dd0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 243
diff changeset
    72
	LicenceRejectSignal notifierString:'licence rejected by user'.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    73
    ].
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    74
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    75
    "
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    76
     self initialize
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    77
    "
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    78
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    79
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
    80
!LicenceBox class methodsFor:'instance creation'!
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    81
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    82
open
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    83
    "open myself modal and return true if accepted, false otherwise"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    84
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    85
    ^ super open accepted.
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    86
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    87
    "
250
645390ad8e95 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
    88
     LicenceBox open
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    89
    "
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    90
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
    91
    "Modified: 9.9.1996 / 17:52:48 / stefan"
1365
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    92
!
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    93
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    94
openOnFile:aFileName
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    95
    "like open, but show the HTML-text found in aFileName.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    96
     Can be used for end-user applications which want to display
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    97
     there own licence text."
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    98
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
    99
    |box f fn text dir|
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   100
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   101
    box := self new.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   102
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   103
    (f := aFileName asFilename) exists ifTrue:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   104
	text := f contents.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   105
	dir := f directoryName.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   106
    ] ifFalse:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   107
	fn := Smalltalk getSystemFileName:aFileName.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   108
	fn notNil ifTrue:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   109
	    f := fn asFilename.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   110
	    text := f contents.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   111
	    dir := f directoryName.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   112
	]
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   113
    ].
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   114
    text notNil ifTrue:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   115
	box licenceText:text.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   116
	box topDirectory:dir.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   117
    ].
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   118
    box open
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   119
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   120
    "
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   121
     LicenceBox openOnFile:'doc/online/english/TOP.html'
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   122
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   123
     (LicenceBox licenceRejectSignal catch:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   124
	LicenceBox openOnFile:'doc/online/english/TOP.html'
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   125
     ]) ifTrue:[
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   126
	self information:'rejected'
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   127
      ]
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   128
    "
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   129
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   130
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
   131
!LicenceBox class methodsFor:'Signal constants'!
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   132
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   133
licenceRejectSignal
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   134
    "licence has been rejected by user"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   135
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   136
    ^ LicenceRejectSignal
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   137
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   138
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   139
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   140
!LicenceBox methodsFor:'accessing'!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   141
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   142
accepted
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   143
    "return accepted"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   144
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   145
    ^ accepted
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   146
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   147
    "Created: 6.9.1996 / 13:24:44 / stefan"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   148
!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   149
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   150
accepted:something
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   151
    "set accepted"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   152
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   153
    accepted := something.
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   154
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   155
    "Created: 6.9.1996 / 13:24:44 / stefan"
1365
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   156
!
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   157
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   158
licenceText:someHTMLText
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   159
    "set the text which is shown in the box"
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   160
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   161
    textView setText:someHTMLText.
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   162
!
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   163
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   164
topDirectory:aDirectoryName
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   165
    "set the topDirectory, which is required for hyperlinks
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   166
     to work (in the html text)"
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   167
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   168
    textView setTopDirectoryName:aDirectoryName.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   169
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   170
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   171
!LicenceBox methodsFor:'destroying'!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   172
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   173
terminate
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   174
    "this is the close from a windowmanager
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   175
     (only if UseTransientViews == true).
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   176
     Redefined, since ModalBox keeps the View alive (only hidden)"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   177
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   178
    self destroy.
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   179
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   180
    "Created: 9.9.1996 / 15:15:31 / stefan"
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   181
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   182
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   183
!LicenceBox methodsFor:'initialization'!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   184
2796
cb060f544b24 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
   185
initialize
1365
138d2a797a62 allow for another file to be shown (for end-user apps)
Claus Gittinger <cg@exept.de>
parents: 1364
diff changeset
   186
    |nLines displayHeight|
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   187
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   188
    super initialize.
1239
ae99d201a28d smaller lic-box on small screens
Claus Gittinger <cg@exept.de>
parents: 875
diff changeset
   189
4507
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   190
    displayHeight := self graphicsDevice usableHeight.
1364
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   191
    nLines := displayHeight // 25.
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   192
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   193
"/    (displayHeight < 800) ifTrue:[
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   194
"/        (displayHeight < 500) ifTrue:[
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   195
"/            nLines := 20
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   196
"/        ] ifFalse:[
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   197
"/            nLines := 30
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   198
"/        ]
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   199
"/    ] ifFalse:[
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   200
"/        nLines := 40
61457de0e18b compute the height from the displays height
Claus Gittinger <cg@exept.de>
parents: 1310
diff changeset
   201
"/    ].
1239
ae99d201a28d smaller lic-box on small screens
Claus Gittinger <cg@exept.de>
parents: 875
diff changeset
   202
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   203
    accepted := false.
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   204
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   205
    (self addTextLabel:(resources string:'Please read the licence terms:')) adjust:#left.
2796
cb060f544b24 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
   206
    textView := self addTextBoxOn:nil
3860
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   207
                        class:HTMLDocumentView
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   208
                        withNumberOfLines:nLines
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   209
                        hScrollable:true
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   210
                        vScrollable:true.
250
645390ad8e95 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
   211
1239
ae99d201a28d smaller lic-box on small screens
Claus Gittinger <cg@exept.de>
parents: 875
diff changeset
   212
    self width:(textView preferredExtentForLines:nLines cols:70) x.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   213
    textView setText:(self licenceText).
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   214
    textView setTopDirectoryName:(self topDirectory).
2054
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   215
    self addAbortButtonLabelled:(resources string:'Reject licence terms').
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   216
    self addOkButtonLabelled:(resources string:'Accept licence terms').
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   217
    self abortAction:[self destroy. accepted := false. LicenceRejectSignal raise].
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   218
    self okAction:[self destroy. accepted := true].
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   219
    self stickAtBottomWithVariableHeight:textView.
3396
1f85adcd01fd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3395
diff changeset
   220
    self label:'ST/X Licence Dialog'.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   221
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   222
    "Modified: 9.9.1996 / 17:52:13 / stefan"
2798
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   223
!
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   224
2800
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   225
mapped
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   226
    super mapped.
2801
014471b1e14b *** empty log message ***
penk
parents: 2800
diff changeset
   227
4661
f4b3a9ed36a7 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 4507
diff changeset
   228
    self graphicsDevice isWindowsPlatform ifTrue:[
4507
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   229
        "/ kludge
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   230
        [
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   231
            Delay waitForSeconds:0.5.
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   232
            self raise.
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   233
            self activate.
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   234
            self setForegroundWindow.
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   235
            self activate.
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   236
        ] fork.
2801
014471b1e14b *** empty log message ***
penk
parents: 2800
diff changeset
   237
    ].
2798
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   238
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   239
    "
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   240
     self open
8d483cff1ca3 *** empty log message ***
penk
parents: 2796
diff changeset
   241
    "
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   242
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   243
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   244
!LicenceBox methodsFor:'private'!
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   245
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   246
licenceFile
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   247
    "get filename of licence file"
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   248
1626
614d6e8db98d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 1365
diff changeset
   249
    |relName|
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   250
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   251
    fileName isNil ifTrue:[
2054
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   252
	fileName := relName := resources at:'LICENCEFILE' default:nil.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   253
	fileName isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   254
	    Smalltalk releaseIdentification = 'ST/X_free_demo_vsn' ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   255
		relName := 'doc/online/english/LICENCE_DEMO_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   256
	    ] ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   257
		relName := 'doc/online/english/LICENCE_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   258
	    ].
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   259
	    fileName := relName.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   260
	].
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
   261
2054
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   262
	fileName asFilename exists ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   263
	    fileName := Smalltalk getSystemFileName:relName.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   264
	    fileName isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   265
		fileName := Smalltalk getSystemFileName:('../' , relName).
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   266
		fileName isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   267
		    fileName := Smalltalk getSystemFileName:('../../' , relName).
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   268
		    fileName isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   269
			fileName := Smalltalk getSystemFileName:'doc/online/german/LICENCE_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   270
			fileName isNil ifTrue:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   271
			    fileName := '../../doc/online/german/LICENCE_STX.html'.
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   272
			]
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   273
		    ]
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   274
		].
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   275
	    ].
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   276
	].
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   277
	fileName asFilename exists ifFalse:[
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   278
	    fileName := nil
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   279
	].
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   280
    ].
2796
cb060f544b24 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
   281
    ^ fileName
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   282
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   283
    "
2796
cb060f544b24 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2795
diff changeset
   284
     LicenceBox new licenceFile
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   285
    "
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
   286
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
   287
    "Modified: / 23.4.1998 / 11:40:25 / cg"
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   288
!
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   289
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   290
licenceText
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   291
    "get licence text"
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   292
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   293
    |file|
241
687df61a0e84 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 240
diff changeset
   294
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   295
    file := self licenceFile.
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   296
    file isNil ifTrue:[
2054
Claus Gittinger <cg@exept.de>
parents: 1627
diff changeset
   297
	^ 'oops - you are not supposed to remove the LICENSE file !!
1627
7bfaaad36045 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1626
diff changeset
   298
7bfaaad36045 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1626
diff changeset
   299
- or the documentation files have not been installed correctly;
7bfaaad36045 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 1626
diff changeset
   300
- or your systemPath settings are not correct.'
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   301
    ].
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   302
    ^ file asFilename contents.
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   303
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   304
    "
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   305
     LicenceBox new licenceText
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   306
    "
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   307
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   308
!
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   309
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   310
topDirectory
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   311
    "get name of top directory"
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   312
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   313
    |file|
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   314
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   315
    file := self licenceFile.
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   316
    file isNil ifTrue:[
250
645390ad8e95 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 249
diff changeset
   317
	^ ''
249
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   318
    ].
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   319
    ^ file asFilename directoryName.
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   320
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   321
    "
6698113011ea Set top directory for relative HREFs.
Stefan Vogel <sv@exept.de>
parents: 245
diff changeset
   322
     LicenceBox new topDirectory
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   323
    "
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   324
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   325
! !
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   326
2800
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   327
!LicenceBox methodsFor:'queries'!
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   328
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   329
windowStyle
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   330
    ^ #normal.
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   331
    ^ #dialog.
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   332
    ^ super windowStyle.
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   333
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   334
    "
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   335
     self new windowStyle
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   336
    "
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   337
! !
0a970532a682 *** empty log message ***
penk
parents: 2799
diff changeset
   338
875
48d482f90483 care for DEMO-licence text
Claus Gittinger <cg@exept.de>
parents: 527
diff changeset
   339
!LicenceBox class methodsFor:'documentation'!
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   340
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   341
version
4661
f4b3a9ed36a7 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 4507
diff changeset
   342
    ^ '$Header: /cvs/stx/stx/libwidg2/LicenceBox.st,v 1.30 2014-09-25 19:43:38 stefan Exp $'
3860
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   343
!
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   344
2274e8f6c28e changed: #initialize
Claus Gittinger <cg@exept.de>
parents: 3396
diff changeset
   345
version_CVS
4661
f4b3a9ed36a7 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 4507
diff changeset
   346
    ^ '$Header: /cvs/stx/stx/libwidg2/LicenceBox.st,v 1.30 2014-09-25 19:43:38 stefan Exp $'
245
7b986d50e79d checkin from browser
Claus Gittinger <cg@exept.de>
parents: 244
diff changeset
   347
! !
2795
889c4e545810 raising again (wrong focus in dialogs)
Claus Gittinger <cg@exept.de>
parents: 2054
diff changeset
   348
4507
3235f9b064d5 class: LicenceBox
Stefan Vogel <sv@exept.de>
parents: 3860
diff changeset
   349
240
f24a0853e754 New class LicenceBox.
Stefan Vogel <sv@exept.de>
parents:
diff changeset
   350
LicenceBox initialize!