Mercurial > projects > dwt-linux
changeset 265:07d9ed8927b6
Add version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 06 Jul 2008 15:34:21 +0200 |
parents | bfafc891369e |
children | b302f82224e1 |
files | dwt/widgets/DirectoryDialog.d dwt/widgets/FileDialog.d |
diffstat | 2 files changed, 25 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/widgets/DirectoryDialog.d Sun Jul 06 15:34:08 2008 +0200 +++ b/dwt/widgets/DirectoryDialog.d Sun Jul 06 15:34:21 2008 +0200 @@ -23,7 +23,12 @@ import dwt.widgets.Shell; import dwt.widgets.Display; -static import tango.io.FileConst; +version(TANGOSVN) + static import tango.io.model.IFile; +} +else{ + static import tango.io.FileConst; +} static import tango.text.Util; /** @@ -39,14 +44,19 @@ * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the DWT implementation. * </p> - * + * * @see <a href="http://www.eclipse.org/swt/snippets/#directorydialog">DirectoryDialog snippets</a> * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> */ public class DirectoryDialog : Dialog { String message = "", filterPath = ""; - static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString;; +version(TANGOSVN) + static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; +} +else{ + static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString; +} /** * Constructs a new instance of this class given only its parent.
--- a/dwt/widgets/FileDialog.d Sun Jul 06 15:34:08 2008 +0200 +++ b/dwt/widgets/FileDialog.d Sun Jul 06 15:34:21 2008 +0200 @@ -22,7 +22,12 @@ import dwt.widgets.Display; import dwt.dwthelper.utils; -static import tango.io.FileConst; +version(TANGOSVN) + static import tango.io.model.IFile; +} +else{ + static import tango.io.FileConst; +} static import tango.text.Util; static import tango.text.Text; @@ -41,7 +46,7 @@ * IMPORTANT: This class is intended to be subclassed <em>only</em> * within the DWT implementation. * </p> - * + * * @see <a href="http://www.eclipse.org/swt/snippets/#filedialog">FileDialog snippets</a> * @see <a href="http://www.eclipse.org/swt/examples.php">DWT Example: ControlExample, Dialog tab</a> * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> @@ -56,7 +61,12 @@ int filterIndex = -1; bool overwrite = false; GtkWidget* handle; +version(TANGOSVN) + static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar; +} +else{ static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; +} static final char EXTENSION_SEPARATOR = ';'; /**