List of all members.
Detailed Description
Save/Load Window.
The FileIO Window will fire an EVENT_GUI_NOTIFY event when the action button is clicked on. Clients of the FileIO Window should subscribe directly to the FileIO Window, generally as follows:
mFileIO->addEventListener(this);
Any Listener object can be subscribed to the FileIO Window. The Listener::push(Event*) function should respond to the event and check the ID field (Event::getId()). The ID will be "FileIO".
Constructor & Destructor Documentation
| FileIO::FileIO |
( |
const std::string & |
filePath, |
|
|
int |
x, |
|
|
int |
y, |
|
|
FileIoMode |
mode = MODE_LOAD | |
|
) |
| | |
| FileIO::~FileIO |
( |
|
) |
[inline] |
Member Function Documentation
| Control* FileIO::getChild |
( |
const std::string & |
childName |
) |
const [inline, private, virtual] |
Returns a list of selected file names.
- Note:
- Until multiple file selection is implemented this function will return a StringList with only one entry.
| void FileIO::push |
( |
Event * |
event |
) |
[private, virtual] |
| void FileIO::rescanCurrentDirectory |
( |
|
) |
|
Instructs FileIO to rescan the current working directory for files.
| void FileIO::scanDirectory |
( |
const std::string & |
filePath |
) |
[private] |
Sets the mode of the FileIO Window.
Effectively changes the title and action Button actions.
- Parameters:
-
| mode | Can be MODE_LOAD, MODE_SAVE or MODE_SAVEAS. |
| void FileIO::windowInit |
( |
|
) |
[private, virtual] |
Instructs derived Window objects to initialize themselves.
- Note:
- This function must be overridden in derived objects.
When deriving a Window Control, windowInit() must be overridden. This is the function where one would create and add new Control objects as well as specify various attributes such as color, size, position, etc.
Reimplemented from Window.
Member Data Documentation
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Gui/UI/FileIO.h
- C:/Development/LoM/client/src/Gui/UI/FileIO.cpp