Mercurial > projects > dwt-win
comparison 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 |
comparison
equal
deleted
inserted
replaced
253:fbb9174f2a2c | 254:a73bd022b5ac |
---|---|
83 import dwt.custom.ST; | 83 import dwt.custom.ST; |
84 import dwt.dwthelper.Runnable; | 84 import dwt.dwthelper.Runnable; |
85 | 85 |
86 static import tango.text.Text; | 86 static import tango.text.Text; |
87 static import tango.text.Util; | 87 static import tango.text.Util; |
88 static import tango.io.FileConst; | 88 version(TANGOSVN){ |
89 static import tango.io.model.IFile; | |
90 } | |
91 else{ | |
92 static import tango.io.FileConst; | |
93 } | |
89 static import tango.text.convert.Utf; | 94 static import tango.text.convert.Utf; |
90 import tango.util.Convert; | 95 import tango.util.Convert; |
91 import dwt.dwthelper.utils; | 96 import dwt.dwthelper.utils; |
92 | 97 |
93 alias tango.text.Text.Text!(char) StringBuffer; | 98 alias tango.text.Text.Text!(char) StringBuffer; |
151 public class StyledText : Canvas { | 156 public class StyledText : Canvas { |
152 | 157 |
153 alias Canvas.computeSize computeSize; | 158 alias Canvas.computeSize computeSize; |
154 | 159 |
155 static const char TAB = '\t'; | 160 static const char TAB = '\t'; |
161 version(TANGOSVN){ | |
162 static const String PlatformLineDelimiter = tango.io.model.IFile.FileConst.NewlineString; | |
163 } | |
164 else{ | |
156 static const String PlatformLineDelimiter = tango.io.FileConst.FileConst.NewlineString; | 165 static const String PlatformLineDelimiter = tango.io.FileConst.FileConst.NewlineString; |
166 } | |
157 static const int BIDI_CARET_WIDTH = 3; | 167 static const int BIDI_CARET_WIDTH = 3; |
158 static const int DEFAULT_WIDTH = 64; | 168 static const int DEFAULT_WIDTH = 64; |
159 static const int DEFAULT_HEIGHT = 64; | 169 static const int DEFAULT_HEIGHT = 64; |
160 static const int V_SCROLL_RATE = 50; | 170 static const int V_SCROLL_RATE = 50; |
161 static const int H_SCROLL_RATE = 10; | 171 static const int H_SCROLL_RATE = 10; |