Changeset 241
- Timestamp:
- Mar 6, 2007, 8:47:20 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpfolder.c
r240 r241 33 33 * ***** END LICENSE BLOCK ***** */ 34 34 /* 35 * This file was generated by orbit-idl-2 for Voyager36 *37 *38 35 * And remember, phase 3 is near... 39 36 */ … … 77 74 #include "helper.h" 78 75 #include "exception.h" 76 77 #include "nomdraginfo.h" 79 78 80 79 typedef struct _FLDRGTREEVALUE … … 111 110 /*************** Local vars ************************************/ 112 111 112 /* This ID is used as a namespace */ 113 113 static nomId WPFolderNomId; 114 114 … … 520 520 WPFolderWindow_wpSetWindowTitle(wpFldrWindow, WPFolder_wpQueryTitle(nomSelf, NULLHANDLE), NULLHANDLE); 521 521 522 523 522 /* Show the new window */ 524 523 WPFolderWindow_show(wpFldrWindow, ev); … … 527 526 } 528 527 528 529 529 NOM_Scope gulong NOMLINK impl_WPFolder_wpQueryFldrFlags(WPFolder* nomSelf, CORBA_Environment *ev) 530 530 { … … 533 533 return g_atomic_int_get(&_ulFldrFlags); 534 534 } 535 535 536 536 537 NOM_Scope CORBA_boolean NOMLINK impl_WPFolder_wpSetFldrFlags(WPFolder* nomSelf, const gulong ulFlags, … … 547 548 return TRUE; 548 549 } 550 551 552 /* FIXME: type and name of containerHandle is wrong */ 553 NOM_Scope gulong NOMLINK impl_WPFolder_wpDragOver(WPFolder* nomSelf, const gpointer containerHandle, 554 const gpointer pDragInfo, CORBA_Environment *ev) 555 { 556 /* WPFolderData* nomThis=WPFolderGetData(nomSelf); */ 557 gulong ulNumItems, ulLoop; 558 NOMDragInfo* nomDragInfo=(NOMDragInfo*)pDragInfo; 559 560 if(!nomIsObj(nomDragInfo)) 561 return DOR_NODROP; 562 563 ulNumItems=NOMDragInfo_queryNumDragItems(nomDragInfo, NULLHANDLE); 564 565 /* No items? */ 566 if(0==ulNumItems) 567 return DOR_NODROP; 568 569 for(ulLoop=0; ulLoop<ulNumItems; ulLoop++) 570 { 571 /* We only accept desktop objects for now */ 572 if(!NOMDragInfo_queryIsItemWPObject(nomDragInfo, ulLoop, NULLHANDLE)) 573 return DOR_NODROP; 574 /* No dropping on the source folder for now */ 575 if(nomSelf==(WPFolder*) 576 NOMDragInfo_querySourceWPObject(nomDragInfo, ulLoop, NULLHANDLE)) 577 return DOR_NODROP; 578 /* No dropping on itself */ 579 if(nomSelf==(WPFolder*) 580 NOMDragInfo_queryWPObjectFromItemList(nomDragInfo, ulLoop, NULLHANDLE)) 581 return DOR_NODROP; 582 } 583 584 return GDK_ACTION_MOVE; 585 586 #if 0 587 WPFolder_wpDragOver_parent(nomSelf, ev); 588 #endif 589 } 590 549 591 550 592 #if 0 … … 580 622 } 581 623 624 582 625 NOM_Scope void NOMLINK impl_WPFolder_wpInitData(WPFolder* nomSelf, CORBA_Environment *ev) 583 626 { … … 599 642 which may be searched using the name of the file/directory */ 600 643 //_fldrObjects=g_tree_new((GCompareFunc)strcmp); 601 _fldrObjects=g_tree_new_full((GCompareFunc)strcmp, nomSelf, NULL, (GDestroyNotify) fldrCatchDuplicates); 602 } 603 604 605 /* orbit-idl-c-stubs.c, cs_output_stub line 347 */ 606 NOM_Scope gulong NOMLINK impl_WPFolder_wpDragOver(WPFolder* nomSelf, const gpointer containerHandle, 607 const gpointer pDragInfo, CORBA_Environment *ev) 644 _fldrObjects=g_tree_new_full((GCompareFunc)strcmp, nomSelf, NULL, 645 (GDestroyNotify) fldrCatchDuplicates); 646 } 647 648 NOM_Scope gulong NOMLINK impl_WPFolder_wpDrop(WPFolder* nomSelf, 649 const gpointer containerHandle, 650 const gpointer pDragInfo, 651 CORBA_Environment *ev) 608 652 { 609 653 /* WPFolderData* nomThis=WPFolderGetData(nomSelf); */ 610 611 return GDK_ACTION_COPY; 612 654 gulong ulNumItems, ulLoop; 655 GdkDragAction gda; 656 657 NOMDragInfo* nomDragInfo=(NOMDragInfo*)pDragInfo; 658 659 g_message("%s", __FUNCTION__); 660 661 if(!nomIsObj(nomDragInfo)) 662 return 0; 663 664 ulNumItems=NOMDragInfo_queryNumDragItems(nomDragInfo, NULLHANDLE); 665 666 /* No items? */ 667 if(0==ulNumItems) 668 return 0; 669 670 gda=NOMDragInfo_queryChosenDropAction(nomDragInfo, NULLHANDLE); 671 672 for(ulLoop=0; ulLoop<ulNumItems; ulLoop++) 673 { 674 WPObject* wpObject; 675 676 wpObject=NOMDragInfo_querySourceWPObject(nomDragInfo, ulLoop, NULLHANDLE); 677 g_message("Source folder is: %s", 678 NOMPath_queryCString(WPFolder_wpQueryFileName(wpObject, TRUE, NULLHANDLE), 679 NULLHANDLE)); 680 wpObject=NOMDragInfo_queryWPObjectFromItemList(nomDragInfo, ulLoop, NULLHANDLE); 681 g_message("Dropped object is: %s", 682 NOMPath_queryCString(WPFolder_wpQueryFileName(wpObject, TRUE, NULLHANDLE), 683 NULLHANDLE)); 684 685 g_message("%s: drop action: %d", __FUNCTION__, gda); 686 687 wpObject=NOMDragInfo_queryWPObjectFromItemList(nomDragInfo, ulLoop, NULLHANDLE); 688 switch(gda) 689 { 690 case GDK_ACTION_MOVE: 691 { 692 WPObject_wpMoveObject(wpObject, nomSelf, NULLHANDLE); 693 break; 694 } 695 default: 696 { 697 WPObject_wpCopyObject(wpObject, nomSelf, FALSE, NULLHANDLE); 698 break; 699 } 700 } 701 } 702 703 704 613 705 #if 0 614 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 119 */ 615 WPFolder_wpDragOver_parent(nomSelf, ev); 616 #endif 617 } 618 619 706 WPFolder_wpDrop_parent(nomSelf, ev); 707 #endif 708 return 0; 709 } 710 711 712 713 714 715 716 -
trunk/desktop/class_c/wpfolderwindow.c
r240 r241 62 62 #include "exception.h" 63 63 64 #include "nomdragwindow.h" 65 #include "nomdraginfo.h" 66 64 67 NOM_Scope PGtkWidget NOMLINK impl_WPFolderWindow_wpQueryContainerHandle(WPFolderWindow* nomSelf, CORBA_Environment *ev) 65 68 { … … 70 73 71 74 NOM_Scope void NOMLINK impl_WPFolderWindow_wpSetContainerHandle(WPFolderWindow* nomSelf, const PGtkWidget pgWidget, 72 CORBA_Environment *ev)75 CORBA_Environment *ev) 73 76 { 74 77 WPFolderWindowData* nomThis=WPFolderWindowGetData(nomSelf); … … 116 119 PWPFolderWindow pWindow; 117 120 GtkTreePath* treePath; 118 //DosBeep(5000, 100); 121 119 122 pWindow=(WPFolderWindow*)user_data; 120 123 //TST_OBJECT(pWindow); … … 182 185 }; 183 186 187 static NOMDragWindow *nomDragWindow=NULL; 188 static NOMDragInfo *nomDragInfo=NULL; 184 189 185 190 /* 186 191 This callback handles the drop of an item on an object. 187 192 */ 188 static gboolean fldrWindowHandleDragDrop(GtkWidget * wgtThis, GdkDragContext* dragContext, gint x, gint y, 193 static gboolean fldrWindowHandleDragDrop(GtkWidget * wgtThis, GdkDragContext* dragContext, 194 gint x, gint y, 189 195 guint t, gpointer ptrUserData) 190 196 { 191 DosBeep(500, 10); 192 g_message("%s", __FUNCTION__); 193 g_message(" action: %d", dragContext->action ); 194 197 GtkTreePath* treePath; 198 PWPFolderWindow pWindow; 199 gulong rc=0; 200 WPObject *wpObject; 201 202 //g_message(" %s", __FUNCTION__); 203 //g_message(" action: %d", dragContext->action ); 204 205 /* Find the object beneath the pointer */ 206 treePath=gtk_icon_view_get_path_at_pos(GTK_ICON_VIEW(wgtThis), x, y ); 207 if(NULL==treePath) 208 { 209 210 /* White space, so ask the folder */ 211 212 pWindow=(WPFolderWindow*)ptrUserData; 213 if(!nomIsObj(pWindow)) 214 return FALSE; 215 216 wpObject=WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE); 217 218 if(!nomIsObj(wpObject)) 219 return FALSE; 220 } 221 else 222 { 223 GtkTreeIter iter; 224 GtkTreeModel* model; 225 226 /* Over an icon */ 227 228 model=gtk_icon_view_get_model(GTK_ICON_VIEW(wgtThis)); 229 gtk_tree_model_get_iter(model , &iter, treePath); 230 gtk_tree_model_get(model, &iter, 0, &wpObject, -1); 231 232 //TST_OBJECT(wpObject); 233 234 if(!nomIsObj(wpObject)) 235 return FALSE; 236 } 237 rc=WPObject_wpDragOver(wpObject, wgtThis, nomDragInfo, NULL); 238 g_message("rc: %d", rc); 195 239 if(dragContext->targets) 196 240 { 197 241 GdkAtom targetType; 198 242 targetType=GDK_POINTER_TO_ATOM(g_list_nth_data(dragContext->targets, WPOBJECT_TARGET_OBJECT)); 199 g_message(" calling gtk_drag_get_data()..." );243 // g_message(" calling gtk_drag_get_data()..." ); 200 244 gtk_drag_get_data(wgtThis, dragContext, targetType, t); 245 246 /* FIXME: 247 We don't use the returned data for now but use our own draginfo stuff. This is 248 broken. 249 The following may be moved to dragDataReceived later. */ 250 if(rc) { 251 // g_message("Now call wpDrop() actions: %d action: %d sugg %d", dragContext->action, 252 // dragContext->action, dragContext->suggested_action); 253 254 WPObject_wpDrop( wpObject, wgtThis, nomDragInfo, NULLHANDLE); 255 256 gtk_drag_finish(dragContext, TRUE, FALSE, t); 257 return TRUE; 258 } 259 201 260 } 202 261 return FALSE; … … 208 267 { 209 268 GdkPixmap *pixMapDrag; 210 211 269 gdk_pixbuf_render_pixmap_and_mask(pixBufStop, &pixMapDrag, NULL, 128); 212 270 gdk_window_set_back_pixmap(wgtDrag->window, pixMapDrag, FALSE); 213 271 g_object_unref(pixMapDrag); 214 272 gtk_widget_queue_draw(wgtDrag); 215 216 g_message("%s", __FUNCTION__);217 218 return;219 }220 #endif221 222 static GtkWidget *wgtDrag=NULL;223 224 static GdkPixmap *pixMapDrag=NULL;225 static GdkPixmap *pixMapStop=NULL;226 227 /*228 Callback which loads a pixmap into the drag widget as soon as it's realized.229 */230 static void fldrWidgetRealize(GtkWidget * wgtDrag, gpointer ptrUserData)231 {232 gdk_window_set_back_pixmap(wgtDrag->window, pixMapDrag, FALSE);233 234 273 g_message("%s", __FUNCTION__); 235 274 return; 236 275 } 276 #endif 277 237 278 /** 238 279 Callback for the drag-begin signal. 239 280 */ 240 281 static void fldrWindowHandleDragBegin(GtkWidget * widget, GdkDragContext* dragContext, 241 gpointer ptrUserData) 242 { 243 if(NULLHANDLE==wgtDrag) 244 { 245 GdkPixbuf *pixBufDrag; 246 GdkPixbuf *pixBufStop; 247 248 wgtDrag=gtk_window_new(GTK_WINDOW_POPUP); 249 250 /* 251 FIXME: 252 In GTK 2.8 use *_HINT_DND instead. 253 */ 254 #warning move this somewhere else. Maybe into WPClassMgr 255 gtk_window_set_type_hint(GTK_WINDOW(wgtDrag), GDK_WINDOW_TYPE_HINT_MENU); 256 gtk_widget_set_app_paintable(GTK_WIDGET(wgtDrag), TRUE); 257 258 pixBufDrag=gtk_widget_render_icon(wgtDrag, GTK_STOCK_DND, GTK_ICON_SIZE_DND, NULL); 259 gdk_pixbuf_render_pixmap_and_mask(pixBufDrag, &pixMapDrag, NULL, 128); 260 261 gtk_widget_set_size_request(wgtDrag, gdk_pixbuf_get_width(pixBufDrag), gdk_pixbuf_get_height(pixBufDrag)); 262 263 g_object_unref(pixBufDrag); 264 265 pixBufStop=gtk_widget_render_icon(wgtDrag, GTK_STOCK_STOP, GTK_ICON_SIZE_DND, NULL); 266 gdk_pixbuf_render_pixmap_and_mask(pixBufStop, &pixMapStop, NULL, 128); 267 g_object_unref(pixBufStop); 268 269 if(!pixMapDrag) 270 g_warning("Cannot load pixbuf"); 271 if(!pixMapStop) 272 g_warning("Cannot load stop pixbuf"); 273 274 // gdk_pixbuf_render_pixmap_and_mask(pixBufDrag, &pixMapDrag, NULL, 128); 275 // gdk_window_set_back_pixmap(wgtDrag->window, pixMapDrag, FALSE); 276 // g_object_unref(pixMapDrag); 277 g_signal_connect_after(GTK_WIDGET(wgtDrag), "realize", G_CALLBACK(fldrWidgetRealize), NULL); 278 } 279 DosBeep(1000, 10); 280 g_message("%s", __FUNCTION__); 281 // if(wgtDrag->window) 282 //gdk_window_set_back_pixmap(wgtDrag->window, pixMapDrag, FALSE); 283 284 gtk_drag_set_icon_widget(dragContext, wgtDrag, 0, 0); 285 282 gpointer ptrUserData) 283 { 284 GtkTreePath* treePath; 285 gint x, y; 286 287 /* Create the drag window displayed to the user */ 288 if(NULLHANDLE==nomDragWindow) 289 { 290 nomDragWindow=NOMDragWindowNew(); 291 } 292 293 if(NULLHANDLE==nomDragInfo) 294 { 295 nomDragInfo=NOMDragInfoNew(); 296 } 297 298 if(!dragContext) 299 return; 300 301 /* Make sure we have no leftovers... */ 302 NOMDragInfo_deleteAllDragItems(nomDragInfo, NULLHANDLE); 303 NOMDragInfo_setGdkDragContextPointer(nomDragInfo, dragContext, NULLHANDLE); 304 305 /* Get the object beneath the pointer if any */ 306 gtk_widget_get_pointer(widget, &x, &y); 307 treePath=gtk_icon_view_get_path_at_pos(GTK_ICON_VIEW(widget), x, y ); 308 309 if(NULL==treePath) 310 { 311 /* Click on white space */ 312 // NOMDragWindow_hide(nomDragWindow, NULLHANDLE); 313 g_message("%d %s: White space!", __LINE__, __FUNCTION__); 314 } 315 else 316 { 317 GtkTreeIter iter; 318 GtkTreeModel* model; 319 WPObject *wpObject; 320 WPFolderWindow *wpFolderWindow=(WPFolderWindow*)ptrUserData; 321 322 /* Click on an icon occurred */ 323 324 if(!nomIsObj(wpFolderWindow)) 325 return; //Oops... 326 327 g_message("%s: %s", __FUNCTION__, gtk_tree_path_to_string(treePath)); 328 329 /* Get the object belonging to the tree path */ 330 model=gtk_icon_view_get_model(GTK_ICON_VIEW(widget)); 331 gtk_tree_model_get_iter(model , &iter, treePath); 332 gtk_tree_model_get(model, &iter, 0, &wpObject, -1); 333 334 // TST_OBJECT(wpObject); 335 336 if(nomIsObj(wpObject)){ 337 g_message("%s: %s begin DnD", __FUNCTION__, wpObject->mtab->nomClassName); 338 339 /* Add the object to the list of items for this drag */ 340 NOMDragInfo_addWPObjectToItemList(nomDragInfo, wpObject, 341 (PWPFolder)WPFolderWindow_wpQueryWPObject(wpFolderWindow, NULLHANDLE), 342 widget, NULLHANDLE); 343 } 344 else 345 g_message("%d %s: WPDataFile object not valid!", __LINE__, __FUNCTION__); 346 347 NOMDragWindow_show(nomDragWindow, NULLHANDLE); 348 } 349 350 351 /* Tell GTK to use our drag window as an 'icon' while dragging. */ 352 gtk_drag_set_icon_widget(dragContext, 353 NOMDragWindow_queryWindowHandle(nomDragWindow, NULLHANDLE), 0, 0); 354 355 // gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 356 //NOMDragWindow_hide(nomDragWindow, NULLHANDLE); 286 357 return; 287 358 } … … 293 364 GtkTreePath* treePath; 294 365 PWPFolderWindow pWindow; 366 WPObject *wpObject; 295 367 gulong rc=0; 296 static gulong oldRc=0; 368 static gulong oldRc=0xff;/* Make sure we at last one time have an rc!=oldRc so the icon is 369 set properly below */ 297 370 298 371 if(dragContext==NULL) … … 303 376 304 377 /* This does not work for some reason */ 305 gtk_drag_highlight(wgtThis); 306 gtk_widget_queue_draw(wgtThis); 378 // gtk_drag_highlight(wgtThis); 379 //gtk_widget_queue_draw(wgtThis); 380 307 381 308 382 if(dragContext) 309 383 { 310 g_message(" Actions: %x %x" , dragContext->actions, dragContext->suggested_action);384 // g_message(" Actions: %x %x" , dragContext->actions, dragContext->suggested_action); 311 385 } 312 386 … … 323 397 #endif 324 398 399 /* Find the object beneath the pointer */ 325 400 treePath=gtk_icon_view_get_path_at_pos(GTK_ICON_VIEW(wgtThis), x, y ); 326 327 401 if(NULL==treePath) 328 402 { 329 PWPFolder wpFolder; 330 /* White space */ 403 /* White space, so ask the folder */ 331 404 332 405 pWindow=(WPFolderWindow*)ptrUserData; … … 334 407 return FALSE; 335 408 336 wp Folder=(WPFolder*)WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE);337 338 if(!nomIsObj(wp Folder))409 wpObject=WPFolderWindow_wpQueryWPObject(pWindow, NULLHANDLE); 410 411 if(!nomIsObj(wpObject)) 339 412 return FALSE; 340 341 rc=WPObject_wpDragOver((WPObject*)wpFolder, wgtThis, dragContext, NULL);342 413 } 343 414 else … … 345 416 GtkTreeIter iter; 346 417 GtkTreeModel* model; 347 WPObject *wpObject; 418 348 419 /* Over an icon */ 349 420 350 // g_message("%s: %s", __FUNCTION__, gtk_tree_path_to_string(treePath));351 // gtk_icon_view_item_activated(GTK_ICON_VIEW(wgtThis), treePath);352 353 421 model=gtk_icon_view_get_model(GTK_ICON_VIEW(wgtThis)); 354 422 … … 358 426 //TST_OBJECT(wpObject); 359 427 360 //if(nomIsObj(wpObject)) 361 rc=WPObject_wpDragOver((WPObject*)wpObject, wgtThis, dragContext, NULL); 362 } 363 428 if(!nomIsObj(wpObject)) 429 return FALSE; 430 //g_message("Over an icon"); 431 } 432 rc=WPObject_wpDragOver(wpObject, wgtThis, nomDragInfo, NULL); 433 //g_message("rc: %d oldRc %d", rc, oldRc); 434 435 /* Change the drag icon if necesary. Note that this will not change the 436 cursor. */ 364 437 if(oldRc!=rc) 365 438 { … … 367 440 switch(rc) 368 441 { 369 case 0:442 case DOR_NODROP: 370 443 { 371 444 /* Don't drop */ 372 gdk_window_set_back_pixmap(wgtDrag->window, pixMapStop, FALSE); 445 NOMDragWindow_displayStopImage(nomDragWindow, NULLHANDLE); 446 // gdk_drag_status(dragContext, 0, t); 373 447 break; 374 448 } 375 449 default: 376 450 { 377 gdk_window_set_back_pixmap(wgtDrag->window, pixMapDrag, FALSE); 451 NOMDragWindow_displayDragImage(nomDragWindow, NULLHANDLE); 452 // gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 453 break; 454 } 455 } 456 /* Tell GTK to redraw the drag window */ 457 gtk_widget_queue_draw(NOMDragWindow_queryWindowHandle(nomDragWindow, NULLHANDLE)); 458 } 459 oldRc=rc; 460 461 switch(dragContext->actions) 462 { 463 case GDK_ACTION_COPY: 464 { 465 gdk_drag_status(dragContext, GDK_ACTION_COPY, t); 466 break; 467 } 468 case GDK_ACTION_MOVE: 469 { 470 gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 471 break; 472 } 473 case GDK_ACTION_LINK: 474 { 475 gdk_drag_status(dragContext, GDK_ACTION_LINK, t); 476 break; 477 } 478 default: 479 { 480 if(dragContext->actions & GDK_ACTION_MOVE) //FIXME 481 gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 482 break; 483 } 484 } 485 #if 0 486 /* Now change the cursor */ 487 switch(rc & DOR_ALLFLAGS) 488 { 489 case DOR_NODROP: 490 { 491 /* Don't drop */ 492 gdk_drag_status(dragContext, 0, t); 493 break; 494 } 495 default: 496 { 497 switch(rc & DO_ALLFLAGS) 498 { 499 case DO_MOVE: 500 { 501 gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 502 break; 503 } 504 case DO_COPY: 505 { 506 gdk_drag_status(dragContext, GDK_ACTION_COPY, t); 507 break; 508 } 509 case DO_LINK: 510 { 511 gdk_drag_status(dragContext, GDK_ACTION_LINK, t); 512 break; 513 } 514 515 default: 516 if(dragContext->actions & GDK_ACTION_MOVE) //FIXME 517 gdk_drag_status(dragContext, GDK_ACTION_MOVE, t); 378 518 break; 379 519 } 380 }381 gtk_widget_queue_draw(wgtDrag);382 } 383 oldRc=rc; 384 520 break; 521 } 522 }/* switch() */ 523 #endif 524 385 525 return FALSE; 386 526 } … … 390 530 guint info, guint uiTime, gpointer ptrUserData) 391 531 { 392 DosBeep(5000, 100);393 532 g_message("%s", __FUNCTION__); 394 533 // gdk_drag_status(dragContext, GDK_ACTION_COPY, uiTime); … … 397 536 398 537 399 400 538 /* 401 539 … … 424 562 break; 425 563 }; 426 // 564 427 565 return; 428 566 } … … 525 663 G_CALLBACK(fldrWindowHandleDragDrop), nomSelf); 526 664 g_signal_connect(GTK_WIDGET(icon_view), "drag_data_received", 527 G_CALLBACK(fldrWindowHandleDragDataReceived), NULL);665 G_CALLBACK(fldrWindowHandleDragDataReceived), nomSelf); 528 666 g_signal_connect(GTK_WIDGET(icon_view), "drag_data_get", 529 G_CALLBACK(fldrWindowHandleDragDataGet), NULL);667 G_CALLBACK(fldrWindowHandleDragDataGet), nomSelf); 530 668 531 669 /* Prepare drag and drop */ 532 670 gtk_drag_source_set(GTK_WIDGET(icon_view), GDK_BUTTON3_MASK, targetEntries, 533 G_N_ELEMENTS(targetEntries) 534 GDK_ACTION_ LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE);535 gtk_drag_dest_set(GTK_WIDGET(icon_view), GTK_DEST_DEFAULT_ALL, targetEntries, 1 536 GDK_ACTION_ LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE);671 G_N_ELEMENTS(targetEntries), 672 GDK_ACTION_DEFAULT|GDK_ACTION_LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE); 673 gtk_drag_dest_set(GTK_WIDGET(icon_view), GTK_DEST_DEFAULT_ALL, targetEntries, 1, 674 GDK_ACTION_DEFAULT|GDK_ACTION_LINK|GDK_ACTION_COPY|GDK_ACTION_MOVE); 537 675 538 676 #if 0 -
trunk/desktop/class_c/wpobject.c
r237 r241 33 33 * ***** END LICENSE BLOCK ***** */ 34 34 /* 35 * This file was generated by orbit-idl-2 for Voyager36 *37 *38 35 * And remember, phase 3 is near... 39 36 */ … … 801 798 const gpointer pDragInfo, CORBA_Environment *ev) 802 799 { 803 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */800 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 804 801 805 802 return 0; /* Don't allow drop */ … … 809 806 const gpointer pDragInfo, CORBA_Environment *ev) 810 807 { 811 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 812 813 DosBeep(500, 100); 808 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 809 g_message("Calling %s", __FUNCTION__); 814 810 return 0; 815 811 } 816 812 817 813 NOM_Scope CORBA_boolean NOMLINK impl_WPObject_wpMoveObject(WPObject* nomSelf, 814 const PWPFolder wpTargetFolder, 815 CORBA_Environment *ev) 816 { 817 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 818 g_message("Calling %s, not implemented yet", __FUNCTION__); 819 820 return FALSE; 821 } 822 823 NOM_Scope PWPObject NOMLINK impl_WPObject_wpCopyObject(WPObject* nomSelf, 824 const PWPFolder wpTargetFolder, 825 const CORBA_boolean fLock, 826 CORBA_Environment *ev) 827 { 828 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 829 830 g_message("Calling %s, not implmnted yet", __FUNCTION__); 831 return FALSE; 832 } 833 -
trunk/desktop/idl/wpobject.idl
r237 r241 347 347 348 348 gulong wpDrop(in gpointer containerHandle, in gpointer pDragInfo); 349 350 /** 351 Move an object to a new location. 352 353 \par How to override: 354 This method is overriden by classes which need special processing when 355 objects are moved. 356 357 \param wpTargetFolder The new folder into which the object will be moved. 358 359 \return TRUE when success. 360 361 \sa wpCopyObject() 362 */ 363 boolean wpMoveObject(in PWPFolder wpTargetFolder); 364 365 /** 366 Copy an object to a new location. 367 368 \par How to override: 369 This method is overriden by classes which need special processing when 370 objects are copied. An override can also be used to keep track of created 371 objects. 372 373 \param wpTargetFolder The new folder into which the object will be moved. 374 \param fLock If set TRUE the created object will be locked after creation. 375 A call to wpUnlockObject() is necessary so the object can go dormant. If 376 set to FALSE the object will be made dormant if the object is no longer used 377 and the folder containing it is closed. 378 379 \return TRUE when success. 380 381 \sa wpMoveObject() 382 */ 383 384 PWPObject wpCopyObject(in PWPFolder wpTargetFolder, in boolean fLock); 385 349 386 /* Methods overriden by this class */ 350 387 -
trunk/desktop/src/vdesktop.c
r224 r241 16 16 * The Initial Developer of the Original Code is 17 17 * netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>. 18 * Portions created by the Initial Developer are Copyright (C) 2005-200 618 * Portions created by the Initial Developer are Copyright (C) 2005-2007 19 19 * the Initial Developer. All Rights Reserved. 20 20 * … … 36 36 #define INCL_DOSPROFILE 37 37 #define INCL_DOSERRORS 38 #define INCL_PM39 38 40 39 #include <os2.h> -
trunk/foundation/Makefile
r225 r241 25 25 26 26 27 ADDLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp 27 ADDLIBS = -l$(OBJDIR)/nobjtk 28 # -l$(OBJDIR)/voywp 28 29 29 30 # Define objects to build -
trunk/foundation/class_c/nomstring.c
r227 r241 16 16 * The Initial Developer of the Original Code is 17 17 * netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>. 18 * Portions created by the Initial Developer are Copyright (C) 2006 18 * Portions created by the Initial Developer are Copyright (C) 2006-2007 19 19 * the Initial Developer. All Rights Reserved. 20 20 * -
trunk/gui/Makefile
r226 r241 28 28 -I $(FOUNDATIONPATH)/class_h -I $(FOUNDATIONPATH)/include 29 29 30 ADDLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp 30 ADDLIBS = -l$(OBJDIR)/nobjtk 31 # -l$(OBJDIR)/voywp 31 32 32 33 # Define objects to build … … 36 37 $(OBJDIR)/nommenu.o \ 37 38 $(OBJDIR)/nommenuitem.o \ 38 $(OBJDIR)/nomnotebook.o 39 $(OBJDIR)/nomnotebook.o \ 40 $(OBJDIR)/nomdragwindow.o \ 41 $(OBJDIR)/nomdraginfo.o 42 39 43 # $(OBJDIR)/nomfolderwindow.o \ 40 44 -
trunk/gui/exports.def
r226 r241 24 24 _NOMNoteBookCClassData 25 25 NOMNoteBookNewClass 26 27 _NOMDragWindowClassData 28 _NOMDragWindowCClassData 29 NOMDragWindowNewClass 30 31 _NOMDragInfoClassData 32 _NOMDragInfoCClassData 33 NOMDragInfoNewClass 34
Note:
See TracChangeset
for help on using the changeset viewer.