Changeset 141
- Timestamp:
- Dec 3, 2006, 12:55:29 PM (19 years ago)
- Location:
- trunk/desktop
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/Makefile
r127 r141 18 18 19 19 TKIDLDIR = $(NOMPATH)/idl # The object TK lives here 20 IDLINC = --include=$(FOUNDATIONPATH)/idl 20 21 21 22 #INC = ./include -I $(NOMPATH)/include -I $(NOMPATH)/class_h 22 23 INC = ./include -I ./class_h -I $(NOMPATH)/class_h -I $(NOMPATH)/include \ 23 -I $(GUITKPATH)/class_h -I $(GUITKPATH)/include 24 -I $(GUITKPATH)/class_h -I $(GUITKPATH)/include -I $(FOUNDATIONPATH)/class_h \ 25 -I $(FOUNDATIONPATH)/include 24 26 25 27 ADDLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voywp 26 CLASSDLLLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voyguitk 28 CLASSDLLLIBS = -l$(OBJDIR)/nobjtk -l$(OBJDIR)/voyguitk -l$(OBJDIR)/voyfcls 29 GCLIB = -l$(OBJDIR)/gc 27 30 28 31 # Define objects to build … … 47 50 @echo "[33;1;mLinking "$@"...[0;m" 48 51 cmd.exe /C .\src\create_vdesktop_def $(OBJDIR)/vdesktop.def 49 $(CC) $(GCCLDFLAGSDLL) -o $@ $(DLLOBJECTS) $(LIBS) $(ADDLIBS) $( OBJDIR)/vdesktop.def52 $(CC) $(GCCLDFLAGSDLL) -o $@ $(DLLOBJECTS) $(LIBS) $(ADDLIBS) $(GCLIB) $(OBJDIR)/vdesktop.def 50 53 @echo "[32;1;mDone linking "$@"...[0;m" 51 54 … … 65 68 ################################### 66 69 67 BASE_NOMCOMPILEH = $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --header --output-dir=$(CLASSINC) $<68 BASE_NOMCOMPILEIH = $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --ihfile --output-dir=$(CLASSINC) $<69 BASE_NOMCOMPILEC = $(IDLCOMP) -include=$(TKIDLDIR) --showcpperrors --c-template --output-dir=$(CLASSTEMPLATEDIR) $<70 BASE_NOMCOMPILEH = $(IDLCOMP) -include=$(TKIDLDIR) $(IDLINC) --showcpperrors --header --output-dir=$(CLASSINC) $< 71 BASE_NOMCOMPILEIH = $(IDLCOMP) -include=$(TKIDLDIR) $(IDLINC) --showcpperrors --ihfile --output-dir=$(CLASSINC) $< 72 BASE_NOMCOMPILEC = $(IDLCOMP) -include=$(TKIDLDIR) $(IDLINC) --showcpperrors --c-template --output-dir=$(CLASSTEMPLATEDIR) $< 70 73 71 74 … … 74 77 $(CC) -I $(INC) $(GCCFLAGS) -o$@ $< 75 78 76 $(OBJDIR)/ %.o: $(CLASSCDIR)/%.c79 $(OBJDIR)/helper.o: $(CLASSCDIR)/helper.c 77 80 $(CC) -I $(INC) $(GCCFLAGS) -o$@ $< 78 81 … … 81 84 $(BASE_NOMCOMPILEH) 82 85 $(BASE_NOMCOMPILEC) 86 87 $(CLASSINC)/%.h: $(IDLDIR)/%.idl 88 $(BASE_NOMCOMPILEH) 83 89 84 90 $(OBJDIR)/%.o: $(CDIR)/%.c -
trunk/desktop/class_c/wpfilesystem.c
r98 r141 39 39 #include <os2.h> 40 40 41 #include "nom.h" 42 #include "nomtk.h" 43 41 44 #include <string.h> 42 45 #include "wpfilesystem.ih" … … 46 49 /* WPFileSystemData* nomThis=WPFileSystemGetData(nomSelf); */ 47 50 51 nomPrintf("thePath: ---> %s \n", fullPath); 48 52 } 49 53 -
trunk/desktop/class_c/wpfolder.c
r127 r141 253 253 case OPEN_DEFAULT: 254 254 { 255 WPFolder_wpCreateFolderWindow(nomSelf, ev); 255 256 #if 0 256 257 char path[CCHMAXPATH]; … … 334 335 335 336 336 337 338 337 NOM_Scope void NOMLINK impl_WPFolder_tstSetFolderPath(WPFolder* nomSelf, const CORBA_char * thePath, CORBA_Environment *ev) 338 { 339 /* WPFolderData* nomThis=WPFolderGetData(nomSelf); */ 340 341 342 } 343 344 345 346 -
trunk/desktop/class_c/wpobject.c
r122 r141 124 124 //g_mutex_free(_gObjectMutex); 125 125 DosCloseMutexSem(_gObjectMutex); 126 WPObject_nomUninit_parent( nomSelf,ev);126 WPObject_nomUninit_parent((NOMObject*)nomSelf, ev); 127 127 } 128 128 129 129 NOM_Scope void NOMLINK impl_WPObject_wpInitData(WPObject* nomSelf, CORBA_Environment *ev) 130 130 { 131 /* WPObjectData* nomThis=WPObjectGetData(nomSelf); */ 132 131 WPObjectData* nomThis=WPObjectGetData(nomSelf); 132 133 /* Make sure a title exists (even if it's an empty string */ 134 _pnomStringTitle=NOMStringNew(); 133 135 } 134 136 … … 195 197 return DosReleaseMutexSem(_gObjectMutex); 196 198 } 199 200 NOM_Scope PNOMString NOMLINK impl_WPObject_wpSetTitle(WPObject* nomSelf, const PNOMString pnomStrNewTitle, CORBA_Environment *ev) 201 { 202 WPObjectData* nomThis=WPObjectGetData(nomSelf); 203 204 NOMString_assignString(_pnomStringTitle, pnomStrNewTitle, ev); 205 206 return _pnomStringTitle; 207 } 208 209 NOM_Scope PNOMString NOMLINK impl_WPObject_wpQueryTitle(WPObject* nomSelf, CORBA_Environment *ev) 210 { 211 WPObjectData* nomThis=WPObjectGetData(nomSelf); 212 213 return _pnomStringTitle; 214 } 215 -
trunk/desktop/exports.def
r99 r141 8 8 _WPObjectCClassData 9 9 WPObjectNewClass 10 11 10 ; _M_WPObjectClassData 12 11 ; _M_WPObjectCClassData … … 30 29 _WPDataFileCClassData 31 30 WPDataFileNewClass 32 33 31 ; _M_WPDataFileClassData 34 32 ; _M_WPDataFileCClassData -
trunk/desktop/idl/wpfolder.idl
r125 r141 37 37 38 38 #include "wpfilesystem.idl" 39 #include "nomfilepath.idl" 39 40 40 41 NOMCLASSNAME(WPFolder); … … 48 49 in boolean fFoldersOnly); 49 50 gpointer wpCreateFolderWindow(); 50 51 void tstSetFolderPath(in string thePath); /* Only for testing */ 51 52 #if 0 52 53 WPObject wpQueryContent(in WPObject Object, … … 61 62 62 63 NOMINSTANCEVAR(PPRIVFOLDERDATA privFolderData); 64 NOMINSTANCEVAR(PNOMPath pnomPath); 63 65 }; 64 66 -
trunk/desktop/idl/wpobject.idl
r125 r141 39 39 40 40 #include "wpnativetypes.idl" 41 #include "nomstring.idl" 41 42 42 43 //interface WPFolder; … … 69 70 gpointer wpQueryIcon(); 70 71 unsigned long wpRequestObjectMutexSem(in unsigned long ulReserved); 71 unsigned long 72 unsigned long wpReleaseObjectMutexSem(); 72 73 /* boolean wpSetFolder(in WPFolder wpParentFolder); */ 74 75 PNOMString wpSetTitle(in PNOMString pnomStrNewTitle); 76 PNOMString wpQueryTitle(); 73 77 74 78 /* Methods overriden by this class */ … … 81 85 NOMINSTANCEVAR(HMUX gObjectMutex); 82 86 NOMINSTANCEVAR(PGSList glstObjectInUse); 87 NOMINSTANCEVAR(PNOMString pnomStringTitle); 83 88 84 89 }; -
trunk/desktop/src/vdesktop.c
r113 r141 37 37 #include <os2.h> 38 38 #include <stdio.h> 39 #include <stdlib.h> 39 40 #include <gtk/gtk.h> 40 41 #include "debug_window.h" 42 #include <gc.h> 41 43 42 44 #include "nom.h" … … 44 46 #include "wpobject.h" 45 47 #include "wpfolder.h" 48 #include "desktoptypes.h" 46 49 47 50 int createQuitWindow(void); … … 53 56 /* Desktop folder */ 54 57 WPFolder *wpDesktop; 55 56 57 58 /* 58 59 Main entry point. This function is called from the EMX wrapper. Be aware that gtk_init() … … 62 63 { 63 64 char desktopDir[CCHMAXPATH]={0}; 64 65 g_message("We started...\n"); 65 66 g_message("We started...\n"); 67 66 68 67 69 #if 0 … … 103 105 wpDesktop=WPFolderNew(); 104 106 dbgPrintf( "Created desktop object: %x", wpDesktop); 107 WPFolder_tstSetFullPath(wpDesktop, desktopDir, NULLHANDLE); 105 108 106 WPFolder_wp Populate(wpDesktop, 0, desktopDir, 0,NULL);109 WPFolder_wpOpen(wpDesktop, NULL, OPEN_DEFAULT, NULL, NULL); 107 110 /* WPFolder_wpPopulate(wpObject, 0,"blabla 2", 0, NULL); */ 108 111
Note:
See TracChangeset
for help on using the changeset viewer.