Sha256: 87caecb48d7e77c3700e91edc57bb302520a7a94f28ba1c98c0eb5401574ab58
Contents?: true
Size: 626 Bytes
Versions: 1
Compression:
Stored size: 626 Bytes
Contents
# # A simple class to show a filerequester that remembers the # last directory visited. # class FXMapFileDialog < FXFileDialog @@last_path = nil KNOWN_EXTENSIONS = [ "Map Files (*.map,*.ifm,*.inf,*.t,*.t3m)", "All Files (*)", ] def initialize(parent, title, patterns = KNOWN_EXTENSIONS) opts = 0 if RUBY_PLATFORM =~ /mswin/ opts |= FILEMATCH_NOESCAPE end super(parent, title, opts) setPatternList(patterns) self.directory = @@last_path if @@last_path if execute != 0 @@last_path = filename.sub(/[\\\/][^\\\/]+$/, '') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ifmapper-0.9.6 | lib/IFMapper/FXMapFileDialog.rb |