Mercurial > projects > dwt-win
changeset 254:a73bd022b5ac
Add version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 12 Jul 2008 11:56:46 +0200 |
parents | fbb9174f2a2c |
children | f6dba57ef627 |
files | dwt/custom/DefaultContent.d dwt/custom/StyledText.d dwt/custom/StyledTextRenderer.d |
diffstat | 3 files changed, 23 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/dwt/custom/DefaultContent.d Fri Jul 11 23:01:25 2008 +0200 +++ b/dwt/custom/DefaultContent.d Sat Jul 12 11:56:46 2008 +0200 @@ -22,14 +22,25 @@ import dwt.custom.StyledTextListener; import dwt.custom.StyledText; -static import tango.io.FileConst; +version(TANGOSVN){ + static import tango.io.model.IFile; +} +else{ + static import tango.io.FileConst; +} + static import tango.text.Text; import dwt.dwthelper.utils; alias tango.text.Text.Text!(char) StringBuffer; class DefaultContent : StyledTextContent { +version(TANGOSVN){ + private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString; +} +else{ private final static String LineDelimiter = tango.io.FileConst.FileConst.NewlineString; +} StyledTextListener[] textListeners; // stores text listeners for event sending String textStore; // stores the actual text
--- a/dwt/custom/StyledText.d Fri Jul 11 23:01:25 2008 +0200 +++ b/dwt/custom/StyledText.d Sat Jul 12 11:56:46 2008 +0200 @@ -85,7 +85,12 @@ static import tango.text.Text; static import tango.text.Util; -static import tango.io.FileConst; +version(TANGOSVN){ + static import tango.io.model.IFile; +} +else{ + static import tango.io.FileConst; +} static import tango.text.convert.Utf; import tango.util.Convert; import dwt.dwthelper.utils; @@ -153,7 +158,12 @@ alias Canvas.computeSize computeSize; static const char TAB = '\t'; +version(TANGOSVN){ + static const String PlatformLineDelimiter = tango.io.model.IFile.FileConst.NewlineString; +} +else{ static const String PlatformLineDelimiter = tango.io.FileConst.FileConst.NewlineString; +} static const int BIDI_CARET_WIDTH = 3; static const int DEFAULT_WIDTH = 64; static const int DEFAULT_HEIGHT = 64;
--- a/dwt/custom/StyledTextRenderer.d Fri Jul 11 23:01:25 2008 +0200 +++ b/dwt/custom/StyledTextRenderer.d Sat Jul 12 11:56:46 2008 +0200 @@ -42,7 +42,6 @@ static import tango.text.Text; static import tango.text.Util; -static import tango.io.FileConst; static import tango.text.convert.Utf; import tango.util.Convert; import dwt.dwthelper.utils;