FileBrowserV2.st
author Claus Gittinger <cg@exept.de>
Thu, 28 Aug 2003 13:18:00 +0200
changeset 5120 e4c15c9d82ba
parent 5010 27aa6fa93dcd
child 5123 dfa32557cddd
permissions -rw-r--r--
*** empty log message ***
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
     1
"
321c1729db5b initial checkin
penk
parents:
diff changeset
     2
 COPYRIGHT (c) 1991 by Claus Gittinger
321c1729db5b initial checkin
penk
parents:
diff changeset
     3
              All Rights Reserved
321c1729db5b initial checkin
penk
parents:
diff changeset
     4
321c1729db5b initial checkin
penk
parents:
diff changeset
     5
 This software is furnished under a license and may be used
321c1729db5b initial checkin
penk
parents:
diff changeset
     6
 only in accordance with the terms of that license and with the
321c1729db5b initial checkin
penk
parents:
diff changeset
     7
 inclusion of the above copyright notice.   This software may not
321c1729db5b initial checkin
penk
parents:
diff changeset
     8
 be provided or otherwise made available to, or used by, any
321c1729db5b initial checkin
penk
parents:
diff changeset
     9
 other person.  No title to or ownership of the software is
321c1729db5b initial checkin
penk
parents:
diff changeset
    10
 hereby transferred.
321c1729db5b initial checkin
penk
parents:
diff changeset
    11
"
321c1729db5b initial checkin
penk
parents:
diff changeset
    12
321c1729db5b initial checkin
penk
parents:
diff changeset
    13
"{ Package: 'stx:libtool' }"
321c1729db5b initial checkin
penk
parents:
diff changeset
    14
321c1729db5b initial checkin
penk
parents:
diff changeset
    15
AbstractFileBrowser subclass:#FileBrowserV2
4651
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
    16
	instanceVariableNames:'fileEntryFieldHolder pathEntryField previewProcess
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
    17
		listOfDeviceDrives selectedDeviceDrive'
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
    18
	classVariableNames:''
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
    19
	poolDictionaries:''
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
    20
	category:'Interface-Tools-File'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
    21
!
321c1729db5b initial checkin
penk
parents:
diff changeset
    22
321c1729db5b initial checkin
penk
parents:
diff changeset
    23
!FileBrowserV2 class methodsFor:'documentation'!
321c1729db5b initial checkin
penk
parents:
diff changeset
    24
321c1729db5b initial checkin
penk
parents:
diff changeset
    25
copyright
321c1729db5b initial checkin
penk
parents:
diff changeset
    26
"
321c1729db5b initial checkin
penk
parents:
diff changeset
    27
 COPYRIGHT (c) 1991 by Claus Gittinger
321c1729db5b initial checkin
penk
parents:
diff changeset
    28
              All Rights Reserved
321c1729db5b initial checkin
penk
parents:
diff changeset
    29
321c1729db5b initial checkin
penk
parents:
diff changeset
    30
 This software is furnished under a license and may be used
321c1729db5b initial checkin
penk
parents:
diff changeset
    31
 only in accordance with the terms of that license and with the
321c1729db5b initial checkin
penk
parents:
diff changeset
    32
 inclusion of the above copyright notice.   This software may not
321c1729db5b initial checkin
penk
parents:
diff changeset
    33
 be provided or otherwise made available to, or used by, any
321c1729db5b initial checkin
penk
parents:
diff changeset
    34
 other person.  No title to or ownership of the software is
321c1729db5b initial checkin
penk
parents:
diff changeset
    35
 hereby transferred.
321c1729db5b initial checkin
penk
parents:
diff changeset
    36
"
321c1729db5b initial checkin
penk
parents:
diff changeset
    37
!
321c1729db5b initial checkin
penk
parents:
diff changeset
    38
321c1729db5b initial checkin
penk
parents:
diff changeset
    39
documentation
321c1729db5b initial checkin
penk
parents:
diff changeset
    40
"
321c1729db5b initial checkin
penk
parents:
diff changeset
    41
    FileBrowserV2 is based on Filebrowser created by Claus Gittinger
321c1729db5b initial checkin
penk
parents:
diff changeset
    42
321c1729db5b initial checkin
penk
parents:
diff changeset
    43
    WARNING: files edited with FileBrowser will have leading spaces (multiple-8)
321c1729db5b initial checkin
penk
parents:
diff changeset
    44
             being replaced by tabs. If tabs are to be preserved at other
321c1729db5b initial checkin
penk
parents:
diff changeset
    45
             positions (for example, sendmail-config files) they will be
321c1729db5b initial checkin
penk
parents:
diff changeset
    46
             corrupt after being written.
321c1729db5b initial checkin
penk
parents:
diff changeset
    47
321c1729db5b initial checkin
penk
parents:
diff changeset
    48
    [instance variables]:
321c1729db5b initial checkin
penk
parents:
diff changeset
    49
321c1729db5b initial checkin
penk
parents:
diff changeset
    50
        checkDelta      <Integer>       number of seconds of check interval
321c1729db5b initial checkin
penk
parents:
diff changeset
    51
                                        (looks ever so often if shown directory
321c1729db5b initial checkin
penk
parents:
diff changeset
    52
                                         has changed). You may make this number
321c1729db5b initial checkin
penk
parents:
diff changeset
    53
                                        higher, if your network-times are
321c1729db5b initial checkin
penk
parents:
diff changeset
    54
                                        incorrect and thus, the filebrowser
321c1729db5b initial checkin
penk
parents:
diff changeset
    55
                                        checks too often.
321c1729db5b initial checkin
penk
parents:
diff changeset
    56
321c1729db5b initial checkin
penk
parents:
diff changeset
    57
        compressTabs    <Boolean>       if true, leading spaces will be
321c1729db5b initial checkin
penk
parents:
diff changeset
    58
                                        replaced by tabs when saving text
321c1729db5b initial checkin
penk
parents:
diff changeset
    59
321c1729db5b initial checkin
penk
parents:
diff changeset
    60
    some of the defaults (long/short list etc.) can be set by the resource file;
321c1729db5b initial checkin
penk
parents:
diff changeset
    61
    see FileBrowser>>initialize for more details..
321c1729db5b initial checkin
penk
parents:
diff changeset
    62
321c1729db5b initial checkin
penk
parents:
diff changeset
    63
    [author:]
321c1729db5b initial checkin
penk
parents:
diff changeset
    64
        Christian Penk
321c1729db5b initial checkin
penk
parents:
diff changeset
    65
321c1729db5b initial checkin
penk
parents:
diff changeset
    66
    [start with:]
321c1729db5b initial checkin
penk
parents:
diff changeset
    67
        FileBrowserV2 open
321c1729db5b initial checkin
penk
parents:
diff changeset
    68
"
321c1729db5b initial checkin
penk
parents:
diff changeset
    69
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
    70
321c1729db5b initial checkin
penk
parents:
diff changeset
    71
!FileBrowserV2 class methodsFor:'instance creation'!
321c1729db5b initial checkin
penk
parents:
diff changeset
    72
321c1729db5b initial checkin
penk
parents:
diff changeset
    73
on:aDirectoryPath
321c1729db5b initial checkin
penk
parents:
diff changeset
    74
    "return a new FileBrowserV2 in a pathname"
321c1729db5b initial checkin
penk
parents:
diff changeset
    75
4015
6419d88d7c05 Need builder when starting up.
Stefan Vogel <sv@exept.de>
parents: 4011
diff changeset
    76
    |instance files|
6419d88d7c05 Need builder when starting up.
Stefan Vogel <sv@exept.de>
parents: 4011
diff changeset
    77
    instance := self new createBuilder.
4172
d2f6ba6a98ed *** empty log message ***
penk
parents: 4164
diff changeset
    78
    aDirectoryPath isCollection ifTrue:[
d2f6ba6a98ed *** empty log message ***
penk
parents: 4164
diff changeset
    79
        files := aDirectoryPath
d2f6ba6a98ed *** empty log message ***
penk
parents: 4164
diff changeset
    80
    ] ifFalse:[
d2f6ba6a98ed *** empty log message ***
penk
parents: 4164
diff changeset
    81
        files := Array with:aDirectoryPath.
d2f6ba6a98ed *** empty log message ***
penk
parents: 4164
diff changeset
    82
    ].
3907
a06fe9db6195 next stage
penk
parents: 3903
diff changeset
    83
    instance currentFileNameHolder value:files.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
    84
    ^ instance
321c1729db5b initial checkin
penk
parents:
diff changeset
    85
!
321c1729db5b initial checkin
penk
parents:
diff changeset
    86
321c1729db5b initial checkin
penk
parents:
diff changeset
    87
open
321c1729db5b initial checkin
penk
parents:
diff changeset
    88
    "start a new FileBrowserV2"
321c1729db5b initial checkin
penk
parents:
diff changeset
    89
321c1729db5b initial checkin
penk
parents:
diff changeset
    90
    | instance |
321c1729db5b initial checkin
penk
parents:
diff changeset
    91
    instance := self new.
321c1729db5b initial checkin
penk
parents:
diff changeset
    92
    instance open.
321c1729db5b initial checkin
penk
parents:
diff changeset
    93
    ^ instance
321c1729db5b initial checkin
penk
parents:
diff changeset
    94
    "
4626
7dc33087c2db fix for windows
penk
parents: 4619
diff changeset
    95
     FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) withExtent:800@600
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
    96
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
    97
!
321c1729db5b initial checkin
penk
parents:
diff changeset
    98
321c1729db5b initial checkin
penk
parents:
diff changeset
    99
openOn:aDirectoryPath 
321c1729db5b initial checkin
penk
parents:
diff changeset
   100
    "start a new FileBrowserV2 in a pathname"
321c1729db5b initial checkin
penk
parents:
diff changeset
   101
321c1729db5b initial checkin
penk
parents:
diff changeset
   102
    | instance|
321c1729db5b initial checkin
penk
parents:
diff changeset
   103
    instance := self on:aDirectoryPath asFilename.
321c1729db5b initial checkin
penk
parents:
diff changeset
   104
    ^ instance open.
321c1729db5b initial checkin
penk
parents:
diff changeset
   105
    "
4626
7dc33087c2db fix for windows
penk
parents: 4619
diff changeset
   106
     FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename))
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   107
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   108
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   109
321c1729db5b initial checkin
penk
parents:
diff changeset
   110
openOn:aDirectoryPath withExtent:extent
321c1729db5b initial checkin
penk
parents:
diff changeset
   111
    "start a new FileBrowserV2 in a pathname"
321c1729db5b initial checkin
penk
parents:
diff changeset
   112
321c1729db5b initial checkin
penk
parents:
diff changeset
   113
    | instance builder|
321c1729db5b initial checkin
penk
parents:
diff changeset
   114
    instance := self on:aDirectoryPath.
321c1729db5b initial checkin
penk
parents:
diff changeset
   115
    builder := instance open.
321c1729db5b initial checkin
penk
parents:
diff changeset
   116
    builder window extent:extent.
321c1729db5b initial checkin
penk
parents:
diff changeset
   117
    ^ instance
321c1729db5b initial checkin
penk
parents:
diff changeset
   118
    "
4626
7dc33087c2db fix for windows
penk
parents: 4619
diff changeset
   119
     FileBrowserV2 openOn:(OrderedCollection with:(Filename currentDirectory asAbsoluteFilename)) withExtent:800@600
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   120
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   121
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   122
321c1729db5b initial checkin
penk
parents:
diff changeset
   123
openWithAspects:someAspects withExtent:extent
321c1729db5b initial checkin
penk
parents:
diff changeset
   124
    "start a new FileBrowserV2 in a pathname"
