EditFieldWithCompletionSpec.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Jan 2020 21:02:47 +0100
changeset 19422 c6ca1c3e0fd7
parent 9998 dc88261b0fc2
child 12123 4bde08cebd48
permissions -rw-r--r--
#REFACTORING by exept class: MultiViewToolApplication added: #askForFile:default:forSave:thenDo: changed: #askForFile:default:thenDo: #askForFile:thenDo: #menuSaveAllAs #menuSaveAs
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
9998
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     1
"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     2
 COPYRIGHT (c) 2006 by eXept Software AG
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     3
	      All Rights Reserved
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     4
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     5
 This software is furnished under a license and may be used
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    10
 hereby transferred.
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    11
"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    14
InputFieldSpec subclass:#EditFieldWithCompletionSpec
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    15
	instanceVariableNames:'showOptions'
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
	classVariableNames:''
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	poolDictionaries:''
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	category:'Interface-Support-UI-Specs'
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!EditFieldWithCompletionSpec class methodsFor:'documentation'!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    23
copyright
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    24
"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    25
 COPYRIGHT (c) 2006 by eXept Software AG
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    26
	      All Rights Reserved
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    27
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    28
 This software is furnished under a license and may be used
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    29
 only in accordance with the terms of that license and with the
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    30
 inclusion of the above copyright notice.   This software may not
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    31
 be provided or otherwise made available to, or used by, any
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    32
 other person.  No title to or ownership of the software is
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    33
 hereby transferred.
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    34
"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    35
! !
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    36
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    37
!EditFieldWithCompletionSpec methodsFor:'accessing'!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    38
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    39
showOptions
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    40
    ^ showOptions
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    41
!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    42
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    43
showOptions:something
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
    showOptions := something.
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
! !
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
!EditFieldWithCompletionSpec methodsFor:'building'!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
setAttributesIn:aView with:aBuilder
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    super setAttributesIn:aView with:aBuilder.
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
    aView showOptions: showOptions ? true
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "Created: / 09-08-2009 / 09:11:08 / Jan Vrany <vranyj1@fel.cvut.cz>"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
! !
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
!EditFieldWithCompletionSpec methodsFor:'parsing a view'!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
fromView:aView callBack:aBlock
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
    showOptions := aView showOptions.
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    63
    super fromView:aView callBack:aBlock
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    64
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    65
    "Created: / 09-08-2009 / 09:10:17 / Jan Vrany <vranyj1@fel.cvut.cz>"
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    66
! !
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    67
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    68
!EditFieldWithCompletionSpec class methodsFor:'documentation'!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
version_CVS
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
    ^ '$Header: /cvs/stx/stx/libtool/EditFieldWithCompletionSpec.st,v 1.1 2011-07-01 13:30:32 cg Exp $'
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
!
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
version_SVN
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
    ^ '§Id: EditFieldWithCompletionSpec.st 7567 2010-04-17 10:59:53Z vranyj1 §'
dc88261b0fc2 initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
! !