topic "FileList";
[i448;a25;kKO9;2 $$1,0#37138531426314131252341829483380:class]
[l288;2 $$2,0#27521748481378242620020725143825:desc]
[0 $$3,0#96390100711032703541132217272105:end]
[H6;0 $$4,0#05600065144404261032431302351956:begin]
[i448;a25;kKO9;2 $$5,0#37138531426314131252341829483370:item]
[l288;a4;*@5;1 $$6,6#70004532496200323422659154056402:requirement]
[l288;i1121;b17;O9;~~~.1408;2 $$7,0#10431211400427159095818037425705:param]
[i448;b42;O9;2 $$8,8#61672508125594000341940100500538:tparam]
[b42;2 $$9,9#13035079074754324216151401829390:normal]
[2 $$0,0#00000000000000000000000000000000:Default]
[{_} 
[ {{10000@3 [s0;%% [*@(229)4 FileList]]}}&]
[s3; &]
[s1;:FileList`:`:class: [@(0.0.255)3 class][3 _][*3 FileList][3 _:_][@(0.0.255)3 public][3 _][*@3;3 C
olumnList][3 , ][@(0.0.255)3 private][3 _][*@3;3 Display]&]
[s2;%% &]
[s2;%% 
@@image:2240&1320
([encoded data, 13356 characters])
&]
[s2;%% &]
[s9;%% This class is the ColumnList specialization for displaying 
lists of files or similar items. List consists of File structures 
with elements appropriate to describe and display individual 
files.&]
[s3;%% &]
[s0; &]
[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&]
[s3;%% &]
[s5;:FileList`:`:WhenRename: [_^Callback2^ Callback2][@(0.0.255) <const]_String[@(0.0.255) `&
], [@(0.0.255) const]_String[@(0.0.255) `&>]_[* WhenRename]&]
[s2;%% This callback is called when filename was renamed by user. 
First argument is the original filename, second one is the new 
filename.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:StartEdit`(`): [@(0.0.255) void]_[* StartEdit]()&]
[s2;%% Starts the editation of the current item for rename.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:EndEdit`(`): [@(0.0.255) void]_[* EndEdit]()&]
[s2;%% Ends the editation of item.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:IsEdit`(`)const: [@(0.0.255) bool]_[* IsEdit]()_[@(0.0.255) const]&]
[s2;%% True if editation is active.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:OkEdit`(`): [@(0.0.255) void]_[* OkEdit]()&]
[s2;%% Ends the editation and calls WhenRename to actually rename 
the filename.&]
[s2;%% &]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:SetIcon`(int`,const Image`&`): [@(0.0.255) void]_[* SetIcon]([@(0.0.255) i
nt]_[*@3 ii], [@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon])&]
[s2;%% Replaces an icon of file item.&]
[s3;%% &]
[s4; &]
[s5;:Upp`:`:FileList`:`:Add`(const Upp`:`:FileList`:`:File`&`): [@(0.0.255) void]_[* Add](
[@(0.0.255) const]_[_^Upp`:`:FileList`:`:File^ File][@(0.0.255) `&]_[*@3 f])&]
[s5;:FileList`:`:Add`(const String`&`,const Image`&`,Font`,Color`,bool`,int64`,Time`,Color`,const String`&`,Font`,Value`,Color`,bool`,bool`): [@(0.0.255) v
oid]_[* Add]([@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 name], 
[@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon]_`=_Null, 
[_^Font^ Font]_[*@3 font]_`=_StdFont(), [_^Color^ Color]_[*@3 ink]_`=_SColorText(), 
[@(0.0.255) bool]_[*@3 isdir]_`=_[@(0.0.255) false], [_^int64^ int64]_[*@3 length]_`=_[@3 0],
 [_^Time^ Time]_[*@3 time]_`=_Null, [_^Color^ Color]_[*@3 extink]_`=_Null, 
[@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 desc]_`=_Null, 
[_^Font^ Font]_[*@3 descfont]_`=_Null, [_^Value^ Value]_[*@3 data]_`=_Null, 
[_^Color^ Color]_[*@3 underline]_`=_Null, [@(0.0.255) bool]_[*@3 unixexe]_`=_[@(0.0.255) fa
lse], [@(0.0.255) bool]_[*@3 hidden]_`=_[@(0.0.255) false])&]
[s2;%% Adds a new file item at the end of list.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:Get`(int`)const: [@(0.0.255) const]_[_^FileList`:`:File^ File][@(0.0.255) `&
]_[* Get]([@(0.0.255) int]_[*@3 i])_[@(0.0.255) const]&]
[s2;%% Returns the file item structure at specified index.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:operator`[`]`(int`)const: [@(0.0.255) const]_[_^FileList`:`:File^ File][@(0.0.255) `&
]_[* operator`[`]]([@(0.0.255) int]_[*@3 i])_[@(0.0.255) const]&]
[s2;%% Same as Get([%-*@3 i]).&]
[s3; &]
[s4; &]
[s5;:FileList`:`:Insert`(int`,const String`&`,const Image`&`,Font`,Color`,bool`,int64`,Time`,Color`,const String`&`,Font`,Value`,Color`,bool`,bool`): [@(0.0.255) v
oid]_[* Insert]([@(0.0.255) int]_[*@3 ii], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&
]_[*@3 name], [@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon]_`=_Null, 
[_^Font^ Font]_[*@3 font]_`=_StdFont(), [_^Color^ Color]_[*@3 ink]_`=_SColorText(), 
[@(0.0.255) bool]_[*@3 isdir]_`=_[@(0.0.255) false], [_^int64^ int64]_[*@3 length]_`=_[@3 0],
 [_^Time^ Time]_[*@3 time]_`=_Null, [_^Color^ Color]_[*@3 extink]_`=_Null, 
[@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 desc]_`=_Null, 
[_^Font^ Font]_[*@3 descfont]_`=_Null, [_^Value^ Value]_[*@3 data]_`=_Null, 
[_^Color^ Color]_[*@3 underline]_`=_Null, [@(0.0.255) bool]_[*@3 unixexe]_`=_[@(0.0.255) fa
lse], [@(0.0.255) bool]_[*@3 hidden]_`=_[@(0.0.255) false])&]
[s2;%% Inserts a new file item at specified position.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:Set`(int`,const String`&`,const Image`&`,Font`,Color`,bool`,int64`,Time`,Color`,const String`&`,Font`,Value`,Color`,bool`,bool`): [@(0.0.255) v
oid]_[* Set]([@(0.0.255) int]_[*@3 ii], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_
[*@3 name], [@(0.0.255) const]_[_^Image^ Image][@(0.0.255) `&]_[*@3 icon]_`=_Null, 
[_^Font^ Font]_[*@3 font]_`=_StdFont(), [_^Color^ Color]_[*@3 ink]_`=_SColorText(), 
[@(0.0.255) bool]_[*@3 isdir]_`=_[@(0.0.255) false], [_^int64^ int64]_[*@3 length]_`=_[@3 0],
 [_^Time^ Time]_[*@3 time]_`=_Null, [_^Color^ Color]_[*@3 extink]_`=_Null, 
[@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 desc]_`=_Null, 
[_^Font^ Font]_[*@3 descfont]_`=_Null, [_^Value^ Value]_[*@3 data]_`=_Null, 
[_^Color^ Color]_[*@3 underline]_`=_Null, [@(0.0.255) bool]_[*@3 unixexe]_`=_[@(0.0.255) fa
lse], [@(0.0.255) bool]_[*@3 hidden]_`=_[@(0.0.255) false])&]
[s2;%% Replaces an information about a file item at specified position.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:Set`(int`,const FileList`:`:File`&`): [@(0.0.255) void]_[* Set]([@(0.0.255) i
nt]_[*@3 ii], [@(0.0.255) const]_[_^FileList`:`:File^ File][@(0.0.255) `&]_[*@3 f])&]
[s2;%% Replaces an information about a file item at specified position.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:GetCurrentName`(`)const: [_^String^ String]_[* GetCurrentName]()_[@(0.0.255) c
onst]&]
[s2;%% Returns the filename of item with cursor. If there is no cursor, 
returns empty String.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:Find`(const char`*`): [@(0.0.255) int]_[* Find]([@(0.0.255) const]_[@(0.0.255) c
har]_`*[*@3 name])&]
[s2;%% The index of the item with specified [%-*@3 name] or negative 
value if not in the list. Search is linear.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:FindSetCursor`(const char`*`): [@(0.0.255) bool]_[* FindSetCursor]([@(0.0.255) c
onst]_[@(0.0.255) char]_`*[*@3 name])&]
[s2;%% If item with [%-*@3 name].is in the list, sets the cursor to 
it and returns true, otherwise returns false.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:Sort`(const FileList`:`:Order`&`): [@(0.0.255) void]_[* Sort]([@(0.0.255) c
onst]_[_^FileList`:`:Order^ Order][@(0.0.255) `&]_[*@3 order])&]
[s2;%% Sorts the list. Order contains single virtual method for ordering 
File structures.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:IconWidth`(int`): [_^FileList^ FileList][@(0.0.255) `&]_[* IconWidth]([@(0.0.255) i
nt]_[*@3 w])&]
[s2;%% Sets the space reserved for painting the file icon.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:GetIconWidth`(`)const: [@(0.0.255) int]_[* GetIconWidth]()_[@(0.0.255) con
st]&]
[s2;%% Returns the value set by IconWidth.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:Renaming`(bool`): [_^FileList^ FileList][@(0.0.255) `&]_[* Renaming]([@(0.0.255) b
ool]_[*@3 b]_`=_[@(0.0.255) true])&]
[s2;%% In renaming mode, user is allowed to edit the name of item 
(by holding mouse button over the item). WhenRename callback 
is called when user accepts the new name.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:JustName`(bool`): [_^FileList^ FileList][@(0.0.255) `&]_[* JustName]([@(0.0.255) b
ool]_[*@3 b]_`=_[@(0.0.255) true])&]
[s2;%% In JustName mode, if filename contains [* `\] or [* /] characters, 
only the part after last such character is displayed as filename.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:AccelKey`(bool`): [_^FileList^ FileList][@(0.0.255) `&]_[* AccelKey]([@(0.0.255) b
ool]_[*@3 b]_`=_[@(0.0.255) true])&]
[s2;%% AccelKey activates searching for file starting on key press 
(first letter of filename is matched).&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:SelectDir`(bool`): [@(0.0.255) void]_[* SelectDir]([@(0.0.255) bool]_[*@3 b]_
`=_[@(0.0.255) true])&]
[s2;%% In SelectDir mode, directories can be selected (important 
for multiselecting directories in FileSel).&]
[s0;%% &]
[s0;%% &]
[s0; &]
[ {{10000@3 [s0;%% [*@(229)4 FileList`::File]]}}&]
[s3;%% &]
[s1;:FileList`:`:File`:`:struct: [@(0.0.255)3 struct][3 _][*3 File]&]
[s9;%% Structure used to hold information about the item. Some items, 
like file length, are in fact not directly used by FileList and 
are only provided to make FileList usage simpler for its primary 
applications (e.g. file selectors).&]
[s3;%% &]
[s0;%% &]
[ {{10000F(128)G(128)@1 [s0;%% [* Public Member List]]}}&]
[s3; &]
[s5;:FileList`:`:File`:`:isdir: [@(0.0.255) bool]_[* isdir]&]
[s2;%% If true, item contains directory.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:unixexe: [@(0.0.255) bool]_[* unixexe]&]
[s2;%% If true, item in POSIX has executable rights.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:File`:`:hidden: [@(0.0.255) bool]_[* hidden]&]
[s2;%% If true, item is hidden.&]
[s3; &]
[s4; &]
[s5;:FileList`:`:File`:`:icon: [_^Image^ Image]_[* icon]&]
[s2;%% File icon.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:name: [_^String^ String]_[* name]&]
[s2;%% Filename.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:font: [_^Font^ Font]_[* font]&]
[s2;%% Font used to display the filename.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:ink: [_^Color^ Color]_[* ink]&]
[s2;%% Color used to display the filename.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:length: [_^int64^ int64]_[* length]&]
[s2;%% Length of file.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:time: [_^Time^ Time]_[* time]&]
[s2;%% Last write time.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:extink: [_^Color^ Color]_[* extink]&]
[s2;%% Color used to display the file extension.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:desc: [_^String^ String]_[* desc]&]
[s2;%% Additional description of file, displayed after the filename.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:descfont: [_^Font^ Font]_[* descfont]&]
[s2;%% Font used for additional description.&]
[s3;%% &]
[s4; &]
[s5;:FileList`:`:File`:`:operator const String`&`(`)const: [* operator_const_String`&](
)_[@(0.0.255) const]&]
[s2;%% Returns name.&]
[s3;%% &]
[s0;%% &]
[s0;%% &]
[s0;%% &]
[s0; [+150 FileList routines]&]
[s3; &]
[s5;:Load`(FileList`&`,const String`&`,const char`*`,bool`,Callback3`<bool`,const String`&`,Image`&`>`,FileSystemInfo`&`,const String`&`,bool`): [@(0.0.255) b
ool]_[* Load]([_^FileList^ FileList][@(0.0.255) `&]_[*@3 list], [@(0.0.255) const]_[_^String^ S
tring][@(0.0.255) `&]_[*@3 dir], [@(0.0.255) const]_[@(0.0.255) char]_`*[*@3 patterns], 
[@(0.0.255) bool]_[*@3 dirs]_`=_[@(0.0.255) false], [_^Callback3^ Callback3][@(0.0.255) <bo
ol], [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&], Image[@(0.0.255) `&>]_[*@3 WhenI
con]_`=_CNULL, [_^FileSystemInfo^ FileSystemInfo][@(0.0.255) `&]_[*@3 filesystem]_`=_St
dFileSystemInfo(), [@(0.0.255) const]_[_^String^ String][@(0.0.255) `&]_[*@3 search]_`=_[_^String^ S
tring](), [@(0.0.255) bool]_[*@3 hidden]_`=_[@(0.0.255) true])&]
[s2;%% This function loads [%-*@3 list] with file items in [%-*@3 dir]. 
[%-*@3 patterns] contain allowed file masks separated by semicolon 
(e.g. `"`*.cpp;`*.h`"). If [%-*@3 dirs] is false, files in the 
list are displayed with `"disabled`" color (useful for directory 
selection). [%-*@3 WhenIcon] specifies icon assignment for individual 
filenames (first bool paremeter is true for directories). [%-*@3 filesystem] 
specifies the file system interface.&]
[s3;%% &]
[s4; &]
[s5;:GetDriveImage`(char`): [_^Image^ Image]_[* GetDriveImage]([@(0.0.255) char]_[*@3 drive`_
style])&]
[s2;%% Returns the OS dependent icon of [%-*@3 drive`_style].&]
[s3;%% &]
[s4; &]
[s5;:Upp`:`:Sort`(Upp`:`:FileList`&`,int`): [@(0.0.255) void]_[* Sort]([_^Upp`:`:FileList^ F
ileList][@(0.0.255) `&]_[*@3 list], [@(0.0.255) int]_[*@3 kind])&]
[s0;l288;%% Sorts the [%-*@3 list] of files by criterion [%-*@3 kind]. 
[%-*@3 kind] can be one of FILELISTSORT`_NAME, FILELISTSORT`_EXT, 
FILELISTSORT`_TIME, optionally combined with FILELISTSORT`_DESCENDING 
(using operator `|).&]
[s3;%% &]
[s0; ]]