321c1729db5b initial checkin
penk
parents:
diff changeset
   125
321c1729db5b initial checkin
penk
parents:
diff changeset
   126
    |dir clone|
321c1729db5b initial checkin
penk
parents:
diff changeset
   127
321c1729db5b initial checkin
penk
parents:
diff changeset
   128
    dir := someAspects at:#currentFileNameHolder ifAbsent:nil.
321c1729db5b initial checkin
penk
parents:
diff changeset
   129
    clone := self openOn:(dir value) withExtent:extent.
321c1729db5b initial checkin
penk
parents:
diff changeset
   130
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   131
321c1729db5b initial checkin
penk
parents:
diff changeset
   132
!FileBrowserV2 class methodsFor:'class initialization'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   133
4027
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   134
applicationIcon
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   135
    ^ NewLauncher startNewFileBrowserIcon
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   136
!
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   137
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   138
clearHistoryIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   139
    ^ Icon deleteIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   140
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   141
321c1729db5b initial checkin
penk
parents:
diff changeset
   142
initialize
321c1729db5b initial checkin
penk
parents:
diff changeset
   143
321c1729db5b initial checkin
penk
parents:
diff changeset
   144
    self installInLauncher.
321c1729db5b initial checkin
penk
parents:
diff changeset
   145
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   146
321c1729db5b initial checkin
penk
parents:
diff changeset
   147
installInLauncher
321c1729db5b initial checkin
penk
parents:
diff changeset
   148
    "add myself to the launcher menu and toolBar"
321c1729db5b initial checkin
penk
parents:
diff changeset
   149
3914
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   150
    |menuItem icon action currentLauncher|
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   151
321c1729db5b initial checkin
penk
parents:
diff changeset
   152
    FileBrowserV2 isNil ifTrue:[^ self].
321c1729db5b initial checkin
penk
parents:
diff changeset
   153
321c1729db5b initial checkin
penk
parents:
diff changeset
   154
    action := [FileBrowserV2 open].
321c1729db5b initial checkin
penk
parents:
diff changeset
   155
4027
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   156
    icon := self applicationIcon. "/ self defaultIcon magnifiedTo:28@28.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   157
321c1729db5b initial checkin
penk
parents:
diff changeset
   158
    menuItem := MenuItem new 
4037
020b55c57cb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4027
diff changeset
   159
                    translateLabel: true;
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   160
                    value: action;
321c1729db5b initial checkin
penk
parents:
diff changeset
   161
                    isButton: false;
4037
020b55c57cb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4027
diff changeset
   162
                    label:'File Browser V2' icon:icon;
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   163
                    nameKey: #fileBrowserV2;
321c1729db5b initial checkin
penk
parents:
diff changeset
   164
                    activeHelpKey: #fileBrowserV2;
321c1729db5b initial checkin
penk
parents:
diff changeset
   165
                    submenuChannel: #menuFileHistory;
321c1729db5b initial checkin
penk
parents:
diff changeset
   166
                    showBusyCursorWhilePerforming:true.
321c1729db5b initial checkin
penk
parents:
diff changeset
   167
321c1729db5b initial checkin
penk
parents:
diff changeset
   168
    NewLauncher addMenuItem:menuItem in:'menu.file' position:#( #before #fileBrowser) space:true.
321c1729db5b initial checkin
penk
parents:
diff changeset
   169
321c1729db5b initial checkin
penk
parents:
diff changeset
   170
    menuItem := MenuItem new 
4037
020b55c57cb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4027
diff changeset
   171
                    translateLabel: true;
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   172
                    value: action;
321c1729db5b initial checkin
penk
parents:
diff changeset
   173
                    isButton: true;
4037
020b55c57cb2 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4027
diff changeset
   174
                    "label:'File Browser V2'" icon:icon;
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   175
                    nameKey: #fileBrowserV2;
321c1729db5b initial checkin
penk
parents:
diff changeset
   176
                    activeHelpKey: #fileBrowserV2;
321c1729db5b initial checkin
penk
parents:
diff changeset
   177
                    submenuChannel: #menuFileHistory;
321c1729db5b initial checkin
penk
parents:
diff changeset
   178
                    showBusyCursorWhilePerforming:true.
321c1729db5b initial checkin
penk
parents:
diff changeset
   179
321c1729db5b initial checkin
penk
parents:
diff changeset
   180
    NewLauncher addMenuItem:menuItem in:'toolbar' position:#( #before #fileBrowser) space:false.
321c1729db5b initial checkin
penk
parents:
diff changeset
   181
3918
144e37bc7a8c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3914
diff changeset
   182
    currentLauncher := NewLauncher current.
3914
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   183
    currentLauncher notNil ifTrue:[
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   184
        currentLauncher fileBrowserItemVisible value:false
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   185
    ].
4380
0987d10ae2ba install and remove from Launcher install in settings application changed
penk
parents: 4377
diff changeset
   186
    NewLauncher addSettingsApplicationByClass:#'FileBrowserV2SettingsAppl' 
0987d10ae2ba install and remove from Launcher install in settings application changed
penk
parents: 4377
diff changeset
   187
                withName:'Tools/FileBrowserV2' 
0987d10ae2ba install and remove from Launcher install in settings application changed
penk
parents: 4377
diff changeset
   188
                icon:nil.
3908
1ee573adcbc0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3907
diff changeset
   189
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   190
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   191
     self installInLauncher
321c1729db5b initial checkin
penk
parents:
diff changeset
   192
     self removeFromLauncher
321c1729db5b initial checkin
penk
parents:
diff changeset
   193
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   194
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   195
321c1729db5b initial checkin
penk
parents:
diff changeset
   196
removeFromLauncher
321c1729db5b initial checkin
penk
parents:
diff changeset
   197
    "/
321c1729db5b initial checkin
penk
parents:
diff changeset
   198
    "/ remove myself from the launcher menu
321c1729db5b initial checkin
penk
parents:
diff changeset
   199
    "/
321c1729db5b initial checkin
penk
parents:
diff changeset
   200
3914
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   201
    |currentLauncher|
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   202
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   203
    NewLauncher isNil ifTrue:[^ self].
3908
1ee573adcbc0 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3907
diff changeset
   204
    NewLauncher removeUserTool:#fileBrowserV2.
3918
144e37bc7a8c *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3914
diff changeset
   205
    currentLauncher := NewLauncher current.
3914
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   206
    currentLauncher notNil ifTrue:[
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   207
        currentLauncher fileBrowserItemVisible value:false
9fa0dedb07f9 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3908
diff changeset
   208
    ].
4380
0987d10ae2ba install and remove from Launcher install in settings application changed
penk
parents: 4377
diff changeset
   209
    NewLauncher removeSettingsApplicationByClass:#'FileBrowserV2SettingsAppl'.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   210
321c1729db5b initial checkin
penk
parents:
diff changeset
   211
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   212
     self removeFromLauncher
321c1729db5b initial checkin
penk
parents:
diff changeset
   213
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   214
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   215
321c1729db5b initial checkin
penk
parents:
diff changeset
   216
!FileBrowserV2 class methodsFor:'defaults'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   217
321c1729db5b initial checkin
penk
parents:
diff changeset
   218
entryFieldEndStringForMultipleSelection
321c1729db5b initial checkin
penk
parents:
diff changeset
   219
321c1729db5b initial checkin
penk
parents:
diff changeset
   220
    ^ ('[*]')
321c1729db5b initial checkin
penk
parents:
diff changeset
   221
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   222
321c1729db5b initial checkin
penk
parents:
diff changeset
   223
!FileBrowserV2 class methodsFor:'help specs'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   224
321c1729db5b initial checkin
penk
parents:
diff changeset
   225
flyByHelpSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   226
    <resource: #help>
321c1729db5b initial checkin
penk
parents:
diff changeset
   227
4290
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   228
    |spec hist|
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   229
321c1729db5b initial checkin
penk
parents:
diff changeset
   230
    spec := super flyByHelpSpec addPairsFrom:#(
321c1729db5b initial checkin
penk
parents:
diff changeset
   231
321c1729db5b initial checkin
penk
parents:
diff changeset
   232
#addTerminal
321c1729db5b initial checkin
penk
parents:
diff changeset
   233
'Shell Terminal'
321c1729db5b initial checkin
penk
parents:
diff changeset
   234
4236
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
   235
#make
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
   236
'Make'
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
   237
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   238
#searchFile
321c1729db5b initial checkin
penk
parents:
diff changeset
   239
'Search a File'
321c1729db5b initial checkin
penk
parents:
diff changeset
   240
321c1729db5b initial checkin
penk
parents:
diff changeset
   241
#directoryUp
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   242
'Directory Up'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   243
321c1729db5b initial checkin
penk
parents:
diff changeset
   244
#directoryBack
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   245
'Directory Back'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   246
4290
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   247
#directoryForward
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   248
'Directory Forward'
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   249
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   250
#directoryHistory
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   251
'Directory'
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   252
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   253
#copyFile
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   254
'Copy File'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   255
321c1729db5b initial checkin
penk
parents:
diff changeset
   256
#cutFile
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   257
'Cut File'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   258
321c1729db5b initial checkin
penk
parents:
diff changeset
   259
#fileHome
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   260
'Home Directory'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   261
4593
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   262
#fileGotoDefault
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   263
'Default Directory (ST/X Start Directory)'
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   264
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   265
#pasteFile
321c1729db5b initial checkin
penk
parents:
diff changeset
   266
'PasteFile'
321c1729db5b initial checkin
penk
parents:
diff changeset
   267
321c1729db5b initial checkin
penk
parents:
diff changeset
   268
#deleteFile
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   269
'Delete File'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   270
321c1729db5b initial checkin
penk
parents:
diff changeset
   271
#fileIn
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   272
'File In'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   273
321c1729db5b initial checkin
penk
parents:
diff changeset
   274
#fileHistory
4060
efb0431e606d *** empty log message ***
penk
parents: 4041
diff changeset
   275
'File History'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   276
321c1729db5b initial checkin
penk
parents:
diff changeset
   277
#hideToolBar
321c1729db5b initial checkin
penk
parents:
diff changeset
   278
'Hide Toolbar'
321c1729db5b initial checkin
penk
parents:
diff changeset
   279
321c1729db5b initial checkin
penk
parents:
diff changeset
   280
#hideFilenameEntryField
321c1729db5b initial checkin
penk
parents:
diff changeset
   281
'Hide Filename Field'
321c1729db5b initial checkin
penk
parents:
diff changeset
   282
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   283
#showFileDetails
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   284
'Show File Details'
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   285
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   286
#hideFileDetails
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   287
'Hide File Details'
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   288
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   289
#toggleDetails
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   290
'Show/Hide File Details'
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   291
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   292
).
321c1729db5b initial checkin
penk
parents:
diff changeset
   293
4290
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   294
    hist := self directoryHistory.
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   295
    hist notNil ifTrue:[
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   296
        hist canForward ifTrue:[
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   297
            spec at:#directoryForward put:(self classResources string:'Forward to: %1' with:hist nextForwardItem).
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   298
        ].
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   299
        hist canBackward ifTrue:[
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   300
            spec at:#directoryBack put:(self classResources string:'Back to: %1' with:hist nextBackwardItem).
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   301
        ].
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   302
    ].
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   303
    ^ spec.
4290
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   304
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   305
    "
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   306
     self flyByHelpSpec
70db9ba9f07c flyByHelp of back/forward shows where we end up
Claus Gittinger <cg@exept.de>
parents: 4262
diff changeset
   307
    "
