Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
module Fox
#
# File item
#
class FXFileItem < FXIconItem
# The file association object for this item [FXFileAssoc]
attr_reader :assoc
# The file size for this item [Integer]
attr_reader :size
# Date for this item [Time]
attr_reader :date
# Returns an initialized FXFileItem instance
def initialize(text, bi=nil, mi=nil, ptr=nil) # :yields: theFileItem
end
# Return +true+ if this is a file item
def file?; end
# Return +true+ if this is a directory item
def directory?; end
# Return +true+ if this is a share item
def share?; end
# Return +true+ if this is an executable item
def executable?; end
# Return +true+ if this is a symbolic link item
def symlink?; end
# Return +true+ if this is a character device item
def chardev?; end
# Return +true+ if this is a block device item
def blockdev?; end
# Return +true+ if this is an FIFO item
def fifo?; end
# Return +true+ if this is a socket
def socket?; end
end
#
# A File List widget provides an icon rich view of the file system.
# It automatically updates itself periodically by re-scanning the file system
# for any changes. As it scans the displayed directory, it automatically
# determines the icons to be displayed by consulting the file associations registry
# settings. A number of messages can be sent to the File List to control the
# filter pattern, sort category, sorting order, case sensitivity, and hidden file
# display mode.
# The File list widget supports drags and drops of files.
#
# === File List options
#
# +FILELIST_SHOWHIDDEN+:: Show hidden files or directories
# +FILELIST_SHOWDIRS+:: Show only directories
# +FILELIST_SHOWFILES+:: Show only files
# +FILELIST_SHOWIMAGES+:: Show preview of images
# +FILELIST_NO_OWN_ASSOC+:: Do not create associations for files
# +FILELIST_NO_PARENT+:: Suppress display of '.' and '..'
#
# === Message identifiers
#
# +ID_SORT_BY_NAME+:: Sort by name
# +ID_SORT_BY_TYPE+:: Sort by type
# +ID_SORT_BY_SIZE+:: Sort by size
# +ID_SORT_BY_TIME+:: Sort by access time
# +ID_SORT_BY_USER+:: Sort by user name
# +ID_SORT_BY_GROUP+:: Sort by group name
# +ID_SORT_REVERSE+:: Reverse sort order
# +ID_DIRECTORY_UP+:: Move up one directory
# +ID_SET_PATTERN+:: Set match pattern
# +ID_SET_DIRECTORY+:: Set directory
# +ID_SHOW_HIDDEN+:: Show hidden files
# +ID_HIDE_HIDDEN+:: Hide hidden files
# +ID_TOGGLE_HIDDEN+:: Toggle visibility of hidden files
# +ID_REFRESHTIMER+:: x
# +ID_OPENTIMER+:: x
# +ID_TOGGLE_IMAGES+:: Toggle display of images
# +ID_REFRESH+:: Refresh immediately
#
class FXFileList < FXIconList
# Current file [String]
attr_accessor :currentFile
# Current directory [String]
attr_accessor :directory
# Wildcard matching pattern [String]
attr_accessor :pattern
# Wildcard matching mode [Integer]
attr_accessor :matchMode
# File associations [FXFileDict]
attr_accessor :associations
# Image size for preview images [Integer]
attr_accessor :imageSize
# Construct a file list
def initialize(p, target=nil, selector=0, opts=0, x=0, y=0, width=0, height=0) # :yields: theFileList
end
#
# Set the current file to _filename_.
# If _notify_ is +true+, a +SEL_CHANGED+ message is sent to the
# file list's message target after the current item has changed.
# If this change causes the selected item(s) to change (because
# the file list is operating in browse-select mode), +SEL_SELECTED+ and
# +SEL_DESELECTED+ may be sent to the message target as well.
#
def setCurrentFile(filename, notify=false); end
#
# Scan the current directory and update the items if needed, or if _force_ is +true+.
#
def scan(force=true); end
#
# Return +true+ if item is a directory.
# Raises IndexError if _index_ is out of bounds.
#
def itemDirectory?(index); end
#
# Return +true+ if item is a share.
# Raises IndexError if _index_ is out of bounds.
#
def itemShare?(index); end
#
# Return +true+ if item is a file.
# Raises IndexError if _index_ is out of bounds.
#
def itemFile?(index); end
#
# Return +true+ if item is executable.
# Raises IndexError if _index_ is out of bounds.
#
def itemExecutable?(index); end
#
# Return name of item at index.
# Raises IndexError if _index_ is out of bounds.
#
def itemFilename(index); end
#
# Return full pathname of item at index.
# Raises IndexError if _index_ is out of bounds.
#
def itemPathname(index); end
#
# Return file association of item at index.
# Raises IndexError if _index_ is out of bounds.
#
def itemAssoc(index); end
# Return +true+ if showing hidden files.
def hiddenFilesShown?; end
# Show or hide hidden files.
def hiddenFilesShown=(shown); end
# Return +true+ if showing directories only.
def onlyDirectoriesShown?; end
# Show directories only.
def onlyDirectoriesShown=(shown); end
# Return +true+ if showing files only.
def onlyFilesShown?; end
# Show files only.
def onlyFilesShown=(shown); end
#
# If _shown_ is +true+, the file list will show preview images;
# otherwise it won't.
#
def imagesShown=(shown); end
#
# Return +true+ if the file list is showing preview images.
#
def imagesShown? ; end
#
# Return +true+ if parent directories are shown.
#
def parentDirsShown? ; end
#
# Set whether parent directories are shown to +true+ or +false+.
#
def parentDirsShown=(shown); end
end
end