EZwgl provides a few convenience routines for programmers to manipulating directory trees.
A directory tree is created by calling
whereEZ_TreeNode *EZ_CreateDirTree(EZ_DirTreeNodeCreator creator, char *patterns, void *client_data, int open_mode);
creator
is a function of type
EZ_TreeNode *creator(char *path, void *client_data);
pattern
is a glob pattern such as "/home/mzou/*"
or "*.c *.h"
;
client_data
is an arbitary client data to be passed to
creator
and
open_mode
is a flag which specifies
how to open a directory node
when a double button1 clicks occurs on the node. Must be
EZ_DIR_NODE_OPEN_DIRECTORY_NONE EZ_DIR_NODE_OPEN_DIRECTORY_DEFAULT EZ_DIR_NODE_OPEN_DIRECTORY_COLLAPSING
void EZ_OpenCloseDirTreeDirectoryNode(EZ_Item *item, int collaps);
char *EZ_GetDirTreeNodeFullPath(EZ_TreeNode *node);
void EZ_SetDirTreeOpenDirectoryMode(EZ_TreeNode *node, int mode);
void EZ_SetDirTreeDefaultPixmaps(EZ_Bitmap *o, EZ_Bitmap *c, EZ_Bitmap *f);
void EZ_SetDirTreeDefaultPixmapsFromXpmFiles(char *o, char *c, char *f);
void EZ_UpdateDirTreeWidget(EZ_Widget *TreeWidget);