FilenameComboBoxView.st
author Claus Gittinger <cg@exept.de>
Fri, 15 Jun 2018 10:54:35 +0200
changeset 5816 7876c07931a7
parent 5178 6f024aff2509
permissions -rw-r--r--
#DOCUMENTATION by cg class: ComboListView class comment/format in: #documentation
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2110
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     1
"
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     2
 COPYRIGHT (c) 2002 by eXept Software AG 
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     3
              All Rights Reserved
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     4
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     5
 This software is furnished under a license and may be used
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     6
 only in accordance with the terms of that license and with the
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     8
 be provided or otherwise made available to, or used by, any
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
     9
 other person.  No title to or ownership of the software is
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    10
 hereby transferred.
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    11
"
2109
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libwidg2' }"
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
5175
aecc83695a41 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 3250
diff changeset
    14
"{ NameSpace: Smalltalk }"
aecc83695a41 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 3250
diff changeset
    15
2109
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
ComboBoxView subclass:#FilenameComboBoxView
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:''
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Views-Interactors'
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
2110
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    23
!FilenameComboBoxView class methodsFor:'documentation'!
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    24
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    25
copyright
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    26
"
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    27
 COPYRIGHT (c) 2002 by eXept Software AG 
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    28
              All Rights Reserved
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    29
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    30
 This software is furnished under a license and may be used
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    31
 only in accordance with the terms of that license and with the
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    33
 be provided or otherwise made available to, or used by, any
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    34
 other person.  No title to or ownership of the software is
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    35
 hereby transferred.
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    36
"
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    37
!
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    38
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    39
documentation
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    40
"
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    41
    Like A ComboBoxView, but does fileNameCompletion when the Tab key is hit.
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    42
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    43
    [author:]
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    44
        Claus Gittinger
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    45
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    46
    [see also:]
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    47
        ComboBoxView
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    48
        FilenameEditField
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    49
"
3250
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    50
!
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    51
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    52
examples
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    53
"
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    54
                                                                        [exBegin]
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    55
     |top b|
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    56
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    57
     top := StandardSystemView new.
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    58
     top extent:(300 @ 200).
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    59
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    60
     b := FilenameComboBoxView in:top.
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    61
     b origin:(0.0 @ 0.0) corner:(1.0 @ 0.0).
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    62
     b bottomInset:(b preferredExtent y negated).
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    63
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    64
     b list:#('c:\' 'd:\' 'c:\users').
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    65
     top open.
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    66
                                                                        [exEnd]
e016b4cd8e65 comment added
Claus Gittinger <cg@exept.de>
parents: 2110
diff changeset
    67
"
2110
3e7758a8ed6b *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 2109
diff changeset
    68
! !
2109
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    69
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    70
!FilenameComboBoxView methodsFor:'initialization'!
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    71
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    72
editFieldClass
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    73
    ^ FilenameEditField
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    74
! !
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    75
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    76
!FilenameComboBoxView class methodsFor:'documentation'!
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    77
5178
6f024aff2509 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
    78
version
6f024aff2509 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
    79
    ^ '$Header$'
6f024aff2509 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
    80
!
6f024aff2509 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5177
diff changeset
    81
5176
464b76086f7f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5175
diff changeset
    82
version_CVS
464b76086f7f #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 5175
diff changeset
    83
    ^ '$Header$'
2109
ef225ccb4d8c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    84
! !
5175
aecc83695a41 #OTHER by cg
Claus Gittinger <cg@exept.de>
parents: 3250
diff changeset
    85