Changeset 102


Ignore:
Timestamp:
Nov 25, 2006, 5:37:43 PM (19 years ago)
Author:
cinc
Message:

Implemented wpInitData() for desktop classes

Location:
trunk/desktop
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/desktop/Makefile

    r99 r102  
    2222INC             =       ./include -I ./class_h -I $(NOMPATH)/class_h -I $(NOMPATH)/include
    2323
    24 ADDLIBS         =       -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp
     24ADDLIBS         =        -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp
    2525CLASSDLLLIBS    =       -l$(OBJDIR)/nobjtk
    2626
  • trunk/desktop/class_c/wpfolder.c

    r99 r102  
    4242#include <os2.h>
    4343
     44#include "nom.h"
     45#include <nomtk.h>
     46
    4447#include <string.h>
    4548#include "wpfolder.ih"
    4649
     50
     51/* pszPath contains the fully qualified path (checked with WPS) */
    4752NOM_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)
    4853{
     
    5055  CORBA_boolean nomRetval;
    5156
     57  nomPrintf("    Entering %s with nomSelf: 0x%x. nomSelf is: %s. Path is %s\n",
     58            __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName, pszPath);
     59
    5260  return nomRetval;
     61}
     62
     63
     64NOM_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
    5375}
    5476
  • trunk/desktop/class_c/wpobject.c

    r98 r102  
    4141#include <os2.h>
    4242
     43#include <nom.h>
     44#include <nomtk.h>
     45
    4346#include <string.h>
    4447#include "wpobject.ih"
     
    6467/* WPObjectData* nomThis=WPObjectGetData(nomSelf); */
    6568
    66 #if 0
    6769  /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */
    6870  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);
    7076}
    7177
  • trunk/desktop/idl/wpfolder.idl

    r99 r102  
    5353#endif
    5454
     55  NOMOVERRIDE(wpInitData);
    5556};
    5657
  • trunk/desktop/src/vdesktop.c

    r99 r102  
    4343#include "nomtk.h"
    4444#include "wpobject.h"
     45#include "wpfolder.h"
    4546
    4647int createQuitWindow(void);
     
    4950NOMClassMgr *NOMClassMgrObject;
    5051
    51 #if 0
     52
    5253/* Desktop folder */
    5354WPFolder *wpDesktop;
    54 #endif
     55
    5556
    5657/*
     
    6667
    6768  /* Create a window with a 'quit' button to terminate us */
    68   createQuitWindow();
     69 createQuitWindow();
    6970
    7071
    7172  /* Query current dir */
    7273  g_strlcpy(desktopDir, g_get_current_dir(), sizeof(desktopDir));
    73   nomPrintf("Desktop: %s\n", desktopDir);
     74  dbgPrintf("Desktop: %s", desktopDir);
    7475
    7576    /*
     
    7778     */
    7879    pEnv=nomTkInit();
    79     dbgPrintf( "nomTKinit returned: %x", pEnv);
     80    //dbgPrintf( "nomTKinit returned: %x", pEnv);
    8081
    8182    if(!pEnv) {
     
    8687    /* Init SOM */
    8788    NOMClassMgrObject=nomEnvironmentNew();
    88     dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject);
     89    //dbgPrintf( "NOMClassMgrObject: %x", NOMClassMgrObject);
    8990
    9091
     
    9293    WPObject* wpObject;
    9394    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   
    95105#if 0
    96106    /* Base classes */
     
    100110    somPrintf("  -> Classname is: %s\n", _somGetClassName(wpObject));
    101111
    102     /* Create desktop folder */
    103     wpDesktop=WPFolderNew();
    104     dbgPrintf( "Created desktop object: %x", wpDesktop);
    105112
    106113    /* Test only!!! */
Note: See TracChangeset for help on using the changeset viewer.