Changeset 102
- Timestamp:
- Nov 25, 2006, 5:37:43 PM (19 years ago)
- Location:
- trunk/desktop
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/Makefile
r99 r102 22 22 INC = ./include -I ./class_h -I $(NOMPATH)/class_h -I $(NOMPATH)/include 23 23 24 ADDLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp24 ADDLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp 25 25 CLASSDLLLIBS = -l$(OBJDIR)/nobjtk 26 26 -
trunk/desktop/class_c/wpfolder.c
r99 r102 42 42 #include <os2.h> 43 43 44 #include "nom.h" 45 #include <nomtk.h> 46 44 47 #include <string.h> 45 48 #include "wpfolder.ih" 46 49 50 51 /* pszPath contains the fully qualified path (checked with WPS) */ 47 52 NOM_Scope CORBA_boolean NOMLINK impl_WPFolder_wpPopulate(WPFolder* nomSelf, const CORBA_unsigned_long ulReserved, const CORBA_char * pszPath, const CORBA_boolean fFoldersOnly, CORBA_Environment *ev) 48 53 { … … 50 55 CORBA_boolean nomRetval; 51 56 57 nomPrintf(" Entering %s with nomSelf: 0x%x. nomSelf is: %s. Path is %s\n", 58 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName, pszPath); 59 52 60 return nomRetval; 61 } 62 63 64 NOM_Scope void NOMLINK impl_WPFolder_wpInitData(WPFolder* nomSelf, CORBA_Environment *ev) 65 { 66 /* WPFolderData* nomThis=WPFolderGetData(nomSelf); */ 67 68 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */ 69 WPFolder_wpInitData_parent(nomSelf, ev); 70 71 nomPrintf(" Entering %s with nomSelf: 0x%x. nomSelf is: %s.\n", 72 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName); 73 74 53 75 } 54 76 -
trunk/desktop/class_c/wpobject.c
r98 r102 41 41 #include <os2.h> 42 42 43 #include <nom.h> 44 #include <nomtk.h> 45 43 46 #include <string.h> 44 47 #include "wpobject.ih" … … 64 67 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 65 68 66 #if 067 69 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */ 68 70 WPObject_nomInit_parent(nomSelf, ev); 69 #endif 71 72 nomPrintf(" Entering %s with nomSelf: 0x%x. nomSelf is: %s.\n", 73 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName); 74 75 _wpInitData(nomSelf, ev); 70 76 } 71 77 -
trunk/desktop/idl/wpfolder.idl
r99 r102 53 53 #endif 54 54 55 NOMOVERRIDE(wpInitData); 55 56 }; 56 57 -
trunk/desktop/src/vdesktop.c
r99 r102 43 43 #include "nomtk.h" 44 44 #include "wpobject.h" 45 #include "wpfolder.h" 45 46 46 47 int createQuitWindow(void); … … 49 50 NOMClassMgr *NOMClassMgrObject; 50 51 51 #if 0 52 52 53 /* Desktop folder */ 53 54 WPFolder *wpDesktop; 54 #endif 55 55 56 56 57 /* … … 66 67 67 68 /* Create a window with a 'quit' button to terminate us */ 68 69 createQuitWindow(); 69 70 70 71 71 72 /* Query current dir */ 72 73 g_strlcpy(desktopDir, g_get_current_dir(), sizeof(desktopDir)); 73 nomPrintf("Desktop: %s\n", desktopDir);74 dbgPrintf("Desktop: %s", desktopDir); 74 75 75 76 /* … … 77 78 */ 78 79 pEnv=nomTkInit(); 79 dbgPrintf( "nomTKinit returned: %x", pEnv);80 //dbgPrintf( "nomTKinit returned: %x", pEnv); 80 81 81 82 if(!pEnv) { … … 86 87 /* Init SOM */ 87 88 NOMClassMgrObject=nomEnvironmentNew(); 88 dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject);89 //dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject); 89 90 90 91 … … 92 93 WPObject* wpObject; 93 94 wpObject=WPObjectNew(); 94 dbgPrintf( "wpObject: %x", wpObject); 95 //dbgPrintf( "wpObject: %x", wpObject); 96 97 /* Create desktop folder */ 98 wpDesktop=WPFolderNew(); 99 dbgPrintf( "Created desktop object: %x", wpDesktop); 100 101 WPFolder_wpPopulate(wpDesktop, 0, desktopDir, 0, NULL); 102 /* WPFolder_wpPopulate(wpObject, 0,"blabla 2", 0, NULL); */ 103 104 95 105 #if 0 96 106 /* Base classes */ … … 100 110 somPrintf(" -> Classname is: %s\n", _somGetClassName(wpObject)); 101 111 102 /* Create desktop folder */103 wpDesktop=WPFolderNew();104 dbgPrintf( "Created desktop object: %x", wpDesktop);105 112 106 113 /* Test only!!! */
Note:
See TracChangeset
for help on using the changeset viewer.