FileDialogWithPreview.st
author Claus Gittinger <cg@exept.de>
Mon, 20 Jan 2020 21:02:47 +0100
changeset 19422 c6ca1c3e0fd7
parent 17479 a1e713bd1b44
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:
9768
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     1
"
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     2
 COPYRIGHT (c) 2011 by eXept Software AG
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     3
              All Rights Reserved
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     4
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     5
 This software is furnished under a license and may be used
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     6
 only in accordance with the terms of that license and with the
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     8
 be provided or otherwise made available to, or used by, any
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
     9
 other person.  No title to or ownership of the software is
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    10
 hereby transferred.
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    11
"
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    12
"{ Package: 'stx:libtool' }"
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    13
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    14
"{ NameSpace: Smalltalk }"
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    15
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    16
FileDialog subclass:#FileDialogWithPreview
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    17
	instanceVariableNames:'imagePreview'
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    18
	classVariableNames:''
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    19
	poolDictionaries:''
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    20
	category:'Interface-Tools-File'
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    21
!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    22
9768
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    23
!FileDialogWithPreview class methodsFor:'documentation'!
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    24
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    25
copyright
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    26
"
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    27
 COPYRIGHT (c) 2011 by eXept Software AG
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    28
              All Rights Reserved
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    29
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    30
 This software is furnished under a license and may be used
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    31
 only in accordance with the terms of that license and with the
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    33
 be provided or otherwise made available to, or used by, any
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    34
 other person.  No title to or ownership of the software is
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    35
 hereby transferred.
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    36
"
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    37
!
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    38
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    39
documentation
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    40
"
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    41
    a FileDialog with image preview
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    42
"
eb73532608b5 initial checkin
Claus Gittinger <cg@exept.de>
parents: 9766
diff changeset
    43
