comparison dw.h @ 1871:3f571ad9b92e

First Mac round of changes aimed at separating the data and text (title) functionality on container rows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 07 Aug 2013 18:56:28 +0000
parents 0656c716dc9f
children 09860ba329a4
comparison
equal deleted inserted replaced
1870:5a4d98cab9d3 1871:3f571ad9b92e
157 #define DW_CFA_SEPARATOR CFA_SEPARATOR 157 #define DW_CFA_SEPARATOR CFA_SEPARATOR
158 #define DW_CFA_STRINGANDICON 0 158 #define DW_CFA_STRINGANDICON 0
159 159
160 #define DW_CRA_SELECTED CRA_SELECTED 160 #define DW_CRA_SELECTED CRA_SELECTED
161 #define DW_CRA_CURSORED CRA_CURSORED 161 #define DW_CRA_CURSORED CRA_CURSORED
162
163 #define DW_CR_RETDATA (1 << 10)
162 164
163 #define DW_LS_MULTIPLESEL LS_MULTIPLESEL 165 #define DW_LS_MULTIPLESEL LS_MULTIPLESEL
164 166
165 #define DW_LIT_NONE -1 167 #define DW_LIT_NONE -1
166 168
368 #define DW_CFA_HORZSEPARATOR 0 370 #define DW_CFA_HORZSEPARATOR 0
369 #define DW_CFA_SEPARATOR 0 371 #define DW_CFA_SEPARATOR 0
370 372
371 #define DW_CRA_SELECTED 1 373 #define DW_CRA_SELECTED 1
372 #define DW_CRA_CURSORED (1 << 1) 374 #define DW_CRA_CURSORED (1 << 1)
375
376 #define DW_CR_RETDATA (1 << 10)
373 377
374 #define DW_LS_MULTIPLESEL 1 378 #define DW_LS_MULTIPLESEL 1
375 379
376 #define DW_LIT_NONE -1 380 #define DW_LIT_NONE -1
377 381
547 #define DW_CFA_SEPARATOR 0 551 #define DW_CFA_SEPARATOR 0
548 552
549 #define DW_CRA_SELECTED LVNI_SELECTED 553 #define DW_CRA_SELECTED LVNI_SELECTED
550 #define DW_CRA_CURSORED LVNI_FOCUSED 554 #define DW_CRA_CURSORED LVNI_FOCUSED
551 555
556 #define DW_CR_RETDATA (1 << 10)
557
552 #define DW_LS_MULTIPLESEL LBS_MULTIPLESEL 558 #define DW_LS_MULTIPLESEL LBS_MULTIPLESEL
553 559
554 #define DW_LIT_NONE -1 560 #define DW_LIT_NONE -1
555 561
556 #define DW_MLE_CASESENSITIVE 1 562 #define DW_MLE_CASESENSITIVE 1
809 #define DW_CFA_HORZSEPARATOR 0 815 #define DW_CFA_HORZSEPARATOR 0
810 #define DW_CFA_SEPARATOR 0 816 #define DW_CFA_SEPARATOR 0
811 817
812 #define DW_CRA_SELECTED 1 818 #define DW_CRA_SELECTED 1
813 #define DW_CRA_CURSORED (1 << 1) 819 #define DW_CRA_CURSORED (1 << 1)
820
821 #define DW_CR_RETDATA (1 << 10)
814 822
815 #define DW_LS_MULTIPLESEL 1 823 #define DW_LS_MULTIPLESEL 1
816 824
817 #define DW_LIT_NONE -1 825 #define DW_LIT_NONE -1
818 826
992 #define DW_CFA_SEPARATOR (1 << 9) 1000 #define DW_CFA_SEPARATOR (1 << 9)
993 #define DW_CFA_STRINGANDICON (1 << 10) 1001 #define DW_CFA_STRINGANDICON (1 << 10)
994 1002
995 #define DW_CRA_SELECTED 1 1003 #define DW_CRA_SELECTED 1
996 #define DW_CRA_CURSORED (1 << 1) 1004 #define DW_CRA_CURSORED (1 << 1)
1005
1006 #define DW_CR_RETDATA (1 << 10)
997 1007
998 #define DW_LS_MULTIPLESEL 1 1008 #define DW_LS_MULTIPLESEL 1
999 1009
1000 #define DW_LIT_NONE -1 1010 #define DW_LIT_NONE -1
1001 1011
1623 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data); 1633 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data);
1624 void API dw_container_change_item(HWND handle, int column, int row, void *data); 1634 void API dw_container_change_item(HWND handle, int column, int row, void *data);
1625 void API dw_container_set_column_width(HWND handle, int column, int width); 1635 void API dw_container_set_column_width(HWND handle, int column, int width);
1626 void API dw_container_set_row_title(void *pointer, int row, char *title); 1636 void API dw_container_set_row_title(void *pointer, int row, char *title);
1627 void API dw_container_change_row_title(HWND handle, int row, char *title); 1637 void API dw_container_change_row_title(HWND handle, int row, char *title);
1628 #define dw_container_set_row_data(a, b, c) dw_container_set_row_title(a, b, (char *)c) 1638 void API dw_container_set_row_data(void *pointer, int row, void *data);
1629 #define dw_container_change_row_data(a, b, c) dw_container_change_row_title(a, b, (char *)c) 1639 void API dw_container_change_row_data(HWND handle, int row, void *data);
1630 void API dw_container_insert(HWND handle, void *pointer, int rowcount); 1640 void API dw_container_insert(HWND handle, void *pointer, int rowcount);
1631 void API dw_container_clear(HWND handle, int redraw); 1641 void API dw_container_clear(HWND handle, int redraw);
1632 void API dw_container_delete(HWND handle, int rowcount); 1642 void API dw_container_delete(HWND handle, int rowcount);
1633 char * API dw_container_query_start(HWND handle, unsigned long flags); 1643 char * API dw_container_query_start(HWND handle, unsigned long flags);
1634 char * API dw_container_query_next(HWND handle, unsigned long flags); 1644 char * API dw_container_query_next(HWND handle, unsigned long flags);
1635 void API dw_container_scroll(HWND handle, int direction, long rows); 1645 void API dw_container_scroll(HWND handle, int direction, long rows);
1636 void API dw_container_cursor(HWND handle, char *text); 1646 void API dw_container_cursor(HWND handle, char *text);
1647 void API dw_container_cursor_by_data(HWND handle, void *data);
1637 void API dw_container_delete_row(HWND handle, char *text); 1648 void API dw_container_delete_row(HWND handle, char *text);
1649 void API dw_container_delete_row_by_data(HWND handle, void *data);
1638 void API dw_container_optimize(HWND handle); 1650 void API dw_container_optimize(HWND handle);
1639 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor); 1651 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor);
1640 void API dw_filesystem_set_column_title(HWND handle, char *title); 1652 void API dw_filesystem_set_column_title(HWND handle, char *title);
1641 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count); 1653 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count);
1642 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data); 1654 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data);