# HG changeset patch # User Frank Benoit # Date 1215351261 -7200 # Node ID 07d9ed8927b614126fc0a3e5dbb58737dec7d8d9 # Parent bfafc891369ea3d7028d444720566b9eee36049e Add version TANGOSVN diff -r bfafc891369e -r 07d9ed8927b6 dwt/widgets/DirectoryDialog.d --- 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 only * within the DWT implementation. *

- * + * * @see DirectoryDialog snippets * @see DWT Example: ControlExample, Dialog tab * @see Sample code and further information */ 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. diff -r bfafc891369e -r 07d9ed8927b6 dwt/widgets/FileDialog.d --- 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 only * within the DWT implementation. *

- * + * * @see FileDialog snippets * @see DWT Example: ControlExample, Dialog tab * @see Sample code and further information @@ -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 = ';'; /**