SelectionBrowser.st
author Claus Gittinger <cg@exept.de>
Tue, 23 Mar 1999 11:33:40 +0100
changeset 1077 46793bf50415
parent 773 de5c99bd3078
child 1428 8243829fd6d3
permissions -rw-r--r--
two more common layouts added.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
     1
"
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
     2
 COPYRIGHT (c) 1997-1998 by eXept Software AG
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
     3
              All Rights Reserved
246e36541b1b intitial checkin
tz
parents:
diff changeset
     4
246e36541b1b intitial checkin
tz
parents:
diff changeset
     5
 This software is furnished under a license and may be used
246e36541b1b intitial checkin
tz
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
246e36541b1b intitial checkin
tz
parents:
diff changeset
     7
 inclusion of the above copyright notice. This software may not
246e36541b1b intitial checkin
tz
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
246e36541b1b intitial checkin
tz
parents:
diff changeset
     9
 other person. No title to or ownership of the software is
246e36541b1b intitial checkin
tz
parents:
diff changeset
    10
 hereby transferred.
246e36541b1b intitial checkin
tz
parents:
diff changeset
    11
"
246e36541b1b intitial checkin
tz
parents:
diff changeset
    12
246e36541b1b intitial checkin
tz
parents:
diff changeset
    13
246e36541b1b intitial checkin
tz
parents:
diff changeset
    14
246e36541b1b intitial checkin
tz
parents:
diff changeset
    15
SimpleDialog subclass:#SelectionBrowser
246e36541b1b intitial checkin
tz
parents:
diff changeset
    16
	instanceVariableNames:'title'
246e36541b1b intitial checkin
tz
parents:
diff changeset
    17
	classVariableNames:''
246e36541b1b intitial checkin
tz
parents:
diff changeset
    18
	poolDictionaries:''
619
36c9d07f7dc3 class category changed
tz
parents: 504
diff changeset
    19
	category:'Interface-Dialogs'
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    20
!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    21
246e36541b1b intitial checkin
tz
parents:
diff changeset
    22
SelectionBrowser class instanceVariableNames:'lastSelection'
246e36541b1b intitial checkin
tz
parents:
diff changeset
    23
246e36541b1b intitial checkin
tz
parents:
diff changeset
    24
"
246e36541b1b intitial checkin
tz
parents:
diff changeset
    25
 The following class instance variables are inherited by this class:
246e36541b1b intitial checkin
tz
parents:
diff changeset
    26
246e36541b1b intitial checkin
tz
parents:
diff changeset
    27
	SimpleDialog - 
246e36541b1b intitial checkin
tz
parents:
diff changeset
    28
	ApplicationModel - ClassResources
246e36541b1b intitial checkin
tz
parents:
diff changeset
    29
	Model - 
246e36541b1b intitial checkin
tz
parents:
diff changeset
    30
	Object - 
246e36541b1b intitial checkin
tz
parents:
diff changeset
    31
"
246e36541b1b intitial checkin
tz
parents:
diff changeset
    32
!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    33
246e36541b1b intitial checkin
tz
parents:
diff changeset
    34
!SelectionBrowser class methodsFor:'documentation'!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    35
246e36541b1b intitial checkin
tz
parents:
diff changeset
    36
copyright
246e36541b1b intitial checkin
tz
parents:
diff changeset
    37
"
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    38
 COPYRIGHT (c) 1997-1998 by eXept Software AG
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    39
              All Rights Reserved
246e36541b1b intitial checkin
tz
parents:
diff changeset
    40
246e36541b1b intitial checkin
tz
parents:
diff changeset
    41
 This software is furnished under a license and may be used
246e36541b1b intitial checkin
tz
parents:
diff changeset
    42
 only in accordance with the terms of that license and with the
246e36541b1b intitial checkin
tz
parents:
diff changeset
    43
 inclusion of the above copyright notice. This software may not
246e36541b1b intitial checkin
tz
parents:
diff changeset
    44
 be provided or otherwise made available to, or used by, any
246e36541b1b intitial checkin
tz
parents:
diff changeset
    45
 other person. No title to or ownership of the software is
246e36541b1b intitial checkin
tz
parents:
diff changeset
    46
 hereby transferred.
246e36541b1b intitial checkin
tz
parents:
diff changeset
    47
"
246e36541b1b intitial checkin
tz
parents:
diff changeset
    48
246e36541b1b intitial checkin
tz
parents:
diff changeset
    49
246e36541b1b intitial checkin
tz
parents:
diff changeset
    50
!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    51
246e36541b1b intitial checkin
tz
parents:
diff changeset
    52
