Changeset 129:ae94c6a65f9e
- Timestamp:
- 07/25/08 20:47:41
(4 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Removed version=TANGOSVN for release 0.99.7
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r123 |
r129 |
|
| 46 | 46 | import tango.io.Stdout; |
|---|
| 47 | 47 | version(JIVE) import jive.stacktrace; |
|---|
| 48 | | version(TANGOSVN){ |
|---|
| 49 | | import tango.io.model.IFile; |
|---|
| 50 | | } |
|---|
| 51 | | else{ |
|---|
| 52 | | import tango.io.FileConst; |
|---|
| 53 | | } |
|---|
| | 48 | import tango.io.model.IFile; |
|---|
| | 49 | |
|---|
| 54 | 50 | class ClipboardExample { |
|---|
| 55 | 51 | static const int SIZE = 60; |
|---|
| … | … | |
| 303 | 299 | //copyFileTable.removeAll(); |
|---|
| 304 | 300 | //This cannot be used |
|---|
| 305 | | version(TANGOSVN){ |
|---|
| 306 | 301 | auto separator = tango.io.model.IFile.FileConst.PathSeparatorString; |
|---|
| 307 | | } |
|---|
| 308 | | else{ |
|---|
| 309 | | auto separator = tango.io.FileConst.FileConst.PathSeparatorString; |
|---|
| 310 | | } |
|---|
| 311 | 302 | auto path = dialog.getFilterPath(); |
|---|
| 312 | 303 | auto names = dialog.getFileNames(); |
|---|
| r111 |
r129 |
|
| 36 | 36 | //------------------------------------ |
|---|
| 37 | 37 | |
|---|
| 38 | | version(TANGOSVN){ |
|---|
| 39 | 38 | import tango.io.FileSystem; |
|---|
| 40 | | } |
|---|
| 41 | | else{ |
|---|
| 42 | | import tango.io.FileRoots; |
|---|
| 43 | | } |
|---|
| 44 | 39 | import tango.io.FilePath; |
|---|
| 45 | 40 | import tango.util.log.Trace; |
|---|
| … | … | |
| 134 | 129 | Object[] res; |
|---|
| 135 | 130 | |
|---|
| 136 | | version(TANGOSVN){ |
|---|
| 137 | 131 | foreach( root; FileSystem.roots()){ |
|---|
| 138 | 132 | // ignore floppy drives, they bring up strange error messages |
|---|
| … | … | |
| 142 | 136 | res ~= new FilePath( root ); |
|---|
| 143 | 137 | } |
|---|
| 144 | | } |
|---|
| 145 | | else{ |
|---|
| 146 | | foreach( root; FileRoots.list()){ |
|---|
| 147 | | // ignore floppy drives, they bring up strange error messages |
|---|
| 148 | | if( root == `A:\`|| root == `B:\` ){ |
|---|
| 149 | | continue; |
|---|
| 150 | | } |
|---|
| 151 | | res ~= new FilePath( root ); |
|---|
| 152 | | } |
|---|
| 153 | | } |
|---|
| 154 | 138 | return res; |
|---|
| 155 | 139 | } |
|---|
| r120 |
r129 |
|
| 32 | 32 | import dwt.dwthelper.utils; |
|---|
| 33 | 33 | import tango.io.FilePath; |
|---|
| 34 | | version(TANGOSVN){ |
|---|
| 35 | 34 | import tango.io.FileSystem; |
|---|
| 36 | | } |
|---|
| 37 | | else{ |
|---|
| 38 | | import tango.io.FileRoots; |
|---|
| 39 | | } |
|---|
| 40 | 35 | |
|---|
| 41 | 36 | void main () { |
|---|
| … | … | |
| 45 | 40 | shell.setLayout (new FillLayout ()); |
|---|
| 46 | 41 | auto tree = new Tree (shell, DWT.BORDER); |
|---|
| 47 | | version(TANGOSVN){ |
|---|
| 48 | 42 | auto roots = FileSystem.roots(); |
|---|
| 49 | | } |
|---|
| 50 | | else{ |
|---|
| 51 | | auto roots = FileRoots.list(); |
|---|
| 52 | | } |
|---|
| 53 | 43 | foreach (file; roots) { |
|---|
| 54 | 44 | auto root = new TreeItem (tree, 0); |
|---|