#include <stddlg.h>
Inheritance diagram for TChDirDialog::
Public Methods | |
TChDirDialog (ushort aOptions, ushort histId) | |
virtual ushort | dataSize () |
virtual void | getData (void *rec) |
virtual void | handleEvent (TEvent &) |
virtual void | setData (void *rec) |
virtual Boolean | valid (ushort command) |
virtual void | shutDown () |
Static Public Methods | |
TStreamable* | build () |
Static Public Attributes | |
const char* const | name |
Protected Methods | |
TChDirDialog (StreamableInit) | |
virtual void | write (opstream &os) |
virtual void* | read (ipstream &is) |
Friends | |
class | TDirListBox |
Note: TDirListBox is a friend of TChDirDialog, so that the member functions of TDirListBox can access the private members of TChDirDialog.
Definition at line 1326 of file stddlg.h.
|
Constructor. Creates a change directory dialog object with the given history identifier `histId'. The `aOptions' argument is a bitmap of the following flags:
Constant Value Meaning cdNormal 0x00 Option to use the dialog immediately. cdNoLoadDir 0x01 Option to initialize the dialog without loading the current directory into the dialog. Used if you intend using setData() to reset the directory or prior to storage on a stream. cdHelpButton 0x02 Option to put a help button in the dialog. The constructor creates and inserts:
Unsigned short `histId' is an arbitrary positive integer used to identify which history set to use. The library can use multiple history sets and all views with the same history identifier will share the same history set. |
|
Constructor. Used to recover the view from a stream. |
|
Creates a new TChDirDialog. Called to create an object in certain stream-reading situations. Reimplemented from TDialog. |
|
Returns the size of the data record of this dialog. By default, dataSize() returns 0. Override to return the size (in bytes) of the data used by getData() and setData() to store and retrieve dialog box input data.
Reimplemented from TGroup. |
|
Reads the data record of this dialog. By default, getData() does nothing. Override to copy dataSize() bytes from the view to `rec'. Used in combination with dataSize() and setData() to store and retrieve dialog box input data.
Reimplemented from TGroup. |
|
Standard TChDirDialog event handler. Calls TDialog::handleEvent() then processes cmRevert (restore previously current directory) and cmChangeDir (switch to selected directory) events. The dialog is redrawn if necessary. Reimplemented from TDialog. |
|
Used to recover the view from a stream. Reads from the input stream `is'. Reimplemented from TWindow. |
|
Writes the data record of this dialog. By default, setData() does nothing. Override to copy dataSize() bytes from `rec' to the view. Used in combination with dataSize() and getData() to store and retrieve dialog box input data.
Reimplemented from TGroup. |
|
Releases TChDirDialog resources. Used internally by TObject::destroy() to ensure correct destruction of derived and related objects. shutDown() is overridden in many classes to ensure the proper setting of related data members when destroy() is called.
Reimplemented from TWindow. |
|
Checks if the command `command' is valid. The return value is True if `command' is not cmOK. Otherwise (the OK button was pressed) the return value depends on path existence. The function returns True if the path exists. An invalid directory invokes the "Invalid directory" message box and returns False.
Reimplemented from TDialog. |
|
Used to store the view in a stream. Writes to the output stream `os'. Reimplemented from TWindow. |
|
Undocumented. Reimplemented from TDialog. |