4688
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   308
!
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   309
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   310
helpSpec
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   311
    "This resource specification was automatically generated
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   312
     by the UIHelpTool of ST/X."
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   313
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   314
    "Do not manually edit this!! If it is corrupted,
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   315
     the UIHelpTool may not be able to read the specification."
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   316
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   317
    "
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   318
     UIHelpTool openOnClass:FileBrowserV2    
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   319
    "
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   320
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   321
    <resource: #help>
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   322
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   323
    ^ super helpSpec addPairsFrom:#(
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   324
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   325
#toggleDetails
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   326
''
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   327
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
   328
)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   329
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   330
321c1729db5b initial checkin
penk
parents:
diff changeset
   331
!FileBrowserV2 class methodsFor:'icon'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   332
321c1729db5b initial checkin
penk
parents:
diff changeset
   333
defaultIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   334
    "This resource specification was automatically generated
321c1729db5b initial checkin
penk
parents:
diff changeset
   335
     by the ImageEditor of ST/X."
321c1729db5b initial checkin
penk
parents:
diff changeset
   336
321c1729db5b initial checkin
penk
parents:
diff changeset
   337
    "Do not manually edit this!! If it is corrupted,
321c1729db5b initial checkin
penk
parents:
diff changeset
   338
     the ImageEditor may not be able to read the specification."
321c1729db5b initial checkin
penk
parents:
diff changeset
   339
321c1729db5b initial checkin
penk
parents:
diff changeset
   340
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   341
     self defaultIcon inspect
321c1729db5b initial checkin
penk
parents:
diff changeset
   342
     ImageEditor openOnClass:self andSelector:#defaultIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   343
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   344
321c1729db5b initial checkin
penk
parents:
diff changeset
   345
    <resource: #image>
321c1729db5b initial checkin
penk
parents:
diff changeset
   346
321c1729db5b initial checkin
penk
parents:
diff changeset
   347
    ^Icon
321c1729db5b initial checkin
penk
parents:
diff changeset
   348
        constantNamed:#'FileBrowserV2 class defaultIcon'
321c1729db5b initial checkin
penk
parents:
diff changeset
   349
        ifAbsentPut:[(Depth4Image new) width: 28; height: 28; photometric:(#palette); bitsPerSample:(#(4 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
321c1729db5b initial checkin
penk
parents:
diff changeset
   350
@@@@@@@@@@@@@@@@@@@@CLA&Y&Y&Y&X@@ADP@@@L0F@@@@@@A @ADAD@@@3@XN;.;.8F@ADPDQ@@CLA ;.@@@@@@D@@@D@@L0FC.8O[6=/@QDADP@@3@X@; 
321c1729db5b initial checkin
penk
parents:
diff changeset
   351
[6=/[0DPDP@@CLA DNC6<@@F<ADP@@@L0F@A@F= [0= @@@@@@3@X@@P=/[6=/@@@@@@CLA @@A/[6=/X@@@@@@L0FC0@O[6=/[0@@@@@@3@XF<@@@@@@@@@
321c1729db5b initial checkin
penk
parents:
diff changeset
   352
@@@@CLA = @@@@@@@@@@@@@L0FA/[6=/A @@@@@@@@3@XO[6=/XF@@@@@@@@CLA @@@@@@X@@@@@@@@L0FY&Y&Y&Y @@@@@@@@C@Y&Y&Y&Y&@@@@@@@@@@@@
321c1729db5b initial checkin
penk
parents:
diff changeset
   353
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@N@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
321c1729db5b initial checkin
penk
parents:
diff changeset
   354
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@C @b') ; colorMapFromArray:#[0 0 0 255 255 255 255 0 0 0 255 0 0 0 255 0 255 255 255 255 0 255 0 255 127 0 0 0 127 0 0 0 127 0 127 127 127 127 0 127 0 127 127 127 127 170 170 170]; mask:((Depth1Image new) width: 28; height: 28; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'
321c1729db5b initial checkin
penk
parents:
diff changeset
   355
O??# C??9<@??>? O???<C????@????0O???8C???<@???>@O??<@C???@@???0@O??<@C??8@@??>@@O?? @C??8@@??>@@G?? @@??8@@@@@@@G.P=0AAD
321c1729db5b initial checkin
penk
parents:
diff changeset
   356
HP@PQBD@GDP8 AADHD@PQBA@DN^=0@@a') ; yourself); yourself]
321c1729db5b initial checkin
penk
parents:
diff changeset
   357
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   358
321c1729db5b initial checkin
penk
parents:
diff changeset
   359
hideFilenameEntryFieldIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   360
    <resource: #programImage>
321c1729db5b initial checkin
penk
parents:
diff changeset
   361
321c1729db5b initial checkin
penk
parents:
diff changeset
   362
    ^ ToolbarIconLibrary hideToolbarIconH14
321c1729db5b initial checkin
penk
parents:
diff changeset
   363
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   364
321c1729db5b initial checkin
penk
parents:
diff changeset
   365
hideToolBarIcon
321c1729db5b initial checkin
penk
parents:
diff changeset
   366
    <resource: #programImage>
321c1729db5b initial checkin
penk
parents:
diff changeset
   367
321c1729db5b initial checkin
penk
parents:
diff changeset
   368
    ^ ToolbarIconLibrary hideToolbarIconH26
321c1729db5b initial checkin
penk
parents:
diff changeset
   369
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   370
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   371
!FileBrowserV2 class methodsFor:'image specs'!
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   372
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   373
viewDetailsIcon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   374
    "This resource specification was automatically generated
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   375
     by the ImageEditor of ST/X."
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   376
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   377
    "Do not manually edit this!! If it is corrupted,
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   378
     the ImageEditor may not be able to read the specification."
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   379
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   380
    "
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   381
     self viewDetailsIcon inspect
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   382
     ImageEditor openOnClass:self andSelector:#viewDetailsIcon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   383
     Icon flushCachedIcons
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   384
    "
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   385
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   386
    <resource: #image>
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   387
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   388
    ^Icon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   389
        constantNamed:#'FileBrowserV2 class viewDetailsIcon'
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   390
        ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@]+X@@@@@]+X@@@@@]+X@@@@@]+X@@@@@@@@b') ; yourself); yourself]
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   391
!
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   392
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   393
viewNoDetailsIcon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   394
    "This resource specification was automatically generated
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   395
     by the ImageEditor of ST/X."
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   396
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   397
    "Do not manually edit this!! If it is corrupted,
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   398
     the ImageEditor may not be able to read the specification."
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   399
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   400
    "
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   401
     self viewNoDetailsIcon inspect
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   402
     ImageEditor openOnClass:self andSelector:#viewNoDetailsIcon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   403
     Icon flushCachedIcons
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   404
    "
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   405
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   406
    <resource: #image>
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   407
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   408
    ^Icon
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   409
        constantNamed:#'FileBrowserV2 class viewNoDetailsIcon'
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   410
        ifAbsentPut:[(Depth1Image new) width: 16; height: 16; photometric:(#palette); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@b') ; colorMapFromArray:#[0 0 0 255 255 255]; mask:((Depth1Image new) width: 16; height: 16; photometric:(#blackIs0); bitsPerSample:(#(1 )); samplesPerPixel:(1); bits:(ByteArray fromPackedString:'@@@@@@@@A<@@@@@@A<@@@@@@A<@@@@@@A<@@@@@@@@@b') ; yourself); yourself]
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   411
! !
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   412
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   413
!FileBrowserV2 class methodsFor:'interface specs'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   414
321c1729db5b initial checkin
penk
parents:
diff changeset
   415
windowSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   416
    "This resource specification was automatically generated
321c1729db5b initial checkin
penk
parents:
diff changeset
   417
     by the UIPainter of ST/X."
321c1729db5b initial checkin
penk
parents:
diff changeset
   418
321c1729db5b initial checkin
penk
parents:
diff changeset
   419
    "Do not manually edit this!! If it is corrupted,
321c1729db5b initial checkin
penk
parents:
diff changeset
   420
     the UIPainter may not be able to read the specification."
321c1729db5b initial checkin
penk
parents:
diff changeset
   421
321c1729db5b initial checkin
penk
parents:
diff changeset
   422
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   423
     UIPainter new openOnClass:FileBrowserV2 andSelector:#windowSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   424
     FileBrowserV2 new openInterface:#windowSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   425
     FileBrowserV2 open
321c1729db5b initial checkin
penk
parents:
diff changeset
   426
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   427
321c1729db5b initial checkin
penk
parents:
diff changeset
   428
    <resource: #canvas>
321c1729db5b initial checkin
penk
parents:
diff changeset
   429
321c1729db5b initial checkin
penk
parents:
diff changeset
   430
    ^ 
321c1729db5b initial checkin
penk
parents:
diff changeset
   431
     #(#FullSpec
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   432
        #name: #windowSpec
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   433
        #window: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   434
       #(#WindowSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   435
          #label: #FileBrowser
321c1729db5b initial checkin
penk
parents:
diff changeset
   436
          #name: #FileBrowser
321c1729db5b initial checkin
penk
parents:
diff changeset
   437
          #min: #(#Point 10 10)
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   438
          #bounds: #(#Rectangle 16 52 816 652)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   439
          #menu: #mainMenu
4027
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
   440
          #icon: #applicationIcon
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   441
        )
321c1729db5b initial checkin
penk
parents:
diff changeset
   442
        #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   443
       #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   444
          #collection: #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   445
           #(#ViewSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   446
              #name: 'FilenameEntryFieldBox'
321c1729db5b initial checkin
penk
parents:
diff changeset
   447
              #layout: #(#LayoutFrame 0 0 30 0 0 1 55 0)
321c1729db5b initial checkin
penk
parents:
diff changeset
   448
              #level: 0
321c1729db5b initial checkin
penk
parents:
diff changeset
   449
              #visibilityChannel: #filenameEntryFieldVisibleHolder
321c1729db5b initial checkin
penk
parents:
diff changeset
   450
              #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   451
             #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   452
                #collection: #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   453
                 #(#ActionButtonSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   454
                    #label: 'hideFilenameEntryFieldIcon'
321c1729db5b initial checkin
penk
parents:
diff changeset
   455
                    #name: 'HideFilenameEntryFieldButton'
321c1729db5b initial checkin
penk
parents:
diff changeset
   456
                    #layout: #(#LayoutFrame 0 0 0 0 13 0 0 1)
321c1729db5b initial checkin
penk
parents:
diff changeset
   457
                    #activeHelpKey: #hideFilenameEntryField
321c1729db5b initial checkin
penk
parents:
diff changeset
   458
                    #hasCharacterOrientedLabel: false
321c1729db5b initial checkin
penk
parents:
diff changeset
   459
                    #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   460
                    #model: #hideFilenameEntryField
321c1729db5b initial checkin
penk
parents:
diff changeset
   461
                    #postBuildCallback: #hideFilenameEntryFieldButtonCreated:
321c1729db5b initial checkin
penk
parents:
diff changeset
   462
                  )
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   463
                 #(#HorizontalPanelViewSpec
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   464
                    #name: 'HorizontalPanel1'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   465
                    #layout: #(#LayoutFrame 13 0.0 0 0.0 0 1.0 0 1.0)
321c1729db5b initial checkin
penk
parents:
diff changeset
   466
                    #level: 1
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   467
                    #horizontalLayout: #left
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   468
                    #verticalLayout: #fit
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   469
                    #horizontalSpace: 3
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   470
                    #verticalSpace: 3
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   471
                    #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   472
                   #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   473
                      #collection: #(
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   474
                       #(#ComboListSpec
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   475
                          #name: 'ComboList1'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   476
                          #visibilityChannel: #driveSelectorVisible
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   477
                          #model: #selectedDeviceDrive
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   478
                          #comboList: #listOfDeviceDrives
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   479
                          #useIndex: false
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   480
                          #extent: #(#Point 100 23)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   481
                        )
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   482
                       #(#VariableHorizontalPanelSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   483
                          #name: 'VariableHorizontalPanel1'
321c1729db5b initial checkin
penk
parents:
diff changeset
   484
                          #level: 0
321c1729db5b initial checkin
penk
parents:
diff changeset
   485
                          #showHandle: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   486
                          #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   487
                         #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   488
                            #collection: #(
4365
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
   489
                             #(#NonScrollableArbitraryComponentSpec
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
   490
                                #name: 'NonScrollableArbitraryComponent1'
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
   491
                                #component: #FilenameEditFieldV2
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
   492
                                #postBuildCallback: #postBuildEditField:
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   493
                              )
321c1729db5b initial checkin
penk
parents:
diff changeset
   494
                             #(#ViewSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   495
                                #name: 'FilterBox'
321c1729db5b initial checkin
penk
parents:
diff changeset
   496
                                #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   497
                               #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   498
                                  #collection: #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   499
                                   #(#LabelSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   500
                                      #label: 'Filter:'
321c1729db5b initial checkin
penk
parents:
diff changeset
   501
                                      #name: 'Filter'
321c1729db5b initial checkin
penk
parents:
diff changeset
   502
                                      #layout: #(#LayoutFrame 0 0 0 0 40 0 0 1)
321c1729db5b initial checkin
penk
parents:
diff changeset
   503
                                      #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   504
                                      #adjust: #left
321c1729db5b initial checkin
penk
parents:
diff changeset
   505
                                      #postBuildCallback: #postBuildPathViewBox:
321c1729db5b initial checkin
penk
parents:
diff changeset
   506
                                    )
321c1729db5b initial checkin
penk
parents:
diff changeset
   507
                                   #(#ComboBoxSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   508
                                      #name: 'FilterSelectionBox'
321c1729db5b initial checkin
penk
parents:
diff changeset
   509
                                      #layout: #(#LayoutFrame 40 0 0 0 0 1 0 1)
321c1729db5b initial checkin
penk
parents:
diff changeset
   510
                                      #model: #filterModel
321c1729db5b initial checkin
penk
parents:
diff changeset
   511
                                      #immediateAccept: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   512
                                      #acceptOnPointerLeave: false
321c1729db5b initial checkin
penk
parents:
diff changeset
   513
                                      #comboList: #filterListModel
321c1729db5b initial checkin
penk
parents:
diff changeset
   514
                                    )
321c1729db5b initial checkin
penk
parents:
diff changeset
   515
                                   )
321c1729db5b initial checkin
penk
parents:
diff changeset
   516
                                 
321c1729db5b initial checkin
penk
parents:
diff changeset
   517
                                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   518
                                #postBuildCallback: #postBuildPathViewBox:
321c1729db5b initial checkin
penk
parents:
diff changeset
   519
                              )
321c1729db5b initial checkin
penk
parents:
diff changeset
   520
                             )
321c1729db5b initial checkin
penk
parents:
diff changeset
   521
                           
321c1729db5b initial checkin
penk
parents:
diff changeset
   522
                          )
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   523
                          #extent: #(#Point 783 23)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   524
                          #handles: #(#Any 0.770115 1.0)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   525
                          #postBuildCallback: #postBuildPathViewBox:
