Changeset 188 for trunk/desktop/class_c
- Timestamp:
- Jan 13, 2007, 11:54:02 PM (19 years ago)
- Location:
- trunk/desktop/class_c
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/class_c/wpfolder.c
r186 r188 65 65 #include "desktoptypes.h" 66 66 67 #include "nomfolderwindow.h" 67 #ifndef WPFolder 68 typedef struct WPFolder_struct { 69 struct nomMethodTabStruct *mtab; 70 gulong body[1]; 71 } WPFolderObj; 72 #define WPFolder WPFolderObj 73 typedef WPFolder *PWPFolder; 74 #endif 75 76 #include "wpfolderwindow.h" 68 77 69 78 #include "wpfolder.ih" … … 242 251 return FALSE; 243 252 } 244 /* Insert an object into the folders object list */245 void tst_insertObject(WPFolder* nomSelf, WPObject* wpObject, gchar* chrName)246 {247 WPFolderData* nomThis=WPFolderGetData(nomSelf);248 249 g_tree_insert(_fldrObjects, chrName, wpObject);250 }251 253 #endif 252 254 … … 270 272 wpDataFile=(WPDataFile*)pValue->wpObject; 271 273 272 if(nomIsObj( (PNOMObject)wpDataFile))274 if(nomIsObj(wpDataFile)) 273 275 { 274 276 gtk_list_store_append (store, &iter); … … 443 445 { 444 446 WPObject* wpObject; 445 NOMFolderWindow* wpWindow;447 WPFolderWindow* wpWindow; 446 448 447 449 PUSEITEM pUseItem=(PUSEITEM) pData; 448 450 449 451 /* This is also in the use item */ 450 wpWindow=( NOMFolderWindow*)g_object_get_data(G_OBJECT(gtkWidget), NOMOBJECT_KEY_STRING);452 wpWindow=(WPFolderWindow*)g_object_get_data(G_OBJECT(gtkWidget), NOMOBJECT_KEY_STRING); 451 453 452 454 g_return_val_if_fail(NULLHANDLE!=wpWindow, FALSE); … … 465 467 466 468 467 NOM_Scope gpointer NOMLINK impl_WPFolder_wpOpen(WPFolder* nomSelf, const P NOMFolderWindow nomFolder,469 NOM_Scope gpointer NOMLINK impl_WPFolder_wpOpen(WPFolder* nomSelf, const PWPFolderWindow nomFolder, 468 470 const gulong ulView, const gpointer pParam, 469 471 CORBA_Environment *ev) … … 478 480 PUSEITEM pui; 479 481 ULONG ulError; 480 NOMFolderWindow * nomFldrWindow;482 WPFolderWindow * wpFldrWindow; 481 483 gchar* pszPath; 482 484 PPRIVFOLDERDATA priv; … … 488 490 489 491 490 nomFldrWindow=WPFolder_wpCreateFolderWindow(nomSelf, ev); 491 #warning !!!!! There is WPWindow now. Use that for any WPS windows, Then this call must be changed 492 NOMFolderWindow_setWPFolderObject(nomFldrWindow, nomSelf, NULLHANDLE); 492 wpFldrWindow=WPFolder_wpCreateFolderWindow(nomSelf, NULLHANDLE); 493 WPFolderWindow_wpSetWPObject(wpFldrWindow, (WPObject*)nomSelf, NULLHANDLE); 493 494 494 495 /* Insert it into inuse list */ … … 499 500 pui++; 500 501 ((VIEWITEM*)pui)->ulView=VIEW_CONTENTS; 501 ((VIEWITEM*)pui)->nomWindow=(NOMWindow*) nomFldrWindow;502 ((VIEWITEM*)pui)->nomWindow=(NOMWindow*)wpFldrWindow; 502 503 pui--; 503 504 #warning !!!!! Folder window must be inserted into inuse list !!!!! 504 505 /* Make sure the view item is removed when the window is closed */ 505 g_signal_connect(G_OBJECT(NOMWindow_queryWindowHandle((NOMWindow*) nomFldrWindow, NULLHANDLE)),"delete-event",506 g_signal_connect(G_OBJECT(NOMWindow_queryWindowHandle((NOMWindow*)wpFldrWindow, NULLHANDLE)),"delete-event", 506 507 G_CALLBACK(tempWPWindowDeleteHandler), (gpointer) pui); 507 508 WPFolder_wpAddToObjUseList(nomSelf, pui, NULLHANDLE); … … 536 537 g_object_unref (gStore); 537 538 538 return nomFldrWindow;539 return wpFldrWindow; 539 540 }/* default */ 540 541 default: … … 572 573 gpointer user_data) 573 574 { 574 P NOMFolderWindow pWindow;575 576 pWindow=( NOMFolderWindow*)user_data;575 PWPFolderWindow pWindow; 576 577 pWindow=(WPFolderWindow*)user_data; 577 578 578 579 if(NULL!=treePath) … … 598 599 models and stuff. 599 600 */ 600 NOM_Scope P NOMFolderWindow NOMLINK impl_WPFolder_wpCreateFolderWindow(WPFolder* nomSelf, CORBA_Environment *ev)601 { 602 NOMFolderWindow * nomFldrWindow;601 NOM_Scope PWPFolderWindow NOMLINK impl_WPFolder_wpCreateFolderWindow(WPFolder* nomSelf, CORBA_Environment *ev) 602 { 603 WPFolderWindow * wpFldrWindow; 603 604 PPRIVFOLDERDATA priv; 604 605 WPFolderData *nomThis = WPFolderGetData(nomSelf); … … 606 607 priv=(PPRIVFOLDERDATA)_privFolderData; 607 608 608 nomFldrWindow=NOMFolderWindowNew();609 wpFldrWindow=WPFolderWindowNew(); 609 610 610 611 #warning !!!!! This is only for testing !!!!! 611 priv->gtkIconView= NOMFolderWindow_queryContainerHandle(nomFldrWindow, ev);612 priv->gtkIconView=WPFolderWindow_wpQueryContainerHandle(wpFldrWindow, ev); 612 613 613 614 /* Connect to the "item_activated" signal */ … … 615 616 G_CALLBACK (itemActivated), nomSelf); 616 617 617 gtk_window_set_title (GTK_WINDOW ( NOMFolderWindow_queryWindowHandle(nomFldrWindow, NULLHANDLE)),618 gtk_window_set_title (GTK_WINDOW (WPFolderWindow_queryWindowHandle(wpFldrWindow, NULLHANDLE)), 618 619 NOMString_queryCString(WPFolder_wpQueryTitle(nomSelf, NULLHANDLE), NULLHANDLE)); 619 620 /* Show the new window */ 620 NOMFolderWindow_show(nomFldrWindow, ev);621 622 return nomFldrWindow;621 WPFolderWindow_show(wpFldrWindow, ev); 622 623 return wpFldrWindow; 623 624 } 624 625 -
trunk/desktop/class_c/wpobject.c
r186 r188 52 52 /* We have to declare this here to make PNOMFolderWindow known 53 53 to wpDisplayMenu(). */ 54 #ifndef NOMFolderWindow55 typedef struct NOMFolderWindow_struct {54 #ifndef WPFolderWindow 55 typedef struct WPFolderWindow_struct { 56 56 struct nomMethodTabStruct *mtab; 57 57 gulong body[1]; 58 } NOMFolderWindowObj;59 #define NOMFolderWindow NOMFolderWindowObj60 typedef NOMFolderWindow *PNOMFolderWindow;58 } WPFolderWindowObj; 59 #define WPFolderWindow WPFolderWindowObj 60 typedef WPFolderWindow *PWPFolderWindow; 61 61 #endif 62 62 … … 74 74 75 75 #include "wpobject.ih" 76 #include " nomfolderwindow.h"76 #include "wpfolderwindow.h" 77 77 #include "wpnotebook.h" 78 78 … … 205 205 } 206 206 207 NOM_Scope gpointer NOMLINK impl_WPObject_wpOpen(WPObject* nomSelf, const P NOMFolderWindow nomFolder,207 NOM_Scope gpointer NOMLINK impl_WPObject_wpOpen(WPObject* nomSelf, const PWPFolderWindow nomFolder, 208 208 const gulong ulView, const gpointer pParam, CORBA_Environment *ev) 209 209 { … … 249 249 } 250 250 251 NOM_Scope gpointer NOMLINK impl_WPObject_wpViewObject(WPObject* nomSelf, const PNOMFolderWindow nomFolder, const gulong ulView, const gpointer pParam, CORBA_Environment *ev) 251 NOM_Scope gpointer NOMLINK impl_WPObject_wpViewObject(WPObject* nomSelf, const PWPFolderWindow nomFolder, 252 const gulong ulView, const gpointer pParam, 253 CORBA_Environment *ev) 252 254 { 253 255 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ … … 590 592 591 593 592 NOM_Scope PNOMMenu NOMLINK impl_WPObject_wpDisplayMenu(WPObject* nomSelf, const P NOMFolderWindow nomFolder,594 NOM_Scope PNOMMenu NOMLINK impl_WPObject_wpDisplayMenu(WPObject* nomSelf, const PWPFolderWindow nomFolder, 593 595 const gpointer gReserved, const CORBA_unsigned_long ulMenuType, 594 596 const CORBA_unsigned_long ulReserved, CORBA_Environment *ev) … … 610 612 } 611 613 612 NOM_Scope void NOMLINK impl_WPObject_wpModifyMenu(WPObject* nomSelf, const P NOMFolderWindow nomFolder,614 NOM_Scope void NOMLINK impl_WPObject_wpModifyMenu(WPObject* nomSelf, const PWPFolderWindow nomFolder, 613 615 const PNOMMenu nomMenu, const CORBA_unsigned_long ulMenuType, 614 616 CORBA_Environment *ev) … … 627 629 } 628 630 629 NOM_Scope void NOMLINK impl_WPObject_wpFilterMenu(WPObject* nomSelf, const P NOMFolderWindow nomFolder,631 NOM_Scope void NOMLINK impl_WPObject_wpFilterMenu(WPObject* nomSelf, const PWPFolderWindow nomFolder, 630 632 const PNOMMenu nomMenu, const CORBA_unsigned_long ulMenuType, 631 633 const CORBA_unsigned_long ulFlags, CORBA_Environment *ev) … … 635 637 } 636 638 637 NOM_Scope CORBA_boolean NOMLINK impl_WPObject_wpMenuItemSelected(WPObject* nomSelf, const P NOMFolderWindow nomFolder,639 NOM_Scope CORBA_boolean NOMLINK impl_WPObject_wpMenuItemSelected(WPObject* nomSelf, const PWPFolderWindow nomFolder, 638 640 const PNOMMenuItem nomMenuItem, 639 641 CORBA_Environment *ev)
Note:
See TracChangeset
for help on using the changeset viewer.