Changeset 276:9d67c3170a58
- Timestamp:
- 07/25/08 20:52:25
(4 years ago)
- Author:
- Frank Benoit <benoit@tionex.de>
- Tags:
Release-1
- branch:
- default
- Message:
Removed version=TANGOSVN for release 0.99.7
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r271 |
r276 |
|
| 24 | 24 | import dwt.dwthelper.utils; |
|---|
| 25 | 25 | |
|---|
| 26 | | version(TANGOSVN) { |
|---|
| 27 | | static import tango.io.model.IFile; |
|---|
| 28 | | } |
|---|
| 29 | | else{ |
|---|
| 30 | | static import tango.io.FileConst; |
|---|
| 31 | | } |
|---|
| | 26 | static import tango.io.model.IFile; |
|---|
| 32 | 27 | static import tango.text.Text; |
|---|
| 33 | 28 | |
|---|
| … | … | |
| 35 | 30 | |
|---|
| 36 | 31 | class DefaultContent : StyledTextContent { |
|---|
| 37 | | version(TANGOSVN) { |
|---|
| 38 | 32 | private final static String LineDelimiter = tango.io.model.IFile.FileConst.NewlineString; |
|---|
| 39 | | } |
|---|
| 40 | | else{ |
|---|
| 41 | | private final static String LineDelimiter = tango.io.FileConst.FileConst.NewlineString; |
|---|
| 42 | | } |
|---|
| 43 | 33 | |
|---|
| 44 | 34 | StyledTextListener[] textListeners; // stores text listeners for event sending |
|---|
| r271 |
r276 |
|
| 86 | 86 | static import tango.text.Text; |
|---|
| 87 | 87 | static import tango.text.Util; |
|---|
| 88 | | version(TANGOSVN) { |
|---|
| 89 | | static import tango.io.model.IFile; |
|---|
| 90 | | } |
|---|
| 91 | | else{ |
|---|
| 92 | | static import tango.io.FileConst; |
|---|
| 93 | | } |
|---|
| | 88 | static import tango.io.model.IFile; |
|---|
| 94 | 89 | static import tango.text.convert.Utf; |
|---|
| 95 | 90 | import tango.util.Convert; |
|---|
| … | … | |
| 158 | 153 | |
|---|
| 159 | 154 | static const char TAB = '\t'; |
|---|
| 160 | | version(TANGOSVN){ |
|---|
| 161 | 155 | static const String PlatformLineDelimiter = tango.io.model.IFile.FileConst.NewlineString; |
|---|
| 162 | | } |
|---|
| 163 | | else { |
|---|
| 164 | | static const String PlatformLineDelimiter = tango.io.FileConst.FileConst.NewlineString; |
|---|
| 165 | | } |
|---|
| 166 | 156 | static const int BIDI_CARET_WIDTH = 3; |
|---|
| 167 | 157 | static const int DEFAULT_WIDTH = 64; |
|---|
| r271 |
r276 |
|
| 7 | 7 | import dwt.dwthelper.utils; |
|---|
| 8 | 8 | import tango.io.Buffer; |
|---|
| 9 | | version(TANGOSVN) { |
|---|
| 10 | | import tango.io.Buffer; |
|---|
| 11 | | } |
|---|
| 12 | | else{ |
|---|
| 13 | | import tango.io.GrowBuffer; |
|---|
| 14 | | } |
|---|
| 15 | 9 | |
|---|
| 16 | 10 | public class ByteArrayOutputStream : dwt.dwthelper.OutputStream.OutputStream { |
|---|
| r271 |
r276 |
|
| 6 | 6 | import dwt.dwthelper.utils; |
|---|
| 7 | 7 | |
|---|
| 8 | | version(TANGOSVN) { |
|---|
| 9 | | static import tango.io.model.IFile; |
|---|
| 10 | | } |
|---|
| 11 | | else{ |
|---|
| 12 | | static import tango.io.FileConst; |
|---|
| 13 | | } |
|---|
| | 8 | static import tango.io.model.IFile; |
|---|
| 14 | 9 | static import tango.io.FilePath; |
|---|
| 15 | 10 | static import tango.io.FileSystem; |
|---|
| … | … | |
| 25 | 20 | |
|---|
| 26 | 21 | static this(){ |
|---|
| 27 | | version(TANGOSVN) { |
|---|
| 28 | 22 | separator = tango.io.model.IFile.FileConst.PathSeparatorString; |
|---|
| 29 | 23 | separatorChar = tango.io.model.IFile.FileConst.PathSeparatorChar; |
|---|
| 30 | 24 | pathSeparator = tango.io.model.IFile.FileConst.SystemPathString; |
|---|
| 31 | 25 | pathSeparatorChar = tango.io.model.IFile.FileConst.SystemPathChar; |
|---|
| 32 | | } |
|---|
| 33 | | else{ |
|---|
| 34 | | separator = tango.io.FileConst.FileConst.PathSeparatorString; |
|---|
| 35 | | separatorChar = tango.io.FileConst.FileConst.PathSeparatorChar; |
|---|
| 36 | | pathSeparator = tango.io.FileConst.FileConst.SystemPathString; |
|---|
| 37 | | pathSeparatorChar = tango.io.FileConst.FileConst.SystemPathChar; |
|---|
| 38 | | } |
|---|
| 39 | 26 | } |
|---|
| 40 | 27 | |
|---|
| r271 |
r276 |
|
| 8 | 8 | import tango.io.Stdout; |
|---|
| 9 | 9 | import tango.io.compress.ZlibStream; |
|---|
| 10 | | version(TANGOSVN) { |
|---|
| 11 | | import tango.io.Conduit; |
|---|
| 12 | | } |
|---|
| | 10 | import tango.io.Conduit; |
|---|
| | 11 | |
|---|
| 13 | 12 | class InputStreamWrapper : tango.io.model.IConduit.InputStream { |
|---|
| 14 | 13 | |
|---|
| … | … | |
| 23 | 22 | return res; |
|---|
| 24 | 23 | } |
|---|
| 25 | | version(TANGOSVN) { |
|---|
| | 24 | |
|---|
| 26 | 25 | void[] load (void[] dst = null) { |
|---|
| 27 | 26 | return Conduit.load (this, dst); |
|---|
| 28 | 27 | } |
|---|
| 29 | | } |
|---|
| 30 | | |
|---|
| 31 | 28 | |
|---|
| 32 | 29 | tango.io.model.IConduit.InputStream clear (){ |
|---|
| r271 |
r276 |
|
| 150 | 150 | |
|---|
| 151 | 151 | public static String toHexString( int i ){ |
|---|
| 152 | | version(TANGOSVN) { |
|---|
| 153 | 152 | return tango.text.convert.Integer.toString(i, "x" ); |
|---|
| 154 | | } |
|---|
| 155 | | else{ |
|---|
| 156 | | return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Hex ); |
|---|
| 157 | | } |
|---|
| 158 | 153 | } |
|---|
| 159 | 154 | |
|---|
| 160 | 155 | public static String toOctalString( int i ){ |
|---|
| 161 | | version(TANGOSVN) { |
|---|
| 162 | 156 | return tango.text.convert.Integer.toString(i, "o" ); |
|---|
| 163 | | } |
|---|
| 164 | | else{ |
|---|
| 165 | | return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Octal ); |
|---|
| 166 | | } |
|---|
| 167 | 157 | } |
|---|
| 168 | 158 | |
|---|
| 169 | 159 | public static String toBinaryString( int i ){ |
|---|
| 170 | | version(TANGOSVN) { |
|---|
| 171 | 160 | return tango.text.convert.Integer.toString(i, "b" ); |
|---|
| 172 | | } |
|---|
| 173 | | else{ |
|---|
| 174 | | return tango.text.convert.Integer.toString(i, tango.text.convert.Integer.Style.Binary ); |
|---|
| 175 | | } |
|---|
| 176 | 161 | } |
|---|
| 177 | 162 | |
|---|
| … | … | |
| 651 | 636 | |
|---|
| 652 | 637 | static String toHex(uint value, bool prefix = true, int radix = 8){ |
|---|
| 653 | | version(TANGOSVN) { |
|---|
| 654 | 638 | return tango.text.convert.Integer.toString( |
|---|
| 655 | 639 | value, |
|---|
| … | … | |
| 658 | 642 | radix is 16 ? "x" : |
|---|
| 659 | 643 | "d" ); |
|---|
| 660 | | } |
|---|
| 661 | | else{ |
|---|
| 662 | | return tango.text.convert.Integer.toString( |
|---|
| 663 | | value, |
|---|
| 664 | | radix is 10 ? tango.text.convert.Integer.Style.Signed : |
|---|
| 665 | | radix is 8 ? tango.text.convert.Integer.Style.Octal : |
|---|
| 666 | | radix is 16 ? tango.text.convert.Integer.Style.Hex : |
|---|
| 667 | | tango.text.convert.Integer.Style.Signed, |
|---|
| 668 | | prefix ? tango.text.convert.Integer.Flags.Prefix : tango.text.convert.Integer.Flags.None |
|---|
| 669 | | ); |
|---|
| 670 | | } |
|---|
| 671 | 644 | } |
|---|
| 672 | 645 | |
|---|
| r271 |
r276 |
|
| 24 | 24 | import dwt.widgets.Display; |
|---|
| 25 | 25 | |
|---|
| 26 | | version(TANGOSVN) { |
|---|
| 27 | | static import tango.io.model.IFile; |
|---|
| 28 | | } |
|---|
| 29 | | else{ |
|---|
| 30 | | static import tango.io.FileConst; |
|---|
| 31 | | } |
|---|
| | 26 | static import tango.io.model.IFile; |
|---|
| 32 | 27 | static import tango.text.Util; |
|---|
| 33 | 28 | |
|---|
| … | … | |
| 52 | 47 | public class DirectoryDialog : Dialog { |
|---|
| 53 | 48 | String message = "", filterPath = ""; |
|---|
| 54 | | version(TANGOSVN) { |
|---|
| 55 | 49 | static const String SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorString; |
|---|
| 56 | | } |
|---|
| 57 | | else{ |
|---|
| 58 | | static const String SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorString; |
|---|
| 59 | | } |
|---|
| 60 | 50 | |
|---|
| 61 | 51 | /** |
|---|
| r271 |
r276 |
|
| 23 | 23 | import dwt.dwthelper.utils; |
|---|
| 24 | 24 | |
|---|
| 25 | | version(TANGOSVN) { |
|---|
| 26 | | static import tango.io.model.IFile; |
|---|
| 27 | | } |
|---|
| 28 | | else{ |
|---|
| 29 | | static import tango.io.FileConst; |
|---|
| 30 | | } |
|---|
| | 25 | static import tango.io.model.IFile; |
|---|
| 31 | 26 | static import tango.text.Util; |
|---|
| 32 | 27 | static import tango.text.Text; |
|---|
| … | … | |
| 62 | 57 | bool overwrite = false; |
|---|
| 63 | 58 | GtkWidget* handle; |
|---|
| 64 | | version(TANGOSVN) { |
|---|
| 65 | 59 | static final char SEPARATOR = tango.io.model.IFile.FileConst.PathSeparatorChar; |
|---|
| 66 | | } |
|---|
| 67 | | else{ |
|---|
| 68 | | static final char SEPARATOR = tango.io.FileConst.FileConst.PathSeparatorChar; |
|---|
| 69 | | } |
|---|
| 70 | 60 | static final char EXTENSION_SEPARATOR = ';'; |
|---|
| 71 | 61 | |
|---|