321c1729db5b initial checkin
penk
parents:
diff changeset
   526
                        )
321c1729db5b initial checkin
penk
parents:
diff changeset
   527
                       )
321c1729db5b initial checkin
penk
parents:
diff changeset
   528
                     
321c1729db5b initial checkin
penk
parents:
diff changeset
   529
                    )
321c1729db5b initial checkin
penk
parents:
diff changeset
   530
                    #postBuildCallback: #postBuildPathViewBox:
321c1729db5b initial checkin
penk
parents:
diff changeset
   531
                  )
321c1729db5b initial checkin
penk
parents:
diff changeset
   532
                 )
321c1729db5b initial checkin
penk
parents:
diff changeset
   533
               
321c1729db5b initial checkin
penk
parents:
diff changeset
   534
              )
321c1729db5b initial checkin
penk
parents:
diff changeset
   535
            )
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   536
           #(#'FileBrowserV2UISpecifications::PanelSpec'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   537
              #name: 'BrowserBox'
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   538
              #layout: #(#LayoutFrame 0 0.0 55 0.0 0 1.0 -20 1.0)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   539
              #level: 0
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   540
              #showHandle: true
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   541
              #snapMode: #both
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   542
              #whichView: #last
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   543
              #orientation: #vertical
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   544
              #visibility: #viewNoteBookApplicationHolder
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   545
              #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   546
             #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   547
                #collection: #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   548
                 #(#'FileBrowserV2UISpecifications::PanelSpec'
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   549
                    #name: 'HorizontalPanel'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   550
                    #level: 0
4596
6b90dc23de39 More VariablePanel handles
Stefan Vogel <sv@exept.de>
parents: 4595
diff changeset
   551
                    #snapMode: #both
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   552
                    #whichView: #first
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   553
                    #orientation: #horizontal
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   554
                    #visibility: #showDirectoryTree
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   555
                    #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   556
                   #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   557
                      #collection: #(
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   558
                       #(#SubCanvasSpec
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   559
                          #name: 'DirectoryTreeBrowser'
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   560
                          #hasHorizontalScrollBar: false
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   561
                          #hasVerticalScrollBar: false
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   562
                          #majorKey: #DirectoryTreeBrowser
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   563
                          #createNewApplication: true
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   564
                          #createNewBuilder: true
4884
cc5186c383b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
   565
                          #postBuildCallback: #postBuildDirectoryTree:
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   566
                        )
321c1729db5b initial checkin
penk
parents:
diff changeset
   567
                       #(#SubCanvasSpec
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   568
                          #name: 'DirectoryContentsBrowser'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   569
                          #hasHorizontalScrollBar: false
321c1729db5b initial checkin
penk
parents:
diff changeset
   570
                          #hasVerticalScrollBar: false
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   571
                          #majorKey: #DirectoryContentsBrowser
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   572
                          #createNewApplication: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   573
                          #createNewBuilder: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   574
                        )
321c1729db5b initial checkin
penk
parents:
diff changeset
   575
                       )
321c1729db5b initial checkin
penk
parents:
diff changeset
   576
                     
321c1729db5b initial checkin
penk
parents:
diff changeset
   577
                    )
4596
6b90dc23de39 More VariablePanel handles
Stefan Vogel <sv@exept.de>
parents: 4595
diff changeset
   578
                    #handles: #(#Any 0.225 1.0)
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   579
                  )
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   580
                 #(#SubCanvasSpec
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   581
                    #name: 'FileApplicationNoteBook'
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   582
                    #tabable: false
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   583
                    #hasHorizontalScrollBar: false
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   584
                    #hasVerticalScrollBar: false
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   585
                    #majorKey: #FileApplicationNoteBook
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   586
                    #createNewApplication: true
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   587
                    #createNewBuilder: true
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   588
                  )
321c1729db5b initial checkin
penk
parents:
diff changeset
   589
                 )
321c1729db5b initial checkin
penk
parents:
diff changeset
   590
               
321c1729db5b initial checkin
penk
parents:
diff changeset
   591
              )
4595
09c632988dad Add handles to resize VerticalPanel
Stefan Vogel <sv@exept.de>
parents: 4593
diff changeset
   592
              #handles: #(#Any 0.5 1.0)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   593
            )
321c1729db5b initial checkin
penk
parents:
diff changeset
   594
           #(#ViewSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   595
              #name: 'Box2'
321c1729db5b initial checkin
penk
parents:
diff changeset
   596
              #layout: #(#LayoutFrame 0 0 -20 1 0 1 0 1)
321c1729db5b initial checkin
penk
parents:
diff changeset
   597
              #level: 0
321c1729db5b initial checkin
penk
parents:
diff changeset
   598
              #component: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   599
             #(#SpecCollection
321c1729db5b initial checkin
penk
parents:
diff changeset
   600
                #collection: #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   601
                 #(#LabelSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   602
                    #label: 'NotifyLabel'
321c1729db5b initial checkin
penk
parents:
diff changeset
   603
                    #name: 'NotifyLabel'
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   604
                    #layout: #(#LayoutFrame 0 0 1 0.0 -220 1 1 1.0)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   605
                    #level: -1
321c1729db5b initial checkin
penk
parents:
diff changeset
   606
                    #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   607
                    #labelChannel: #notifyChannel
321c1729db5b initial checkin
penk
parents:
diff changeset
   608
                    #adjust: #left
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   609
                    #style: #(#FontDescription #helvetica #medium #roman 10)
4018
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
   610
                  )
4345
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   611
                 #(#ProgressIndicatorSpec
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   612
                    #name: 'ProgressIndicator1'
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   613
                    #layout: #(#LayoutFrame -260 1 4 0 -220 1 -4 1)
4345
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   614
                    #visibilityChannel: #activityVisibilityChannel
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   615
                    #backgroundColor: #(#Color 0.0 66.6667 66.6667)
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   616
                    #isActivityIndicator: true
7094ddfde188 *** empty log message ***
penk
parents: 4334
diff changeset
   617
                  )
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   618
                 #(#LabelSpec
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   619
                    #label: 'Shown Files'
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   620
                    #name: 'ShownFilesLabel'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   621
                    #layout: #(#LayoutFrame -220 1 1 0.0 -60 1 1 1.0)
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   622
                    #level: -1
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   623
                    #translateLabel: true
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   624
                    #labelChannel: #shownFiles
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   625
                    #style: #(#FontDescription #helvetica #medium #roman 10)
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   626
                    #adjust: #right
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   627
                  )
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   628
                 #(#LabelSpec
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   629
                    #label: 'M'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   630
                    #name: 'ModeLabel'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   631
                    #layout: #(#LayoutFrame -60 1 1 0.0 -50 1 1 1.0)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   632
                    #level: -1
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   633
                    #translateLabel: true
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   634
                    #labelChannel: #modeLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   635
                    #style: #(#FontDescription #helvetica #medium #roman 10)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   636
                    #adjust: #right
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   637
                  )
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   638
                 #(#LabelSpec
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   639
                    #label: 'L'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   640
                    #name: 'LineLabel'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   641
                    #layout: #(#LayoutFrame -50 1 1 0.0 -20 1 1 1.0)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   642
                    #level: -1
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   643
                    #translateLabel: true
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   644
                    #labelChannel: #cursorLineLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   645
                    #style: #(#FontDescription #helvetica #medium #roman 10)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   646
                    #adjust: #right
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   647
                  )
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   648
                 #(#LabelSpec
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   649
                    #label: 'C'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   650
                    #name: 'ColLabel'
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   651
                    #layout: #(#LayoutFrame -20 1 1 0.0 0 1 1 1.0)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   652
                    #level: -1
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   653
                    #translateLabel: true
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   654
                    #labelChannel: #cursorColLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   655
                    #style: #(#FontDescription #helvetica #medium #roman 10)
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
   656
                    #adjust: #right
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   657
                  )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   658
                 )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   659
               
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   660
              )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   661
            )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   662
           #(#LabelSpec
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   663
              #label: 'Preview'
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   664
              #name: 'PreviewLabel'
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   665
              #layout: #(#LayoutFrame 0 0.5 39 0 100 0.5 61 0)
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   666
              #level: 0
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   667
              #borderWidth: 1
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   668
              #visibilityChannel: #previewVisibleHolder
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   669
              #backgroundColor: #(#Color 86.9993 86.9993 86.9993)
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   670
              #translateLabel: true
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   671
            )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   672
           #(#ArbitraryComponentSpec
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   673
              #name: 'Preview'
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   674
              #layout: #(#LayoutFrame 0 0.5 63 0 -147 1 -319 1)
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   675
              #level: 1
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   676
              #visibilityChannel: #previewVisibleHolder
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   677
              #hasBorder: false
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   678
              #component: #ImageView
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   679
            )
