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