Main Page   Modules   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CmDirBrowser Class Reference

DirBrowser Class. More...

Inheritance diagram for CmDirBrowser:

CmObject CmMGUI

Public Methods

 CmDirBrowser (CmContainer *parent, const char *dir, MTFont font, int width, int height, CARD16 flags)
 Creates a Directory Browser object.

void setDirectory (const char *dir, int notify)
 Changes the object's current directory.

const char * getDirectory (void)
 Returns the object's current directory.

void setDirChangeCallback (CmCallback *owner, DBDIRCHANGE_CB cb)
 Sets the callback receiving directory change events.


Friends

void _DirChangeCB_ (MOBJECT p, const char *dir, void *ud)

Detailed Description

DirBrowser Class.


Constructor & Destructor Documentation

CmDirBrowser::CmDirBrowser CmContainer   parent,
const char *    dir,
MTFont    font,
int    width,
int    height,
CARD16    flags
 

Creates a Directory Browser object.

This object uses an CmTree object to display the file system in a graphic form. It's used by file/directory browsing utility functions. The object is capable of notifying the file system navigation to the application via a dedicated callback.

Parameters:
parent Parent MGui object.
dir Initial object directory.
font Font to be used to display directory names.
width Desired initial width.
height Desired initial height.
flags Options in bitwise or (DBF_ALLOW_CREATE, DBF_ALLOW_RENAME, DBF_ALLOW_DELETE) to enable the object's capability to create/rename/delete directories.
See also:
fileBrowse, fileBrowseExt, dirBrowse, dirBrowseExt


Member Function Documentation

const char* CmDirBrowser::getDirectory void   
 

Returns the object's current directory.

void CmDirBrowser::setDirChangeCallback CmCallback   owner,
DBDIRCHANGE_CB    cb
 

Sets the callback receiving directory change events.

void CmDirBrowser::setDirectory const char *    dir,
int    notify
 

Changes the object's current directory.

Parameters:
dir Desired new directory.
notify Boolean value to specify whether or not the object has to call the DirChangeCallback.
See also:
setDirChangeCallback


Friends And Related Function Documentation

void _DirChangeCB_ MOBJECT    p,
const char *    dir,
void *    ud
[friend]
 


Generated on Sun Aug 17 17:29:26 2003 for MGui API by doxygen1.3-rc2