4976
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   680
           #(#ViewSpec
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   681
              #name: 'ToolbarBox'
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   682
              #layout: #(#LayoutFrame 0 0 0 0 0 1 30 0)
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   683
              #level: 0
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   684
              #visibilityChannel: #toolBarVisibleHolder
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   685
              #component: 
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   686
             #(#SpecCollection
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   687
                #collection: #(
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   688
                 #(#ActionButtonSpec
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   689
                    #label: 'hideToolBarIcon'
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   690
                    #name: 'HideToolBarButton'
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   691
                    #layout: #(#LayoutFrame 0 0 0 0 13 0 30 0)
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   692
                    #activeHelpKey: #hideToolBar
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   693
                    #hasCharacterOrientedLabel: false
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   694
                    #translateLabel: true
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   695
                    #model: #hideToolbar
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   696
                    #postBuildCallback: #hideToolBarButtonCreated:
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   697
                  )
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   698
                 #(#MenuPanelSpec
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   699
                    #name: 'ToolBar'
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   700
                    #layout: #(#LayoutFrame 13 0 0 0 0 1 30 0)
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   701
                    #menu: #toolBarMainMenu
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   702
                    #textDefault: true
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   703
                  )
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   704
                 )
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   705
               
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   706
              )
86594f3f8a9b refactoring column visibility holder of DirectoryContentsBrowser
penk
parents: 4904
diff changeset
   707
            )
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   708
           )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   709
         
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   710
        )
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
   711
      )
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   712
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
   713
321c1729db5b initial checkin
penk
parents:
diff changeset
   714
!FileBrowserV2 class methodsFor:'menu specs'!
321c1729db5b initial checkin
penk
parents:
diff changeset
   715
321c1729db5b initial checkin
penk
parents:
diff changeset
   716
mainMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   717
    "This resource specification was automatically generated
321c1729db5b initial checkin
penk
parents:
diff changeset
   718
     by the MenuEditor of ST/X."
321c1729db5b initial checkin
penk
parents:
diff changeset
   719
321c1729db5b initial checkin
penk
parents:
diff changeset
   720
    "Do not manually edit this!! If it is corrupted,
321c1729db5b initial checkin
penk
parents:
diff changeset
   721
     the MenuEditor may not be able to read the specification."
321c1729db5b initial checkin
penk
parents:
diff changeset
   722
321c1729db5b initial checkin
penk
parents:
diff changeset
   723
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   724
     MenuEditor new openOnClass:FileBrowserV2 andSelector:#mainMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   725
     (Menu new fromLiteralArrayEncoding:(FileBrowserV2 mainMenu)) startUp
321c1729db5b initial checkin
penk
parents:
diff changeset
   726
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   727
321c1729db5b initial checkin
penk
parents:
diff changeset
   728
    <resource: #menu>
321c1729db5b initial checkin
penk
parents:
diff changeset
   729
321c1729db5b initial checkin
penk
parents:
diff changeset
   730
    ^ 
321c1729db5b initial checkin
penk
parents:
diff changeset
   731
     #(#Menu
321c1729db5b initial checkin
penk
parents:
diff changeset
   732
        #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   733
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   734
            #label: 'Browser'
321c1729db5b initial checkin
penk
parents:
diff changeset
   735
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   736
            #submenuChannel: #browserMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   737
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   738
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   739
            #label: 'Directory'
321c1729db5b initial checkin
penk
parents:
diff changeset
   740
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   741
            #submenuChannel: #directoryMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   742
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   743
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   744
            #label: 'File'
321c1729db5b initial checkin
penk
parents:
diff changeset
   745
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   746
            #submenuChannel: #fileMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   747
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   748
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   749
            #label: 'Edit'
321c1729db5b initial checkin
penk
parents:
diff changeset
   750
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   751
            #submenuChannel: #editMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   752
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   753
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   754
            #label: 'View'
321c1729db5b initial checkin
penk
parents:
diff changeset
   755
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   756
            #submenu: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   757
           #(#Menu
321c1729db5b initial checkin
penk
parents:
diff changeset
   758
              #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   759
               #(#MenuItem
4377
088d29ff7029 View menu in same order as popUp-View menu
Claus Gittinger <cg@exept.de>
parents: 4365
diff changeset
   760
                  #label: 'Details'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   761
                  #translateLabel: true
4377
088d29ff7029 View menu in same order as popUp-View menu
Claus Gittinger <cg@exept.de>
parents: 4365
diff changeset
   762
                  #submenuChannel: #viewInContentsBrowserMenu
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   763
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   764
               #(#MenuItem
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
   765
                  #label: 'Sort'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   766
                  #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   767
                  #submenuChannel: #sortMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   768
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   769
               #(#MenuItem
4377
088d29ff7029 View menu in same order as popUp-View menu
Claus Gittinger <cg@exept.de>
parents: 4365
diff changeset
   770
                  #label: 'Show'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   771
                  #translateLabel: true
4377
088d29ff7029 View menu in same order as popUp-View menu
Claus Gittinger <cg@exept.de>
parents: 4365
diff changeset
   772
                  #submenuChannel: #showMenuSpec
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   773
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   774
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   775
                  #label: '-'
321c1729db5b initial checkin
penk
parents:
diff changeset
   776
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   777
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   778
                  #label: 'Toolbar'
321c1729db5b initial checkin
penk
parents:
diff changeset
   779
                  #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   780
                  #hideMenuOnActivated: false
321c1729db5b initial checkin
penk
parents:
diff changeset
   781
                  #indication: #toolBarVisibleHolder
321c1729db5b initial checkin
penk
parents:
diff changeset
   782
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   783
               #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   784
                  #label: 'Path Entry && Filter'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   785
                  #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   786
                  #hideMenuOnActivated: false
321c1729db5b initial checkin
penk
parents:
diff changeset
   787
                  #indication: #filenameEntryFieldVisibleHolder
321c1729db5b initial checkin
penk
parents:
diff changeset
   788
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   789
               #(#MenuItem
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   790
                  #label: 'Preview'
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   791
                  #translateLabel: true
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   792
                  #hideMenuOnActivated: false
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   793
                  #indication: #previewVisibleHolder
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   794
                )
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
   795
               #(#MenuItem
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   796
                  #label: '-'
321c1729db5b initial checkin
penk
parents:
diff changeset
   797
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   798
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   799
                  #label: 'Update'
321c1729db5b initial checkin
penk
parents:
diff changeset
   800
                  #translateLabel: true
4782
491c8090264c update fixed
Claus Gittinger <cg@exept.de>
parents: 4775
diff changeset
   801
                  #itemValue: #updateCurrentDirectory
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   802
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   803
               )
321c1729db5b initial checkin
penk
parents:
diff changeset
   804
              nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   805
              nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   806
            )
321c1729db5b initial checkin
penk
parents:
diff changeset
   807
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   808
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   809
            #label: 'Tools'
321c1729db5b initial checkin
penk
parents:
diff changeset
   810
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   811
            #submenuChannel: #toolsMenuSpec
321c1729db5b initial checkin
penk
parents:
diff changeset
   812
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   813
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   814
            #label: 'CVS'
321c1729db5b initial checkin
penk
parents:
diff changeset
   815
            #translateLabel: true
4105
c2b7dee530fc *** empty log message ***
penk
parents: 4101
diff changeset
   816
            #submenuChannel: #cvsMenu
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   817
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   818
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   819
            #label: 'Help'
321c1729db5b initial checkin
penk
parents:
diff changeset
   820
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   821
            #startGroup: #right
321c1729db5b initial checkin
penk
parents:
diff changeset
   822
            #submenu: 
321c1729db5b initial checkin
penk
parents:
diff changeset
   823
           #(#Menu
321c1729db5b initial checkin
penk
parents:
diff changeset
   824
              #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   825
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   826
                  #label: 'FileBrowser Documentation'
321c1729db5b initial checkin
penk
parents:
diff changeset
   827
                  #translateLabel: true
4750
2a330de8d275 help menu items
Claus Gittinger <cg@exept.de>
parents: 4733
diff changeset
   828
                  #value: #openHTMLDocument:
2a330de8d275 help menu items
Claus Gittinger <cg@exept.de>
parents: 4733
diff changeset
   829
                  #argument: 'tools/fbrowser/TOP.html'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   830
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   831
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   832
                  #label: '-'
321c1729db5b initial checkin
penk
parents:
diff changeset
   833
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   834
               #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   835
                  #label: 'About FileBrowser...'
321c1729db5b initial checkin
penk
parents:
diff changeset
   836
                  #translateLabel: true
4750
2a330de8d275 help menu items
Claus Gittinger <cg@exept.de>
parents: 4733
diff changeset
   837
                  #value: #openAboutThisApplication  
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   838
                )
321c1729db5b initial checkin
penk
parents:
diff changeset
   839
               )
321c1729db5b initial checkin
penk
parents:
diff changeset
   840
              nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   841
              nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   842
            )
321c1729db5b initial checkin
penk
parents:
diff changeset
   843
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   844
         )
321c1729db5b initial checkin
penk
parents:
diff changeset
   845
        nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   846
        nil
321c1729db5b initial checkin
penk
parents:
diff changeset
   847
      )
321c1729db5b initial checkin
penk
parents:
diff changeset
   848
!
321c1729db5b initial checkin
penk
parents:
diff changeset
   849
4257
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   850
previewLabelMenu
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   851
    "This resource specification was automatically generated
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   852
     by the MenuEditor of ST/X."
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   853
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   854
    "Do not manually edit this!! If it is corrupted,
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   855
     the MenuEditor may not be able to read the specification."
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   856
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   857
    "
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   858
     MenuEditor new openOnClass:FileBrowserV2 andSelector:#previewLabelMenu
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   859
     (Menu new fromLiteralArrayEncoding:(FileBrowserV2 previewLabelMenu)) startUp
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   860
    "
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   861
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   862
    <resource: #menu>
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   863
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   864
    ^ 
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   865
     #(#Menu
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   866
        #(
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   867
         #(#MenuItem
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   868
            #label: 'Close Preview'
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   869
            #itemValue: #closePreview
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   870
            #translateLabel: true
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   871
          )
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   872
         )
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   873
        nil
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   874
        nil
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   875
      )
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   876
!
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
   877
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   878
toolBarMainMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   879
    "This resource specification was automatically generated
321c1729db5b initial checkin
penk
parents:
diff changeset
   880
     by the MenuEditor of ST/X."
321c1729db5b initial checkin
penk
parents:
diff changeset
   881
321c1729db5b initial checkin
penk
parents:
diff changeset
   882
    "Do not manually edit this!! If it is corrupted,
321c1729db5b initial checkin
penk
parents:
diff changeset
   883
     the MenuEditor may not be able to read the specification."
321c1729db5b initial checkin
penk
parents:
diff changeset
   884
321c1729db5b initial checkin
penk
parents:
diff changeset
   885
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   886
     MenuEditor new openOnClass:FileBrowserV2 andSelector:#toolBarMainMenu
321c1729db5b initial checkin
penk
parents:
diff changeset
   887
     (Menu new fromLiteralArrayEncoding:(FileBrowserV2 toolBarMainMenu)) startUp
321c1729db5b initial checkin
penk
parents:
diff changeset
   888
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
   889
321c1729db5b initial checkin
penk
parents:
diff changeset
   890
    <resource: #menu>
321c1729db5b initial checkin
penk
parents:
diff changeset
   891
