#include <stddlg.h>
Inheritance diagram for TFileList::
Public Methods | |
TFileList (const TRect &bounds, TScrollBar *aScrollBar) | |
~TFileList () | |
virtual void | focusItem (short item) |
virtual void | selectItem (short item) |
virtual void | getText (char *dest, short item, short maxLen) |
void | newList (TFileCollection *aList) |
void | readDirectory (const char *dir, const char *wildCard) |
void | readDirectory (const char *wildCard) |
virtual ushort | dataSize () |
virtual void | getData (void *rec) |
virtual void | setData (void *rec) |
TFileCollection* | list () |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TFileList (StreamableInit) |
TFileList inherits most of its functionality from TSortedListBox. The following commands are broadcast by TFileList:
Constant Value Meaning cmFileFocused 102 A new file was focused in object cmFileDoubleClicked 103 A file was selected in the TFileList object
Definition at line 491 of file stddlg.h.
|
Calls the TSortedListBox constructor to create a two-column TFileList object with the given bounds and, if `aScrollBar' is non-zero, a vertical scrollbar.
|
|
Deletes the file list. |
|
Undocumented. |
|
Called to create an object in certain stream-reading situations. Reimplemented from TSortedListBox. |
|
Undocumented. Reimplemented from TListBox. |
|
Focuses the given item in the list. Calls TSortedListBox::focusItem() and broadcasts a cmFileFocused event. Reimplemented from TListViewer. |
|
Undocumented. Reimplemented from TListBox. |
|
Grabs the TSearchRec object at `item' and sets the file name in `dest'. "\" is appended if the name is a directory. Reimplemented from TListBox. |
|
Returns the private items data member, a pointer to the TFileCollection object currently associated with this file list box. Reimplemented from TSortedListBox. |
|
Calls TSortedListBox::newList() to delete the existing TFileCollection object associated with this list box and replace it with the file collection given by `aList'. The first item of the new collection will receive the focus. |
|
Expands the `wildCard' string to generate the file collection associated with this file list. The resulting TFileCollection object (a sorted set of TSearchRec objects) is assigned to the private items data member (accessible via the list() member function). If too many files are generated, a warning message box appears. readDirectory() knows about file attributes and will not generate hidden file names. |
|
Allows the separate submission of a relative or absolute path in the `dir' argument. Either "/" or "\" can be used as subdirectory separators (but "\" is converted to "/" for output). |
|
Undocumented. Reimplemented from TListViewer. |
|
Undocumented. Reimplemented from TListBox. |
|
Undocumented. Reimplemented from TSortedListBox. |