Changeset 146 for trunk/desktop
- Timestamp:
- Dec 3, 2006, 9:54:12 PM (19 years ago)
- Location:
- trunk/desktop
- Files:
-
- 5 edited
-
Makefile (modified) (2 diffs)
-
class_c/wpfilesystem.c (modified) (1 diff)
-
class_c/wpfolder.c (modified) (12 diffs)
-
idl/wpfilesystem.idl (modified) (2 diffs)
-
idl/wpfolder.idl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/desktop/Makefile
r141 r146 18 18 19 19 TKIDLDIR = $(NOMPATH)/idl # The object TK lives here 20 IDLINC = --include=$(FOUNDATIONPATH)/idl 20 IDLINC = -include=$(FOUNDATIONPATH)/idl -include=$(TKIDLDIR) \ 21 -include=$(GUITKPATH)/idl 21 22 22 #INC = ./include -I $(NOMPATH)/include -I $(NOMPATH)/class_h 23 INC = ./include -I ./class_h -I $(NOMPATH)/class_h -I $(NOMPATH)/include \ 23 INC = ./include -I ./class_h -I $(NOMPATH)/class_h -I $(NOMPATH)/include\ 24 24 -I $(GUITKPATH)/class_h -I $(GUITKPATH)/include -I $(FOUNDATIONPATH)/class_h \ 25 25 -I $(FOUNDATIONPATH)/include … … 68 68 ################################### 69 69 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 BASE_NOMCOMPILEH = $(IDLCOMP) $(IDLINC) --showcpperrors --header --output-dir=$(CLASSINC) $< 71 BASE_NOMCOMPILEIH = $(IDLCOMP) $(IDLINC) --showcpperrors --ihfile --output-dir=$(CLASSINC) $< 72 BASE_NOMCOMPILEC = $(IDLCOMP) $(IDLINC) --showcpperrors --c-template --output-dir=$(CLASSTEMPLATEDIR) $< 73 73 74 74 -
trunk/desktop/class_c/wpfilesystem.c
r141 r146 45 45 #include "wpfilesystem.ih" 46 46 47 NOM_Scope void NOMLINK impl_WPFileSystem_tstSetFullPath(WPFileSystem* nomSelf, const CORBA_char * fullPath, CORBA_Environment *ev) 47 NOM_Scope void NOMLINK impl_WPFileSystem_tstSetFullPath(WPFileSystem* nomSelf, const CORBA_char * fullPath, 48 CORBA_Environment *ev) 48 49 { 49 /* WPFileSystemData* nomThis=WPFileSystemGetData(nomSelf); */ 50 WPFileSystemData* nomThis=WPFileSystemGetData(nomSelf); 50 51 51 52 nomPrintf("thePath: ---> %s \n", fullPath); 53 _pszFullPath=fullPath; 52 54 } 53 55 56 NOM_Scope PNOMPath NOMLINK impl_WPFileSystem_wpQueryRealName(WPFileSystem* nomSelf, const CORBA_boolean bFullPath, 57 CORBA_Environment *ev) 58 { 59 WPFileSystemData* nomThis=WPFileSystemGetData(nomSelf); 60 PNOMPath nomRetval=NOMPathNew(); 61 62 NOMPath_assignCString(nomRetval, _pszFullPath, ev); 63 64 return nomRetval; 65 } 66 -
trunk/desktop/class_c/wpfolder.c
r141 r146 57 57 }PRIVFOLDERDATA, *PPRIVFOLDERDATA; 58 58 59 /* Gui stuff */ 60 #include "nomguitk.h" 61 #include "nomfolderwindow.h" 62 59 63 #include "wpfolder.ih" 60 64 #include "wpdatafile.h" … … 63 67 #include "desktoptypes.h" 64 68 65 /* Gui stuff */66 #include "nomguitk.h"67 #include "nomfolderwindow.h"68 69 69 70 /* Enum for the folder store */ 70 71 enum 71 72 { 73 COL_OBJECT_PTR, 72 74 COL_PATH, 73 75 COL_DISPLAY_NAME, … … 82 84 83 85 store = gtk_list_store_new (NUM_COLS, 84 G_TYPE_STRING, 85 G_TYPE_STRING, 86 GDK_TYPE_PIXBUF, 87 G_TYPE_BOOLEAN); 88 86 G_TYPE_POINTER, 87 G_TYPE_STRING, 88 G_TYPE_STRING, 89 GDK_TYPE_PIXBUF, 90 G_TYPE_BOOLEAN); 91 g_message("%s: store: %x", __FUNCTION__, store); 89 92 return store; 90 93 } … … 131 134 132 135 gtk_list_store_set (store, &iter, 136 COL_OBJECT_PTR, wpFolder, 133 137 COL_PATH, path, 134 138 COL_DISPLAY_NAME, display_name, … … 153 157 nomPrintf("Icon ptr: %x\n", _wpQueryIcon((WPObject*)wpDataFile, NULLHANDLE)); 154 158 gtk_list_store_set (store, &iter, 159 COL_OBJECT_PTR, wpDataFile, 155 160 COL_PATH, path, 156 161 COL_DISPLAY_NAME, display_name, … … 185 190 g_log("WPFolder", G_LOG_LEVEL_DEBUG, "%s: Populating %s\n", __FUNCTION__, pszPath); 186 191 187 #warning !!!!! Window creation must be done elsewhere !!!!!188 _wpCreateFolderWindow(nomSelf, NULLHANDLE);189 192 190 193 #if 0 … … 215 218 gtk_icon_view_set_model(GTK_ICON_VIEW (priv->gtkIconView), GTK_TREE_MODEL (priv->gstoreFldContents)); 216 219 217 /* We now set which model columns that correspon tto the text220 /* We now set which model columns that correspond to the text 218 221 * and pixbuf of each item 219 222 */ … … 228 231 } 229 232 230 231 NOM_Scope void NOMLINK impl_WPFolder_wpInitData(WPFolder* nomSelf, CORBA_Environment *ev)232 {233 gulong ulErr;234 WPFolderData* nomThis=WPFolderGetData(nomSelf);235 236 /* orbit-idl-c-stubs.c, VoyagerWriteProtoForParentCall line 84 */237 WPFolder_wpInitData_parent((WPObject*)nomSelf, ev);238 239 nomPrintf(" Entering %s with nomSelf: 0x%x. nomSelf is: %s.\n",240 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName);241 _privFolderData=_wpAllocMem((WPObject*)nomSelf, sizeof(PRIVFOLDERDATA), (CORBA_unsigned_long*)&ulErr, NULLHANDLE);242 }243 244 233 NOM_Scope gpointer NOMLINK impl_WPFolder_wpOpen(WPFolder* nomSelf, const gpointer ptrReserved, 245 234 const CORBA_unsigned_long ulView, const gpointer ptrParams, … … 253 242 case OPEN_DEFAULT: 254 243 { 255 WPFolder_wpCreateFolderWindow(nomSelf, ev); 244 NOMFolderWindow * nomFldrWindow; 245 246 #warning !!!!! Folder window must be inserted into inuse list !!!!! 247 nomFldrWindow=WPFolder_wpCreateFolderWindow(nomSelf, ev); 248 NOMFolderWindow_setWPFolderObject(nomFldrWindow, nomSelf, ev); 249 250 #warning !!!!! Path taken from a test location !!!!! 251 WPFolder_wpPopulate(nomSelf, 0L, NOMPath_getCString(WPFolder_wpQueryRealName(nomSelf, TRUE, ev) , ev), FALSE, ev); 252 break; 253 256 254 #if 0 257 255 char path[CCHMAXPATH]; … … 271 269 if(!hwndFolder) 272 270 return NULLHANDLE; 273 274 somPrintf("somSelf: %x, hwndFolder: %x\n", somSelf, hwndFolder);275 /* Set object pointer */276 /* dw_window_set_data(hwndFolder, "thisObject", somSelf);277 msg("somSelf 2: %x, hwnd: %x", dw_window_get_data(hwndFolder, "thisObject"), hwndFolder); */278 271 279 272 /* populate the folder */ … … 316 309 models and stuff. 317 310 */ 318 NOM_Scope gpointerNOMLINK impl_WPFolder_wpCreateFolderWindow(WPFolder* nomSelf, CORBA_Environment *ev)311 NOM_Scope PNOMFolderWindow NOMLINK impl_WPFolder_wpCreateFolderWindow(WPFolder* nomSelf, CORBA_Environment *ev) 319 312 { 320 313 NOMFolderWindow * nomFldrWindow; … … 329 322 priv->gtkIconView=NOMFolderWindow_getContainerHandle(nomFldrWindow, ev); 330 323 324 /* Show the new window */ 331 325 NOMFolderWindow_show(nomFldrWindow, ev); 332 326 333 return NOMFolderWindow_getWindowHandle(nomFldrWindow, ev);; 334 } 335 336 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 327 return nomFldrWindow; 328 } 329 330 NOM_Scope void NOMLINK impl_WPFolder_wpInitData(WPFolder* nomSelf, CORBA_Environment *ev) 331 { 332 gulong ulErr; 333 WPFolderData* nomThis=WPFolderGetData(nomSelf); 334 335 WPFolder_wpInitData_parent((WPObject*)nomSelf, ev); 336 337 nomPrintf(" Entering %s with nomSelf: 0x%x. nomSelf is: %s.\n", 338 __FUNCTION__, nomSelf , nomSelf->mtab->nomClassName); 339 _privFolderData=_wpAllocMem((WPObject*)nomSelf, sizeof(PRIVFOLDERDATA), (CORBA_unsigned_long*)&ulErr, NULLHANDLE); 340 } 341 342 343 -
trunk/desktop/idl/wpfilesystem.idl
r98 r146 37 37 38 38 #include "wpobject.idl" 39 #include "nomfilepath.idl" 39 40 40 41 interface WPFileSystem : WPObject … … 44 45 45 46 void tstSetFullPath(in string fullPath); 47 PNOMPath wpQueryRealName(in boolean bFullPath); 46 48 47 49 #if 0 48 ULONG cbEASize;50 ULONG cbEASize; 49 51 #endif 50 NOMINSTANCEVAR(string pszFullPath); /* ONLY FOR TESTING!!! */51 NOMINSTANCEVAR(string pszType);52 NOMINSTANCEVAR(string pszFullPath); /* ONLY FOR TESTING!!! */ 53 NOMINSTANCEVAR(string pszType); 52 54 }; 53 55 -
trunk/desktop/idl/wpfolder.idl
r141 r146 38 38 #include "wpfilesystem.idl" 39 39 #include "nomfilepath.idl" 40 /*#include "nomfolderwindow.idl"*/ 41 42 native PNOMFolderWindow; 40 43 41 44 NOMCLASSNAME(WPFolder); … … 46 49 47 50 boolean wpPopulate(in unsigned long ulReserved, 48 in string pszPath,49 in boolean fFoldersOnly);50 gpointerwpCreateFolderWindow();51 void tstSetFolderPath(in string thePath); /* Only for testing */ 51 in string pszPath, 52 in boolean fFoldersOnly); 53 PNOMFolderWindow wpCreateFolderWindow(); 54 52 55 #if 0 53 56 WPObject wpQueryContent(in WPObject Object, … … 62 65 63 66 NOMINSTANCEVAR(PPRIVFOLDERDATA privFolderData); 64 NOMINSTANCEVAR(PNOMPath pnomPath );67 NOMINSTANCEVAR(PNOMPath pnomPath_); 65 68 }; 66 69
Note:
See TracChangeset
for help on using the changeset viewer.