321c1729db5b initial checkin
penk
parents:
diff changeset
   892
    ^ 
321c1729db5b initial checkin
penk
parents:
diff changeset
   893
     #(#Menu
321c1729db5b initial checkin
penk
parents:
diff changeset
   894
        #(
321c1729db5b initial checkin
penk
parents:
diff changeset
   895
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   896
            #activeHelpKey: #directoryUp
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   897
            #enabled: #enableDirectoryUp
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   898
            #label: 'DirectoryUp'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   899
            #itemValue: #doGoDirectoryUp
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   900
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   901
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   902
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #upArrowIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   903
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   904
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   905
            #label: ''
321c1729db5b initial checkin
penk
parents:
diff changeset
   906
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   907
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   908
            #activeHelpKey: #directoryBack
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   909
            #enabled: #enableBack
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   910
            #label: 'Back'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   911
            #itemValue: #doBack
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   912
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   913
            #isButton: true
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   914
            #submenuChannel: #menuDirHistoryBack
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   915
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #leftArrowIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   916
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   917
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   918
            #label: ''
321c1729db5b initial checkin
penk
parents:
diff changeset
   919
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   920
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   921
            #activeHelpKey: #directoryForward
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   922
            #enabled: #enableForward
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   923
            #label: 'Forward'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   924
            #itemValue: #doForward
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   925
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   926
            #isButton: true
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   927
            #submenuChannel: #menuDirHistoryForward
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   928
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #rightArrowIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   929
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   930
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
   931
            #label: ''
321c1729db5b initial checkin
penk
parents:
diff changeset
   932
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   933
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   934
            #activeHelpKey: #fileHome
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   935
            #enabled: #enableHome
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   936
            #label: 'Home'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   937
            #itemValue: #doGotoHomeDirectory
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   938
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   939
            #isButton: true
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   940
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #goHomeIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   941
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   942
         #(#MenuItem
4593
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   943
            #activeHelpKey: #fileGotoDefault
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   944
            #enabled: #enableGotoDefault
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   945
            #label: 'ST/X Default'
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   946
            #itemValue: #doGotoDefaultDirectory
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   947
            #translateLabel: true
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   948
            #isButton: true
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   949
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #gotoDefaultDirectoryIcon)
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   950
          )
a2b057480bfc added gotoDefault button
Claus Gittinger <cg@exept.de>
parents: 4581
diff changeset
   951
         #(#MenuItem
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   952
            #label: ''
321c1729db5b initial checkin
penk
parents:
diff changeset
   953
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   954
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   955
            #activeHelpKey: #fileHistory
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   956
            #enabled: #enableFileHistory
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   957
            #label: 'File History'
321c1729db5b initial checkin
penk
parents:
diff changeset
   958
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   959
            #isButton: true
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   960
            #submenuChannel: #menuFileHistory
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   961
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #historyIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   962
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   963
         #(#MenuItem
4601
d195ea663a1e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4596
diff changeset
   964
            #label: '-'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   965
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   966
         #(#MenuItem
4730
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   967
            #activeHelpKey: #cutFile
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   968
            #enabled: #hasSelection
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   969
            #label: 'Cut'
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   970
            #itemValue: #cutFiles
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   971
            #translateLabel: true
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   972
            #isButton: true
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   973
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #cutIcon)
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   974
          )
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
   975
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   976
            #activeHelpKey: #copyFile
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   977
            #enabled: #hasSelection
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   978
            #label: 'Copy'
4454
c85336c15975 cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents: 4451
diff changeset
   979
            #itemValue: #copyFiles
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   980
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   981
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   982
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #copyIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   983
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   984
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   985
            #activeHelpKey: #pasteFile
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   986
            #enabled: #canPaste
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   987
            #label: 'Paste'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   988
            #itemValue: #pasteFiles
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   989
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   990
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
   991
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #pasteIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   992
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
   993
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   994
            #activeHelpKey: #deleteFile
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
   995
            #enabled: #hasSelection
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   996
            #label: 'Delete'
4454
c85336c15975 cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents: 4451
diff changeset
   997
            #itemValue: #deleteFiles
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
   998
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
   999
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
  1000
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #deleteIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1001
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1002
         #(#MenuItem
4601
d195ea663a1e checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4596
diff changeset
  1003
            #label: '-'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1004
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1005
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1006
            #activeHelpKey: #fileIn
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1007
            #label: 'File In'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1008
            #itemValue: #fileFileIn
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1009
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
  1010
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
  1011
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #fileInIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1012
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1013
         #(#MenuItem
321c1729db5b initial checkin
penk
parents:
diff changeset
  1014
            #label: ''
321c1729db5b initial checkin
penk
parents:
diff changeset
  1015
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1016
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1017
            #activeHelpKey: #searchFile
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1018
            #label: 'Search File'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1019
            #itemValue: #doOpenSearchFile
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1020
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
  1021
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
  1022
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #searchIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1023
          )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1024
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1025
            #activeHelpKey: #addTerminal
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1026
            #label: 'VT100'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1027
            #itemValue: #doAddTerminal
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1028
            #translateLabel: true
321c1729db5b initial checkin
penk
parents:
diff changeset
  1029
            #isButton: true
4094
Claus Gittinger <cg@exept.de>
parents: 4085
diff changeset
  1030
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #shellWithoutTextIcon)
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1031
          )
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1032
         #(#MenuItem
4236
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1033
            #activeHelpKey: #make
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1034
            #enabled: #canMake
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1035
            #label: 'Make'
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1036
            #itemValue: #doMake
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1037
            #translateLabel: true
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1038
            #isButton: true
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1039
            #labelImage: #(#ResourceRetriever #AbstractFileBrowser #makeIcon)
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1040
          )
0a2732929a41 make in toolbar
Claus Gittinger <cg@exept.de>
parents: 4223
diff changeset
  1041
         #(#MenuItem
4688
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1042
            #label: 'viewDetails'
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1043
            #translateLabel: true
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1044
            #isButton: true
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1045
            #startGroup: #right
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1046
            #hideMenuOnActivated: false
4730
a5ec41cf750e *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4688
diff changeset
  1047
            #indication: #viewDetails
4688
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1048
            #labelImage: #(#ResourceRetriever nil #viewDetailsIcon)
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1049
          )
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1050
         #(#MenuItem
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1051
            #activeHelpKey: #toggleDetails
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1052
            #label: 'viewDetails'
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1053
            #translateLabel: true
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1054
            #isButton: true
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1055
            #startGroup: #right
4688
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1056
            #isVisible: false
4084
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1057
            #indication: #viewDetails
cac21759ab0e reduce colors for buttons
penk
parents: 4082
diff changeset
  1058
            #submenuChannel: #viewDetailsMenuSpec
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1059
            #labelImage: #(#ResourceRetriever nil #viewDetailsIcon)
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1060
          )
4688
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1061
         #(#MenuItem
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1062
            #label: ''
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1063
            #isButton: true
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1064
            #startGroup: #right
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1065
            #submenuChannel: #viewDetailsMenuSpec
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1066
            #labelImage: #(#ResourceRetriever #ToolbarIconLibrary #empty1x20Icon)
5aa8527d840f *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4651
diff changeset
  1067
          )
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1068
         )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1069
        nil
321c1729db5b initial checkin
penk
parents:
diff changeset
  1070
        nil
321c1729db5b initial checkin
penk
parents:
diff changeset
  1071
      )
321c1729db5b initial checkin
penk
parents:
diff changeset
  1072
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1073
321c1729db5b initial checkin
penk
parents:
diff changeset
  1074
!FileBrowserV2 methodsFor:'actions'!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1075
321c1729db5b initial checkin
penk
parents:
diff changeset
  1076
changeFileBrowserTitleTo:aString
321c1729db5b initial checkin
penk
parents:
diff changeset
  1077
321c1729db5b initial checkin
penk
parents:
diff changeset
  1078
    |string|
321c1729db5b initial checkin
penk
parents:
diff changeset
  1079
321c1729db5b initial checkin
penk
parents:
diff changeset
  1080
    string := 'FileBrowser ', aString.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1081
    self window label:string.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1082
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1083
321c1729db5b initial checkin
penk
parents:
diff changeset
  1084
doSpawn
321c1729db5b initial checkin
penk
parents:
diff changeset
  1085
321c1729db5b initial checkin
penk
parents:
diff changeset
  1086
    self saveRuntimeAspectValues.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1087
    self class openWithAspects:aspects withExtent:self builder window extent.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1088
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1089
321c1729db5b initial checkin
penk
parents:
diff changeset
  1090
hideFilenameEntryField
321c1729db5b initial checkin
penk
parents:
diff changeset
  1091
    self filenameEntryFieldVisibleHolder value:false.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1092
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1093
321c1729db5b initial checkin
penk
parents:
diff changeset
  1094
hideToolbar
321c1729db5b initial checkin
penk
parents:
diff changeset
  1095
    self toolBarVisibleHolder value:false.
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1096
!
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1097
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1098
toggleFileDetailsFor:anItem
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1099
    |viewDetails|
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1100
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1101
    viewDetails := self viewDetails value not.
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1102
    self viewDetails value:viewDetails.
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1103
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1104
    viewDetails ifTrue:[
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1105
        anItem activeHelpKey:#hideFileDetails.
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1106
        anItem label:(self class viewNoDetailsIcon).
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1107
    ] ifFalse:[
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1108
        anItem activeHelpKey:#showFileDetails.
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1109
        anItem label:(self class viewDetailsIcon).
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1110
    ].
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1111
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1112
321c1729db5b initial checkin
penk
parents:
diff changeset
  1113
!FileBrowserV2 methodsFor:'aspects'!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1114
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1115
cursorColLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1116
    ^ self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1117
        aspectFor:#cursorColLabelHolder 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1118
        ifAbsent:[
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1119
            self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1120
                applicationNamed:#FileApplicationNoteBook
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1121
                ifPresentDo:[:appl | appl cursorColLabelHolder].
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1122
        ]
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1123
!
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1124
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1125
cursorLineLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1126
    ^ self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1127
        aspectFor:#cursorLineLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1128
        ifAbsent:[
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1129
            self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1130
                applicationNamed:#FileApplicationNoteBook
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1131
                ifPresentDo:[:appl | appl cursorLineLabelHolder].
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1132
        ]
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1133
!
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1134
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1135
fileEntryFieldHolder
321c1729db5b initial checkin
penk
parents:
diff changeset
  1136
