comparison dw.h @ 478:ea099ba917c6

Added two new tree functions, get_title and get_parent and finished the OS/2 folder browser. Will be porting to Unix soon. Windows tree functions need to be completed. Will do that tomorrow.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 15 Oct 2003 09:55:28 +0000
parents fa05a1a0f9b3
children d6e07d292145
comparison
equal deleted inserted replaced
477:923b46b0716c 478:ea099ba917c6
45 #define DW_SIGNAL_LIST_SELECT "item-select" 45 #define DW_SIGNAL_LIST_SELECT "item-select"
46 #define DW_SIGNAL_SET_FOCUS "set-focus" 46 #define DW_SIGNAL_SET_FOCUS "set-focus"
47 #define DW_SIGNAL_VALUE_CHANGED "value_changed" 47 #define DW_SIGNAL_VALUE_CHANGED "value_changed"
48 #define DW_SIGNAL_SWITCH_PAGE "switch-page" 48 #define DW_SIGNAL_SWITCH_PAGE "switch-page"
49 #define DW_SIGNAL_COLUMN_CLICK "click-column" 49 #define DW_SIGNAL_COLUMN_CLICK "click-column"
50 #define DW_SIGNAL_TREE_EXPAND "tree-expand"
50 51
51 #if defined(__OS2__) || defined(__WIN32__) || defined(__MAC__) || defined(WINNT) || defined(__EMX__) 52 #if defined(__OS2__) || defined(__WIN32__) || defined(__MAC__) || defined(WINNT) || defined(__EMX__)
52 /* OS/2, Windows or MacOS */ 53 /* OS/2, Windows or MacOS */
53 54
54 #if defined(__IBMC__) && !defined(API) 55 #if defined(__IBMC__) && !defined(API)
966 void API dw_tree_expand(HWND handle, HTREEITEM item); 967 void API dw_tree_expand(HWND handle, HTREEITEM item);
967 void API dw_tree_collapse(HWND handle, HTREEITEM item); 968 void API dw_tree_collapse(HWND handle, HTREEITEM item);
968 void API dw_tree_item_select(HWND handle, HTREEITEM item); 969 void API dw_tree_item_select(HWND handle, HTREEITEM item);
969 void API dw_tree_set_data(HWND handle, HTREEITEM item, void *itemdata); 970 void API dw_tree_set_data(HWND handle, HTREEITEM item, void *itemdata);
970 void * API dw_tree_get_data(HWND handle, HTREEITEM item); 971 void * API dw_tree_get_data(HWND handle, HTREEITEM item);
972 char * API dw_tree_get_title(HWND handle, HTREEITEM item);
973 HTREEITEM API dw_tree_get_parent(HWND handle, HTREEITEM item);
971 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator); 974 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator);
972 unsigned long API dw_icon_load(unsigned long module, unsigned long id); 975 unsigned long API dw_icon_load(unsigned long module, unsigned long id);
973 unsigned long API dw_icon_load_from_file(char *filename); 976 unsigned long API dw_icon_load_from_file(char *filename);
974 void API dw_icon_free(unsigned long handle); 977 void API dw_icon_free(unsigned long handle);
975 void * API dw_container_alloc(HWND handle, int rowcount); 978 void * API dw_container_alloc(HWND handle, int rowcount);