comparison examples/clipboard/ClipboardExample.d @ 129:ae94c6a65f9e

Removed version=TANGOSVN for release 0.99.7
author Frank Benoit <benoit@tionex.de>
date Sat, 26 Jul 2008 02:47:41 +0200
parents 698e70d0dca3
children eb84f9418bbf
comparison
equal deleted inserted replaced
128:884b44777f65 129:ae94c6a65f9e
43 import dwt.widgets.Text; 43 import dwt.widgets.Text;
44 import dwt.dwthelper.utils; 44 import dwt.dwthelper.utils;
45 45
46 import tango.io.Stdout; 46 import tango.io.Stdout;
47 version(JIVE) import jive.stacktrace; 47 version(JIVE) import jive.stacktrace;
48 version(TANGOSVN){ 48 import tango.io.model.IFile;
49 import tango.io.model.IFile; 49
50 }
51 else{
52 import tango.io.FileConst;
53 }
54 class ClipboardExample { 50 class ClipboardExample {
55 static const int SIZE = 60; 51 static const int SIZE = 60;
56 Clipboard clipboard; 52 Clipboard clipboard;
57 Shell shell; 53 Shell shell;
58 Text copyText; 54 Text copyText;
300 FileDialog dialog = new FileDialog(shell, DWT.OPEN | DWT.MULTI); 296 FileDialog dialog = new FileDialog(shell, DWT.OPEN | DWT.MULTI);
301 auto result = dialog.open(); 297 auto result = dialog.open();
302 if (result !is null && result.length > 0){ 298 if (result !is null && result.length > 0){
303 //copyFileTable.removeAll(); 299 //copyFileTable.removeAll();
304 //This cannot be used 300 //This cannot be used
305 version(TANGOSVN){
306 auto separator = tango.io.model.IFile.FileConst.PathSeparatorString; 301 auto separator = tango.io.model.IFile.FileConst.PathSeparatorString;
307 }
308 else{
309 auto separator = tango.io.FileConst.FileConst.PathSeparatorString;
310 }
311 auto path = dialog.getFilterPath(); 302 auto path = dialog.getFilterPath();
312 auto names = dialog.getFileNames(); 303 auto names = dialog.getFileNames();
313 for (int i = 0; i < names.length; i++) { 304 for (int i = 0; i < names.length; i++) {
314 TableItem item = new TableItem(copyFileTable, DWT.NONE); 305 TableItem item = new TableItem(copyFileTable, DWT.NONE);
315 item.setText(path~separator~names[i]); 306 item.setText(path~separator~names[i]);