321c1729db5b initial checkin
penk
parents:
diff changeset
  1137
    fileEntryFieldHolder isNil ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1138
        fileEntryFieldHolder := ValueHolder new.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1139
        fileEntryFieldHolder addDependent:self.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1140
    ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1141
    ^ fileEntryFieldHolder.
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1142
!
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1143
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1144
listOfDeviceDrives
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1145
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1146
    listOfDeviceDrives isNil ifTrue:[
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1147
        listOfDeviceDrives := Filename volumes.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1148
    ].
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1149
    ^ listOfDeviceDrives
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1150
!
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1151
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1152
modeLabelHolder
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1153
    ^ self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1154
        aspectFor:#modeLabelHolder 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1155
        ifAbsent:[
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1156
            self 
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1157
                applicationNamed:#FileApplicationNoteBook
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1158
                ifPresentDo:[:appl | appl modeLabelHolder].
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1159
        ]
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1160
!
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1161
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1162
selectedDeviceDrive
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1163
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1164
    selectedDeviceDrive isNil ifTrue:[
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1165
        selectedDeviceDrive := self listOfDeviceDrives first asValue.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1166
        selectedDeviceDrive addDependent:self.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1167
    ].
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1168
    ^ selectedDeviceDrive
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1169
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1170
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1171
!FileBrowserV2 methodsFor:'aspects-visibility'!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1172
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1173
driveSelectorVisible
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1174
    ^ self systemIsDOS
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1175
!
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1176
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1177
filenameEntryFieldVisibleHolder
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1178
    " aspect for show FileEntryField "
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1179
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1180
    ^ self aspectFor:#filenameEntryFieldVisibleHolder ifAbsent:[true asValue]
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1181
!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1182
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1183
previewVisibleHolder
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1184
    " aspect for show preview"
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1185
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1186
    ^ self aspectFor:#previewVisibleHolder ifAbsent:[false asValue]
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1187
!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1188
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1189
toolBarVisibleHolder
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1190
    " aspect for show toolbar"
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1191
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1192
    ^ self aspectFor:#toolBarVisibleHolder ifAbsent:[true asValue]
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1193
! !
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1194
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1195
!FileBrowserV2 methodsFor:'change & update'!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1196
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1197
currentFileNameHolderChanged
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1198
4775
674138a9faee code cleanup
Claus Gittinger <cg@exept.de>
parents: 4774
diff changeset
  1199
    |newEntryValue nSelected files volume|
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1200
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1201
    files := self currentFileNameHolder value.
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1202
    nSelected := files size.
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1203
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1204
    nSelected == 0 ifTrue:[
4454
c85336c15975 cut and copy files in toolbarmenu goes not to contentsbrowser only
penk
parents: 4451
diff changeset
  1205
        newEntryValue := ''.
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1206
    ] ifFalse:[
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1207
        nSelected == 1 ifTrue:[
4775
674138a9faee code cleanup
Claus Gittinger <cg@exept.de>
parents: 4774
diff changeset
  1208
            newEntryValue := files first.
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1209
        ] ifFalse:[
4771
9290fdb65a5d #getCommonForCurrentFiles renamed to #commonPrefixOfSelectedFiles
Claus Gittinger <cg@exept.de>
parents: 4750
diff changeset
  1210
            newEntryValue := self commonPrefixOfSelectedFiles.
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1211
        ].
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1212
    ].
4390
e9e2343d5569 no expand on change filename holder for entry field anymore
penk
parents: 4380
diff changeset
  1213
    self fileEntryFieldHolder value:(newEntryValue asString) withoutNotifying:self.
4775
674138a9faee code cleanup
Claus Gittinger <cg@exept.de>
parents: 4774
diff changeset
  1214
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1215
    OperatingSystem isMSWINDOWSlike ifTrue:[
4775
674138a9faee code cleanup
Claus Gittinger <cg@exept.de>
parents: 4774
diff changeset
  1216
        volume := (nSelected >= 1) ifTrue:[files first volume] ifFalse:nil.    
674138a9faee code cleanup
Claus Gittinger <cg@exept.de>
parents: 4774
diff changeset
  1217
        self selectedDeviceDrive value:volume.
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1218
    ].
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1219
    self updatePreview.
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1220
!
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1221
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1222
fileEntryFieldHolderChanged
4507
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1223
    |fileName fileNameString answer|
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1224
4507
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1225
    fileNameString := fileEntryFieldHolder value withoutSeparators.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1226
    fileName := fileNameString asFilename.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1227
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1228
    (fileName exists) ifFalse:[ 
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1229
        pathEntryField flash.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1230
4531
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1231
"/        answer := OptionBox 
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1232
"/           request:(resources string:'No file or directory named "%1" exists.\\Create ?' with:fileNameString allBold) withCRs
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1233
"/           buttonLabels:#('Create as File' 'Create as Directory' 'Cancel')
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1234
"/           values:#(createFile createDirectory nil)
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1235
"/           default:nil.
c4783f6dfd7a menu reordered
Claus Gittinger <cg@exept.de>
parents: 4507
diff changeset
  1236
"/
4507
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1237
        answer isNil ifTrue:[
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1238
            ^ self.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1239
        ].
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1240
        [
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1241
            answer == #createFile ifTrue:[
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1242
                fileName directory recursiveMakeDirectory.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1243
                fileName createAsEmptyFile.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1244
            ] ifFalse:[
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1245
                answer == #createDirectory ifTrue:[
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1246
                    fileName recursiveMakeDirectory.
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1247
                ]
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1248
            ].
4819
e43202c670cd #errorSignal -> #description
Stefan Vogel <sv@exept.de>
parents: 4782
diff changeset
  1249
        ] on:OperatingSystem accessDeniedErrorSignal do:[:ex |
e43202c670cd #errorSignal -> #description
Stefan Vogel <sv@exept.de>
parents: 4782
diff changeset
  1250
            Dialog warn:'Error: ' , ex description.
e43202c670cd #errorSignal -> #description
Stefan Vogel <sv@exept.de>
parents: 4782
diff changeset
  1251
        ].
4507
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1252
        ^ self
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1253
    ].
7aeed604c4db added createFile/directory option from entryField
Claus Gittinger <cg@exept.de>
parents: 4454
diff changeset
  1254
    self currentFileNameHolder value:(OrderedCollection with:fileName).
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1255
!
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1256
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1257
selectedDeviceDriveChanged
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1258
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1259
    | newDrive curSel newFile|
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1260
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1261
    newDrive := self selectedDeviceDrive value.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1262
    curSel := self currentFileNameHolder value.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1263
    curSel notEmpty ifTrue:[
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1264
        curSel first volume = newDrive ifTrue:[ ^self].
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1265
    ].
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1266
    newFile := newDrive asFilename.
4651
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1267
    newFile isReadable ifTrue:[
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1268
        self gotoFile:newFile.
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1269
        ^self.
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1270
    ].
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1271
    curSel notEmpty ifTrue:[
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1272
        self selectedDeviceDrive value:(curSel first volume).
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1273
    ] ifFalse:[
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1274
        self selectedDeviceDrive value:'C:'.
ea57bfa65b85 *** empty log message ***
penk
parents: 4647
diff changeset
  1275
    ].
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1276
!
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1277
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1278
selectedImage
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1279
    |files selectedFile mime img|
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1280
4451
6f06f760a64b only open preview for selected files not for directories
penk
parents: 4390
diff changeset
  1281
    files := self currentSelectedFiles.
4259
d4039fd2e7da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4257
diff changeset
  1282
    files size >= 1 ifFalse:[
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1283
        ^ nil
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1284
    ].
4259
d4039fd2e7da *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4257
diff changeset
  1285
    selectedFile := files last.    
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1286
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1287
    mime := MIMETypes mimeTypeForFilename:selectedFile.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1288
    (mime notNil and:[mime startsWith:'image/']) ifTrue:[
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1289
        img := Image fromFile:selectedFile.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1290
        ^ img
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1291
    ].
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1292
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1293
    ^ nil.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1294
!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1295
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1296
showImagePreview:image
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1297
    |imgView|
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1298
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1299
    imgView := builder componentAt:#Preview.
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1300
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1301
    imgView adjust:#fitBig.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1302
    imgView image:image.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1303
!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1304
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1305
showPreview
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1306
    |shownImage lbl previewLabel|
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1307
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1308
    shownImage := self selectedImage.
4300
ad3cc44d8aeb ifNotNil eliminated
Claus Gittinger <cg@exept.de>
parents: 4290
diff changeset
  1309
    lbl := shownImage isNil ifTrue:'Preview' ifFalse:[ shownImage fileName asFilename baseName ].
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1310
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1311
    previewLabel := builder componentAt:#PreviewLabel.
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1312
    previewLabel label:lbl; forceResizeHorizontally.     
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1313
    self enqueueMessage:#'showImagePreview:' for:self arguments:(Array with:shownImage).        
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1314
!
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1315
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1316
update:something with:aParameter from:changedObject
321c1729db5b initial checkin
penk
parents:
diff changeset
  1317
321c1729db5b initial checkin
penk
parents:
diff changeset
  1318
4647
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1319
    changedObject == self selectedDeviceDrive ifTrue:[
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1320
        self selectedDeviceDriveChanged.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1321
        ^ self.
2fbffd0cd350 changes for windows fileBrowser
penk
parents: 4626
diff changeset
  1322
    ].
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1323
    changedObject == self fileEntryFieldHolder ifTrue:[
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1324
        self fileEntryFieldHolderChanged.
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1325
        ^ self.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1326
    ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1327
    changedObject == self currentFileNameHolder ifTrue:[
4011
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1328
        super update:something with:aParameter from:changedObject.
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1329
        self currentFileNameHolderChanged.
73fa35b1963b *** empty log message ***
penk
parents: 4008
diff changeset
  1330
        ^ self.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1331
    ].
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1332
    (changedObject == self previewVisibleHolder) ifTrue:[
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1333
        self updatePreview.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1334
        ^ self.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1335
    ].
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1336
    (changedObject == self toolBarVisibleHolder 
321c1729db5b initial checkin
penk
parents:
diff changeset
  1337
    or:[changedObject == self filenameEntryFieldVisibleHolder]) ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1338
        self updateToolVisibility.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1339
        ^ self.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1340
    ].
4085
9e58ddfa6969 sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents: 4084
diff changeset
  1341
    (changedObject == self sortBlockProperty or:[changedObject == self sortDirectoriesBeforeFiles]) ifTrue:[
9e58ddfa6969 sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents: 4084
diff changeset
  1342
        self sortFileListsBy:(self sortBlockProperty value) withReverse:false.
9e58ddfa6969 sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents: 4084
diff changeset
  1343
        ^ self.
9e58ddfa6969 sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents: 4084
diff changeset
  1344
    ].             
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1345
321c1729db5b initial checkin
penk
parents:
diff changeset
  1346
    ^ super update:something with:aParameter from:changedObject.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1347
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1348
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1349
updatePreview
4257
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1350
    |previewLabel imgView shownImage plug|
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1351
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1352
    shownImage := nil.
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1353
    imgView := builder componentAt:#Preview.
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1354
    previewLabel := builder componentAt:#PreviewLabel.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1355
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1356
    self previewVisibleHolder value ifTrue:[
4257
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1357
        plug := Plug new.
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1358
        plug respondTo:#closePreview with:[ self previewVisibleHolder value:false ].
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1359
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1360
        previewLabel menuHolder:(self class previewLabelMenu decodeAsLiteralArray).
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1361
        previewLabel menuPerformer:plug asValue.
6b9e2485f973 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4256
diff changeset
  1362
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1363
        previewProcess notNil ifTrue:[
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1364
            previewProcess terminate
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1365
        ].
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1366
        previewProcess := [
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1367
                                |imgView oldBg shownImage lbl|
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1368
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1369
                                oldBg := previewLabel backgroundColor.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1370
                                previewLabel backgroundColor:(Color red lightened lightened).
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1371
                                [
4262
3523a3a5aac3 preview
Claus Gittinger <cg@exept.de>
parents: 4259
diff changeset
  1372
                                    self showPreview.
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1373
                                    previewProcess := nil.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1374
                                ] ensure:[
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1375
                                    previewLabel backgroundColor:oldBg.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1376
                                ].
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1377
                          ] forkAt:7.
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1378
    ] ifFalse:[
4254
3b184dbdb7de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4252
diff changeset
  1379
        imgView notNil ifTrue:[
3b184dbdb7de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4252
diff changeset
  1380
            imgView image:nil.
3b184dbdb7de *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4252
diff changeset
  1381
        ]
4252
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1382
    ].
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1383
!
9e1f4b2eeedd experimental: preview
Claus Gittinger <cg@exept.de>
parents: 4236
diff changeset
  1384
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1385
updateToolVisibility
321c1729db5b initial checkin
penk
parents:
diff changeset
  1386
    |builder toolBar filenameEntryField vPanel topOffset visible d|
