comparison dwtest.c @ 510:710f82598210

Change function names to be inline with Mark Hessling's Rexx/DW.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 09 Mar 2004 03:27:39 +0000
parents 078a40ba2e41
children 8eb10e610270
comparison
equal deleted inserted replaced
509:a9cfbc5ad01e 510:710f82598210
283 int DWSIGNAL cursortoggle_callback(HWND window, void *data) 283 int DWSIGNAL cursortoggle_callback(HWND window, void *data)
284 { 284 {
285 if(cursor_arrow) 285 if(cursor_arrow)
286 { 286 {
287 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - ARROW"); 287 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - ARROW");
288 dw_window_pointer((HWND)data,DW_POINTER_CLOCK); 288 dw_window_set_pointer((HWND)data,DW_POINTER_CLOCK);
289 cursor_arrow = 0; 289 cursor_arrow = 0;
290 } 290 }
291 else 291 else
292 { 292 {
293 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - CLOCK"); 293 dw_window_set_text((HWND)cursortogglebutton,"Set Cursor pointer - CLOCK");
294 dw_window_pointer((HWND)data,DW_POINTER_ARROW); 294 dw_window_set_pointer((HWND)data,DW_POINTER_ARROW);
295 cursor_arrow = 1; 295 cursor_arrow = 1;
296 } 296 }
297 return FALSE; 297 return FALSE;
298 } 298 }
299 299
468 sprintf(buf,"Selected: %s\r\n", str); 468 sprintf(buf,"Selected: %s\r\n", str);
469 mle_point = dw_mle_import( container_mle, buf, mle_point); 469 mle_point = dw_mle_import( container_mle, buf, mle_point);
470 str = dw_container_query_next(container, DW_CRA_SELECTED); 470 str = dw_container_query_next(container, DW_CRA_SELECTED);
471 } 471 }
472 /* Make the last inserted point the cursor location */ 472 /* Make the last inserted point the cursor location */
473 dw_mle_set(container_mle, mle_point); 473 dw_mle_set_cursor(container_mle, mle_point);
474 /* set the details of item 0 to new data */ 474 /* set the details of item 0 to new data */
475 fprintf(stderr,"In cb: container: %x containerinfo: %x icon: %x\n", (int)container, (int)containerinfo, (int)fileicon); 475 fprintf(stderr,"In cb: container: %x containerinfo: %x icon: %x\n", (int)container, (int)containerinfo, (int)fileicon);
476 dw_filesystem_change_file(container, 0, "new data", fileicon); 476 dw_filesystem_change_file(container, 0, "new data", fileicon);
477 size = 999; 477 size = 999;
478 fprintf(stderr,"In cb: container: %x containerinfo: %x icon: %x\n", (int)container, (int)containerinfo, (int)fileicon); 478 fprintf(stderr,"In cb: container: %x containerinfo: %x icon: %x\n", (int)container, (int)containerinfo, (int)fileicon);
668 t2 = dw_tree_insert(tree, "tree folder 2", foldericon, NULL, (void *)2 ); 668 t2 = dw_tree_insert(tree, "tree folder 2", foldericon, NULL, (void *)2 );
669 t3 = dw_tree_insert(tree, "tree file 1", fileicon, t1, (void *)3 ); 669 t3 = dw_tree_insert(tree, "tree file 1", fileicon, t1, (void *)3 );
670 t4 = dw_tree_insert(tree, "tree file 2", fileicon, t1, (void *)4 ); 670 t4 = dw_tree_insert(tree, "tree file 2", fileicon, t1, (void *)4 );
671 t5 = dw_tree_insert(tree, "tree file 3", fileicon, t2, (void *)5 ); 671 t5 = dw_tree_insert(tree, "tree file 3", fileicon, t2, (void *)5 );
672 t6 = dw_tree_insert(tree, "tree file 4", fileicon, t2, (void *)6 ); 672 t6 = dw_tree_insert(tree, "tree file 4", fileicon, t2, (void *)6 );
673 /* set the folder name and icon again to show error with dw_tree_set under GTK 2.0 */ 673 /* set the folder name and icon again to show error with dw_tree_item_change under GTK 2.0 */
674 dw_tree_set(tree, t1, "tree folder 1", foldericon ); 674 dw_tree_item_change(tree, t1, "tree folder 1", foldericon );
675 dw_tree_set(tree, t2, "tree folder 2", foldericon ); 675 dw_tree_item_change(tree, t2, "tree folder 2", foldericon );
676 } 676 }
677 677
678 void container_add(void) 678 void container_add(void)
679 { 679 {
680 char *titles[3]; 680 char *titles[3];
861 buttons_add(); 861 buttons_add();
862 862
863 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow); 863 dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), (void *)mainwindow);
864 timerid = dw_timer_connect(1000, DW_SIGNAL_FUNC(timer_callback), 0); 864 timerid = dw_timer_connect(1000, DW_SIGNAL_FUNC(timer_callback), 0);
865 dw_window_set_icon(mainwindow, fileicon); 865 dw_window_set_icon(mainwindow, fileicon);
866 dw_window_set_usize(mainwindow, 640, 480); 866 dw_window_set_size(mainwindow, 640, 480);
867 dw_window_show(mainwindow); 867 dw_window_show(mainwindow);
868 868
869 dw_main(); 869 dw_main();
870 870
871 return 0; 871 return 0;