documentation
246e36541b1b intitial checkin
tz
parents:
diff changeset
    53
"
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    54
    The abstract superclass for the ResourceSelectionBrowser
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    55
    and the FileSelectionBrowser.
504
1ff52096d1d3 copyright changed
tz
parents: 402
diff changeset
    56
1ff52096d1d3 copyright changed
tz
parents: 402
diff changeset
    57
    [author:]
1ff52096d1d3 copyright changed
tz
parents: 402
diff changeset
    58
       Thomas Zwick
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    59
"
246e36541b1b intitial checkin
tz
parents:
diff changeset
    60
! !
246e36541b1b intitial checkin
tz
parents:
diff changeset
    61
246e36541b1b intitial checkin
tz
parents:
diff changeset
    62
!SelectionBrowser class methodsFor:'accessing'!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    63
246e36541b1b intitial checkin
tz
parents:
diff changeset
    64
lastSelection
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    65
    "returns the last selection; file path or resource class"
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    66
246e36541b1b intitial checkin
tz
parents:
diff changeset
    67
    ^lastSelection
246e36541b1b intitial checkin
tz
parents:
diff changeset
    68
!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    69
246e36541b1b intitial checkin
tz
parents:
diff changeset
    70
lastSelection: aString
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    71
    "sets the last selection; file path or resource class"
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    72
246e36541b1b intitial checkin
tz
parents:
diff changeset
    73
    lastSelection := aString
246e36541b1b intitial checkin
tz
parents:
diff changeset
    74
! !
246e36541b1b intitial checkin
tz
parents:
diff changeset
    75
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    76
!SelectionBrowser class methodsFor:'queries'!
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    77
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    78
isVisualStartable
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    79
    "returns whether this application class can be started via #open"
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    80
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    81
    self == SelectionBrowser ifTrue:[^false].
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    82
    ^super isVisualStartable
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    83
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    84
! !
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    85
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    86
!SelectionBrowser methodsFor:'accessing'!
246e36541b1b intitial checkin
tz
parents:
diff changeset
    87
246e36541b1b intitial checkin
tz
parents:
diff changeset
    88
title: aString
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
    89
    "sets the title"
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
    90
246e36541b1b intitial checkin
tz
parents:
diff changeset
    91
    title := aString
246e36541b1b intitial checkin
tz
parents:
diff changeset
    92
246e36541b1b intitial checkin
tz
parents:
diff changeset
    93
! !
246e36541b1b intitial checkin
tz
parents:
diff changeset
    94
773
tz
parents: 772
diff changeset
    95
!SelectionBrowser methodsFor:'help'!
tz
parents: 772
diff changeset
    96
tz
parents: 772
diff changeset
    97
openHTMLDocument: aHTMLFilename
tz
parents: 772
diff changeset
    98
    "open a HTMLDocumentView on aHTMLFilename"
tz
parents: 772
diff changeset
    99
tz
parents: 772
diff changeset
   100
    HTMLDocumentView openFullOnDocumentationFile: aHTMLFilename
tz
parents: 772
diff changeset
   101
! !
tz
parents: 772
diff changeset
   102
647
4a16c0a3be56 checkin from browser
tz
parents: 631
diff changeset
   103
!SelectionBrowser methodsFor:'startup / release'!
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
   104
246e36541b1b intitial checkin
tz
parents:
diff changeset
   105
postBuildWith:aBuilder
772
6cf444ab3cf5 revised
tz
parents: 647
diff changeset
   106
    "sets the title (can be defined)"
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
   107
631
52824496093d *** empty log message ***
tz
parents: 619
diff changeset
   108
    builder window label: title ? builder window label.
402
246e36541b1b intitial checkin
tz
parents:
diff changeset
   109
246e36541b1b intitial checkin
tz
parents:
diff changeset
   110
    ^super postBuildWith:aBuilder
246e36541b1b intitial checkin
tz
parents:
diff changeset
   111
246e36541b1b intitial checkin
tz
parents:
diff changeset
   112
! !
246e36541b1b intitial checkin
tz
parents:
diff changeset
   113
246e36541b1b intitial checkin
tz
parents:
diff changeset
   114
!SelectionBrowser class methodsFor:'documentation'!
246e36541b1b intitial checkin
tz
parents:
diff changeset
   115
246e36541b1b intitial checkin
tz
parents:
diff changeset
   116
version
246e36541b1b intitial checkin
tz
parents:
diff changeset
   117
    ^ '$Header$'
246e36541b1b intitial checkin
tz
parents:
diff changeset
   118
! !