! !
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    44
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    45
!FileDialogWithPreview class methodsFor:'interface specs'!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    46
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    47
windowSpec
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    48
    "This resource specification was automatically generated
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    49
     by the UIPainter of ST/X."
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    50
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    51
    "Do not manually edit this!! If it is corrupted,
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    52
     the UIPainter may not be able to read the specification."
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    53
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    54
    "
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    55
     UIPainter new openOnClass:FileDialogWithPreview andSelector:#windowSpec
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    56
     FileDialogWithPreview new openInterface:#windowSpec
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    57
     FileDialogWithPreview open
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    58
    "
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    59
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    60
    <resource: #canvas>
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    61
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
    62
    ^ 
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    63
    #(FullSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    64
       name: windowSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    65
       window: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    66
      (WindowSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    67
         label: 'FileDialog'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    68
         name: 'FileDialog'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    69
         min: (Point 10 10)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    70
         bounds: (Rectangle 0 0 407 607)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    71
         menu: mainMenu
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    72
         performer: treeBrowser
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    73
       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    74
       component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    75
      (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    76
         collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    77
          (VariableVerticalPanelSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    78
             name: 'FilePanel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    79
             layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 -30 1.0)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    80
             showHandle: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    81
             handlePosition: center
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    82
             component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    83
            (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    84
               collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    85
                (ViewSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    86
                   name: 'FilePart'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    87
                   component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    88
                  (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    89
                     collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    90
                      (MenuPanelSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    91
                         name: 'ToolBar1'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    92
                         layout: (LayoutFrame 0 0.0 0 0.0 0 1.0 40 0)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    93
                         tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    94
                         menu: toolBarMenu
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    95
                         textDefault: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    96
                       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    97
                      (VariableHorizontalPanelSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    98
                         name: 'DeviceAndFilterPanel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
    99
                         layout: (LayoutFrame 0 0 40 0 0 1 70 0)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   100
                         level: 1
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   101
                         showHandle: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   102
                         component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   103
                        (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   104
                           collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   105
                            (ViewSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   106
                               name: 'Box1'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   107
                               component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   108
                              (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   109
                                 collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   110
                                  (ComboListSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   111
                                     name: 'ComboList1'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   112
                                     layout: (LayoutFrame 1 0 1 0.0 -1 1 -1 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   113
                                     visibilityChannel: driveSelectorVisible
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   114
                                     model: selectedDeviceDrive
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   115
                                     comboList: listOfDeviceDrives
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   116
                                     useIndex: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   117
                                     hidePullDownMenuButton: false
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   118
                                   )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   119
                                  )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   120
                                
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   121
                               )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   122
                             )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   123
                            (ViewSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   124
                               name: 'Box2'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   125
                               component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   126
                              (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   127
                                 collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   128
                                  (LabelSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   129
                                     label: 'Filter:'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   130
                                     name: 'FilterLabel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   131
                                     layout: (LayoutFrame 1 0 2 0 59 0 -2 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   132
                                     translateLabel: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   133
                                     adjust: right
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   134
                                   )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   135
                                  (InputFieldSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   136
                                     name: 'FilterEntryField'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   137
                                     layout: (LayoutFrame 60 0 -27 1 -2 1 -2 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   138
                                     model: filterHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   139
                                     immediateAccept: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   140
                                     acceptOnReturn: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   141
                                     acceptOnTab: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   142
                                     acceptOnLostFocus: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   143
                                     acceptOnPointerLeave: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   144
                                     postBuildCallback: postBuildFilterField:
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   145
                                   )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   146
                                  )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   147
                                
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   148
                               )
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   149
                             )
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   150
                            )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   151
                          
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   152
                         )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   153
                         handles: (Any 0.29999999999999999 1.0)
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   154
                       )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   155
                      (SubCanvasSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   156
                         name: 'DirectoryTreeBrowser'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   157
                         layout: (LayoutFrame 0 0.0 70 0 0 1.0 -30 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   158
                         tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   159
                         hasHorizontalScrollBar: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   160
                         hasVerticalScrollBar: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   161
                         majorKey: DirectoryTreeBrowser
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   162
                         subAspectHolders: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   163
                        (Array
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   164
                           
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   165
                          (SubChannelInfoSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   166
                             subAspect: filterModel
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   167
                             aspect: filterHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   168
                           ) 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   169
                          (SubChannelInfoSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   170
                             subAspect: rootHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   171
                             aspect: rootDirectoryHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   172
                           )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   173
                           
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   174
                          (SubChannelInfoSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   175
                             subAspect: showHiddenFiles
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   176
                             aspect: showHiddenFiles
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   177
                           )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   178
                         )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   179
                         createNewApplication: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   180
                         createNewBuilder: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   181
                         postBuildCallback: postBuildTreeBrowser:
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   182
                       )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   183
                      (LabelSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   184
                         label: 'Filename:'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   185
                         name: 'FilenameLabel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   186
                         layout: (LayoutFrame 3 0 -25 1 120 0 -1 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   187
                         translateLabel: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   188
                         labelChannel: filenameLabelHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   189
                         adjust: left
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   190
                       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   191
                      (FilenameInputFieldSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   192
                         name: 'FilenameEntryField'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   193
                         layout: (LayoutFrame 120 0 -25 1 -4 1 -1 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   194
                         tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   195
                         model: filenameHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   196
                         immediateAccept: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   197
                         acceptOnPointerLeave: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   198
                         hasKeyboardFocusInitially: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   199
                         postBuildCallback: postBuildFileNameField:
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   200
                       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   201
                      )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   202
                    
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   203
                   )
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   204
                 )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   205
                (ViewSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   206
                   name: 'PreviewBox'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   207
                   visibilityChannel: previewVisibleHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   208
                   component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   209
                  (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   210
                     collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   211
                      (ArbitraryComponentSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   212
                         name: 'ArbitraryComponent1'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   213
                         layout: (LayoutFrame 0 0 0 0 0 1 0 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   214
                         visibilityChannel: imageViewVisible
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   215
                         hasHorizontalScrollBar: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   216
                         hasVerticalScrollBar: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   217
                         miniScrollerHorizontal: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   218
                         miniScrollerVertical: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   219
                         hasBorder: false
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   220
                         component: ImageView
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   221
                         postBuildCallback: postBuildImageView:
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   222
                       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   223
                      )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   224
                    
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   225
                   )
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   226
                 )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   227
                )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   228
              
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   229
             )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   230
             handles: (Any 0.75 1.0)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   231
             postBuildCallback: postBuildVerticalPanelView:
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   232
           )
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   233
          (HorizontalPanelViewSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   234
             name: 'ButtonPanel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   235
             layout: (LayoutFrame 0 0.0 -30 1 -16 1 0 1)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   236
             visibilityChannel: buttonPanelVisibleHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   237
             horizontalLayout: fitSpace
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   238
             verticalLayout: center
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   239
             horizontalSpace: 3
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   240
             verticalSpace: 3
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   241
             reverseOrderIfOKAtLeft: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   242
             component: 
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   243
            (SpecCollection
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   244
               collection: (
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   245
                (ActionButtonSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   246
                   label: 'Cancel'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   247
                   name: 'cancelButton'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   248
                   translateLabel: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   249
                   labelChannel: cancelLabelHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   250
                   tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   251
                   model: doCancel
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   252
                   extent: (Point 125 25)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   253
                 )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   254
                (ActionButtonSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   255
                   label: 'Append'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   256
                   name: 'appendButton'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   257
                   visibilityChannel: appendButtonVisibleHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   258
                   translateLabel: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   259
                   labelChannel: appendLabelHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   260
                   tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   261
                   model: appendPressed
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   262
                   extent: (Point 125 25)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   263
                 )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   264
                (ActionButtonSpec
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   265
                   label: 'OK'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   266
                   name: 'okButton'
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   267
                   translateLabel: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   268
                   labelChannel: okLabelHolder
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   269
                   tabable: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   270
                   model: okPressed
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   271
                   isDefault: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   272
                   extent: (Point 125 25)
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   273
                 )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   274
                )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   275
              
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   276
             )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   277
             keepSpaceForOSXResizeHandleH: true
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   278
           )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   279
          )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   280
        
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   281
       )
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   282
     )
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   283
! !
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   284
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   285
!FileDialogWithPreview class methodsFor:'plugIn spec'!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   286
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   287
aspectSelectors
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   288
    "This resource specification was automatically generated
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   289
     by the UIPainter of ST/X."
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   290
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   291
    "Do not manually edit this. If it is corrupted,
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   292
     the UIPainter may not be able to read the specification."
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   293
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   294
    "Return a description of exported aspects;
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   295
     these can be connected to aspects of an embedding application
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   296
     (if this app is embedded in a subCanvas)."
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   297
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   298
    ^ #(
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   299
        #filenameHolder
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   300
        #filterHolder
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   301
        #rootDirectoryHolder
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   302
      ).
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   303
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   304
! !
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   305
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   306
!FileDialogWithPreview methodsFor:'change & update'!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   307
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   308
fileSelectionChanged
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   309
    |fn mime image|
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   310
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   311
    super fileSelectionChanged.
12882
7798eeb45eb8 class: FileDialogWithPreview
Claus Gittinger <cg@exept.de>
parents: 12876
diff changeset
   312
    ((fn := self filenameHolder value) notNil and:[ fn exists ]) ifTrue:[
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   313
        (mime := fn mimeTypeFromName) notNil ifTrue:[
13716
9f0d7f69c782 class: FileDialogWithPreview
Claus Gittinger <cg@exept.de>
parents: 12882
diff changeset
   314
            mime isImageType ifTrue:[
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   315
                image := Image fromFile:fn.
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   316
                imagePreview image:image.
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   317
            ].
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   318
        ].
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   319
    ].
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   320
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   321
    "Created: / 14-02-2011 / 18:00:39 / cg"
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   322
! !
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   323
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   324
!FileDialogWithPreview methodsFor:'initialization'!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   325
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   326
postBuildImageView:aView
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   327
    imagePreview := aView
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   328
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   329
    "Created: / 14-02-2011 / 18:08:05 / cg"
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   330
! !
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   331
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   332
!FileDialogWithPreview class methodsFor:'documentation'!
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   333
12882
7798eeb45eb8 class: FileDialogWithPreview
Claus Gittinger <cg@exept.de>
parents: 12876
diff changeset
   334
version
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   335
    ^ '$Header$'
12882
7798eeb45eb8 class: FileDialogWithPreview
Claus Gittinger <cg@exept.de>
parents: 12876
diff changeset
   336
!
7798eeb45eb8 class: FileDialogWithPreview
Claus Gittinger <cg@exept.de>
parents: 12876
diff changeset
   337
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   338
version_CVS
17479
a1e713bd1b44 #UI_ENHANCEMENT by cg
Claus Gittinger <cg@exept.de>
parents: 13716
diff changeset
   339
    ^ '$Header$'
9766
8991b96a132c initial checkin
Claus Gittinger <cg@exept.de>
parents:
diff changeset
   340
! !
12847
ed021bafe2ac class: Expecco::ExpeccoDebugView
Claus Gittinger <cg@exept.de>
parents: 9768
diff changeset
   341