comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/browser/HelperAppLauncherDialog.d @ 53:7e78af7adab5

[swt lin]
author Frank Benoit <benoit@tionex.de>
date Fri, 27 Mar 2009 21:29:10 +0100
parents ddbfe84d86df
children 70388b0e6dad
comparison
equal deleted inserted replaced
52:fa9548cd8d89 53:7e78af7adab5
56 refCount++; 56 refCount++;
57 return refCount; 57 return refCount;
58 } 58 }
59 59
60 extern(System) 60 extern(System)
61 nsresult QueryInterface (nsID* riid, void** ppvObject) { 61 nsresult QueryInterface (cnsID* riid, void** ppvObject) {
62 if (riid is null || ppvObject is null) return XPCOM.NS_ERROR_NO_INTERFACE; 62 if (riid is null || ppvObject is null) return XPCOM.NS_ERROR_NO_INTERFACE;
63 63
64 if (*riid == nsISupports.IID) { 64 if (*riid == nsISupports.IID) {
65 *ppvObject = cast(void*)cast(nsISupports)this; 65 *ppvObject = cast(void*)cast(nsISupports)this;
66 AddRef (); 66 AddRef ();
166 _retval = arg3; 166 _retval = arg3;
167 } 167 }
168 +/ 168 +/
169 //int span = XPCOM.strlen_PRUnichar (aDefaultFile); 169 //int span = XPCOM.strlen_PRUnichar (aDefaultFile);
170 // XPCOM.memmove (dest, aDefaultFile, length * 2); 170 // XPCOM.memmove (dest, aDefaultFile, length * 2);
171 String defaultFile = Utf.toString(fromString16z(aDefaultFile)); 171 String defaultFile = String_valueOf(fromString16z(aDefaultFile));
172 172
173 //span = XPCOM.strlen_PRUnichar (aSuggestedFileExtension); 173 //span = XPCOM.strlen_PRUnichar (aSuggestedFileExtension);
174 //dest = new char[length]; 174 //dest = new char[length];
175 //XPCOM.memmove (dest, aSuggestedFileExtension, length * 2); 175 //XPCOM.memmove (dest, aSuggestedFileExtension, length * 2);
176 String suggestedFileExtension = Utf.toString(fromString16z(aSuggestedFileExtension)); 176 String suggestedFileExtension = String_valueOf(fromString16z(aSuggestedFileExtension));
177 177
178 Shell shell = new Shell (); 178 Shell shell = new Shell ();
179 FileDialog fileDialog = new FileDialog (shell, SWT.SAVE); 179 FileDialog fileDialog = new FileDialog (shell, SWT.SAVE);
180 fileDialog.setFileName (defaultFile); 180 fileDialog.setFileName (defaultFile);
181 String[] tmp; 181 String[] tmp;