321c1729db5b initial checkin
penk
parents:
diff changeset
  1387
321c1729db5b initial checkin
penk
parents:
diff changeset
  1388
    builder := self builder.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1389
321c1729db5b initial checkin
penk
parents:
diff changeset
  1390
    topOffset := 0.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1391
    visible := self toolBarVisibleHolder value.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1392
    visible ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1393
        toolBar := builder componentAt:#ToolbarBox.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1394
        topOffset := topOffset + toolBar height.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1395
    ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1396
321c1729db5b initial checkin
penk
parents:
diff changeset
  1397
    visible := self filenameEntryFieldVisibleHolder value.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1398
    visible ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1399
        filenameEntryField := builder componentAt:#FilenameEntryFieldBox.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1400
        d := filenameEntryField layout bottomOffset - filenameEntryField layout topOffset.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1401
        filenameEntryField layout topOffset:topOffset bottomOffset:topOffset + d.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1402
        topOffset := topOffset + filenameEntryField height.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1403
        filenameEntryField container notNil ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1404
            filenameEntryField containerChangedSize.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1405
        ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1406
    ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1407
321c1729db5b initial checkin
penk
parents:
diff changeset
  1408
    vPanel := builder componentAt:#BrowserBox.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1409
    vPanel layout topOffset:topOffset+1.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1410
    vPanel container notNil ifTrue:[
321c1729db5b initial checkin
penk
parents:
diff changeset
  1411
        vPanel containerChangedSize.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1412
    ].
321c1729db5b initial checkin
penk
parents:
diff changeset
  1413
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1414
3957
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1415
!FileBrowserV2 methodsFor:'event handling'!
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1416
4904
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1417
crPressedInPathField
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1418
    |path fn|
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1419
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1420
    path := fileEntryFieldHolder value.
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1421
    fn := path asFilename.
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1422
    (fn exists and:[ fn isDirectory not ]) ifTrue:[
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1423
        self openApplForFile:path.
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1424
    ]
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1425
!
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1426
3957
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1427
processEvent:anEvent
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1428
    "filter keyboard events.
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1429
     Return true, if I have eaten the event"
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1430
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1431
    |focusView key rawKey fileName|
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1432
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1433
    anEvent isKeyPressEvent ifTrue:[
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1434
        focusView := anEvent targetView.
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1435
        key := anEvent key.
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1436
        rawKey := anEvent rawKey.
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1437
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1438
        (focusView isSameOrComponentOf:self window) ifTrue:[
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1439
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1440
            ((focusView == pathEntryField) not) ifTrue:[ ^ false].
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1441
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1442
            (key == #Return) ifTrue:[
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1443
                fileName := pathEntryField list first asFilename.
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1444
                (fileName exists and:[fileName isDirectory not]) ifTrue:[
4101
cc9cdc23b789 select & doubleClick
Claus Gittinger <cg@exept.de>
parents: 4094
diff changeset
  1445
                    self openApplForFile:fileName
3957
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1446
                ].
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1447
            ].
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1448
        ]
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1449
    ].
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1450
    ^ false
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1451
! !
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1452
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1453
!FileBrowserV2 methodsFor:'startup & release'!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1454
3954
78e29a3ea4c1 next stage
penk
parents: 3953
diff changeset
  1455
closeRequest
5010
27aa6fa93dcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4976
diff changeset
  1456
    self 
27aa6fa93dcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4976
diff changeset
  1457
        applicationNamed:#FileApplicationNoteBook 
27aa6fa93dcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4976
diff changeset
  1458
        ifPresentDo:[:appl | appl tryCloseApplications ifFalse:[^ self] ]. 
27aa6fa93dcd *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4976
diff changeset
  1459
3954
78e29a3ea4c1 next stage
penk
parents: 3953
diff changeset
  1460
    ^ super closeRequest.
78e29a3ea4c1 next stage
penk
parents: 3953
diff changeset
  1461
!
78e29a3ea4c1 next stage
penk
parents: 3953
diff changeset
  1462
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1463
hideFilenameEntryFieldButtonCreated:aButton
321c1729db5b initial checkin
penk
parents:
diff changeset
  1464
321c1729db5b initial checkin
penk
parents:
diff changeset
  1465
    aButton passiveLevel:(MenuPanel defaultLevel). 
321c1729db5b initial checkin
penk
parents:
diff changeset
  1466
    aButton activeLevel:-1.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1467
    aButton backgroundColor:(MenuPanel defaultBackgroundColor).
321c1729db5b initial checkin
penk
parents:
diff changeset
  1468
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1469
321c1729db5b initial checkin
penk
parents:
diff changeset
  1470
hideToolBarButtonCreated:aButton
321c1729db5b initial checkin
penk
parents:
diff changeset
  1471
321c1729db5b initial checkin
penk
parents:
diff changeset
  1472
    aButton passiveLevel:(MenuPanel defaultLevel). 
321c1729db5b initial checkin
penk
parents:
diff changeset
  1473
    aButton activeLevel:-1.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1474
    aButton backgroundColor:(MenuPanel defaultBackgroundColor).
321c1729db5b initial checkin
penk
parents:
diff changeset
  1475
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1476
321c1729db5b initial checkin
penk
parents:
diff changeset
  1477
initialize
321c1729db5b initial checkin
penk
parents:
diff changeset
  1478
321c1729db5b initial checkin
penk
parents:
diff changeset
  1479
    self masterApplication:nil.
4022
87ab8e8c5f80 instable next try for back forward history
penk
parents: 4018
diff changeset
  1480
    self dirHistory resetForwardBackward.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1481
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1482
321c1729db5b initial checkin
penk
parents:
diff changeset
  1483
makeDependent
4008
ea273bf34f63 *** empty log message ***
penk
parents: 4004
diff changeset
  1484
4004
f97168a68093 *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 3982
diff changeset
  1485
    super makeDependent.
4085
9e58ddfa6969 sort will be triggered from the FileBrowserV2 instance not from AbstractFileBrowser anymore
penk
parents: 4084
diff changeset
  1486
    self sortBlockProperty addDependent:self.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1487
    self filenameEntryFieldVisibleHolder addDependent:self.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1488
    self toolBarVisibleHolder addDependent:self.
4255
77ff43e1c3dc *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 4254
diff changeset
  1489
    self previewVisibleHolder addDependent:self.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1490
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1491
4884
cc5186c383b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  1492
postBuildDirectoryTree:aWidget
cc5186c383b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  1493
    aWidget application multipleSelect:true.
cc5186c383b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  1494
!
cc5186c383b1 checkin from browser
Claus Gittinger <cg@exept.de>
parents: 4819
diff changeset
  1495
4365
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1496
postBuildEditField:aWidget
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1497
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1498
    pathEntryField := aWidget.
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1499
    aWidget model:self fileEntryFieldHolder.
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1500
    aWidget listHolder:self dirHistory.
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1501
    aWidget level:-1.
4904
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1502
    aWidget acceptIfUnchanged:true.
bf2dd6a13fa5 cr in path-edit field
Claus Gittinger <cg@exept.de>
parents: 4884
diff changeset
  1503
    aWidget crAction:[ self crPressedInPathField ].
4365
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1504
!
7b6b9ece4567 *** empty log message ***
penk
parents: 4345
diff changeset
  1505
4018
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1506
postBuildFilterBox:aWidget
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1507
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1508
    self filterValueBox value:aWidget.
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1509
    self filterBackgroundColor value:aWidget backgroundColor.
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1510
!
43e02c59719d *** empty log message ***
penk
parents: 4015
diff changeset
  1511
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1512
postBuildPathField:aWidget
321c1729db5b initial checkin
penk
parents:
diff changeset
  1513
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
  1514
        set the pramters that not can be changed in the window spec
321c1729db5b initial checkin
penk
parents:
diff changeset
  1515
    "
321c1729db5b initial checkin
penk
parents:
diff changeset
  1516
3957
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1517
    pathEntryField := aWidget.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1518
    aWidget level:-1.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1519
321c1729db5b initial checkin
penk
parents:
diff changeset
  1520
"/    sClr := aWidget shadowColor.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1521
"/    lClr := aWidget lightColor.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1522
"/    sClr := (self builder componentAt:#ToolBar) shadowColor.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1523
"/    lClr := (self builder componentAt:#ToolBar) lightColor.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1524
321c1729db5b initial checkin
penk
parents:
diff changeset
  1525
"/    aWidget backgroundColor:(aWidget superView viewBackground).
321c1729db5b initial checkin
penk
parents:
diff changeset
  1526
"/    aWidget shadowColor:sClr.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1527
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1528
321c1729db5b initial checkin
penk
parents:
diff changeset
  1529
postBuildPathViewBox:aWidget
321c1729db5b initial checkin
penk
parents:
diff changeset
  1530
321c1729db5b initial checkin
penk
parents:
diff changeset
  1531
    aWidget backgroundColor:(MenuPanel defaultBackgroundColor).
321c1729db5b initial checkin
penk
parents:
diff changeset
  1532
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1533
321c1729db5b initial checkin
penk
parents:
diff changeset
  1534
postBuildWith:aBuilder
321c1729db5b initial checkin
penk
parents:
diff changeset
  1535
321c1729db5b initial checkin
penk
parents:
diff changeset
  1536
    super postBuildWith:aBuilder.
3980
3f8311a42ca7 menus reorganized
Claus Gittinger <cg@exept.de>
parents: 3973
diff changeset
  1537
    self updateToolVisibility.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1538
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1539
321c1729db5b initial checkin
penk
parents:
diff changeset
  1540
postOpenWith:aBuilder
321c1729db5b initial checkin
penk
parents:
diff changeset
  1541
4071
f923c8257818 *** empty log message ***
penk
parents: 4060
diff changeset
  1542
    super postOpenWith:aBuilder.
4577
52c443045ead *** empty log message ***
penk
parents: 4531
diff changeset
  1543
    self currentFileNameHolderChangedForCommon.
4071
f923c8257818 *** empty log message ***
penk
parents: 4060
diff changeset
  1544
    self currentFileNameHolderChanged.
4027
c662c75b6bf9 *** empty log message ***
penk
parents: 4022
diff changeset
  1545
3957
e93370f11c10 open filename in fileentryfield on enter
penk
parents: 3954
diff changeset
  1546
    self windowGroup addPreEventHook:self.
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1547
!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1548
321c1729db5b initial checkin
penk
parents:
diff changeset
  1549
release
321c1729db5b initial checkin
penk
parents:
diff changeset
  1550
321c1729db5b initial checkin
penk
parents:
diff changeset
  1551
    self saveRuntimeAspectValues.
321c1729db5b initial checkin
penk
parents:
diff changeset
  1552
    ^ super release
321c1729db5b initial checkin
penk
parents:
diff changeset
  1553
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1554
321c1729db5b initial checkin
penk
parents:
diff changeset
  1555
!FileBrowserV2 class methodsFor:'documentation'!
321c1729db5b initial checkin
penk
parents:
diff changeset
  1556
321c1729db5b initial checkin
penk
parents:
diff changeset
  1557
version
5120
e4c15c9d82ba *** empty log message ***
Claus Gittinger <cg@exept.de>
parents: 5010
diff changeset
  1558
    ^ '$Header: /cvs/stx/stx/libtool/FileBrowserV2.st,v 1.87 2003-08-28 11:18:00 cg Exp $'
3892
321c1729db5b initial checkin
penk
parents:
diff changeset
  1559
! !
321c1729db5b initial checkin
penk
parents:
diff changeset
  1560
321c1729db5b initial checkin
penk
parents:
diff changeset
  1561
FileBrowserV2 initialize!