Mercurial > projects > dwt-win
diff dwt/custom/StyledText.d @ 254:a73bd022b5ac
Add version TANGOSVN
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 12 Jul 2008 11:56:46 +0200 |
parents | dffb802cad03 |
children | a63e2cd5485e |
line wrap: on
line diff
--- 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;