Changeset 265:07d9ed8927b6
- Timestamp:
- 07/06/08 09:34:21
(2 months ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- branch:
- default
- Message:
Add version TANGOSVN
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r259 |
r265 |
|
| 24 | 24 | import dwt.widgets.Display; |
|---|
| 25 | 25 | |
|---|
| 26 | | static import tango.io.FileConst; |
|---|
| | 26 | version(TANGOSVN) |
|---|
| | 27 | static import tango.io.model.IFile; |
|---|
| | 28 | } |
|---|
| | 29 | else{ |
|---|
| | 30 | static import tango.io.FileConst; |
|---|
| | 31 | } |
|---|
| 27 | 32 | static import tango.text.Util; |
|---|
| 28 | 33 | |
|---|
| … | … | |
| 40 | 45 | * within the DWT implementation. |
|---|
| 41 | 46 | * </p> |
|---|
| 42 | | * |
|---|
| | 47 | * |
|---|
| 43 | 48 | * @see <a href="http://www.eclipse.org/swt/snippets/#directorydialog">DirectoryDialog snippets</a> |
|---|
| 44 | 49 | * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> |
|---|
| … | … | |
| 47 | 52 | public class DirectoryDialog : Dialog { |
|---|
| 48 | 53 | String message = "", filterPath = ""; |
|---|
| 49 | | static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString;; |
|---|
| | 54 | version(TANGOSVN) |
|---|
| | 55 | static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; |
|---|
| | 56 | } |
|---|
| | 57 | else{ |
|---|
| | 58 | static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString; |
|---|
| | 59 | } |
|---|
| 50 | 60 | |
|---|
| 51 | 61 | /** |
|---|
| r259 |
r265 |
|
| 23 | 23 | import dwt.dwthelper.utils; |
|---|
| 24 | 24 | |
|---|
| 25 | | static import tango.io.FileConst; |
|---|
| | 25 | version(TANGOSVN) |
|---|
| | 26 | static import tango.io.model.IFile; |
|---|
| | 27 | } |
|---|
| | 28 | else{ |
|---|
| | 29 | static import tango.io.FileConst; |
|---|
| | 30 | } |
|---|
| 26 | 31 | static import tango.text.Util; |
|---|
| 27 | 32 | static import tango.text.Text; |
|---|
| … | … | |
| 42 | 47 | * within the DWT implementation. |
|---|
| 43 | 48 | * </p> |
|---|
| 44 | | * |
|---|
| | 49 | * |
|---|
| 45 | 50 | * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> |
|---|
| 46 | 51 | * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> |
|---|
| … | … | |
| 57 | 62 | bool overwrite = false; |
|---|
| 58 | 63 | GtkWidget* handle; |
|---|
| | 64 | version(TANGOSVN) |
|---|
| | 65 | static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar; |
|---|
| | 66 | } |
|---|
| | 67 | else{ |
|---|
| 59 | 68 | static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; |
|---|
| | 69 | } |
|---|
| 60 | 70 | static final char EXTENSION_SEPARATOR = ';'; |
|---|
| 61 | 71 | |
|---|