Permalink
Browse files

Import Scintilla 2.11

  • Loading branch information...
0 parents commit f858c4b2f0ac5d5f4f22f58ae7b5b597a51455c8 @djs committed May 16, 2010
Showing with 115,434 additions and 0 deletions.
  1. +20 −0 License.txt
  2. +74 −0 README
  3. +1 −0 bin/empty.txt
  4. +55 −0 cocoa/InfoBar.h
  5. +448 −0 cocoa/InfoBar.mm
  6. +35 −0 cocoa/InfoBarCommunicator.h
  7. +110 −0 cocoa/PlatCocoa.h
  8. +2,108 −0 cocoa/PlatCocoa.mm
  9. +141 −0 cocoa/QuartzTextLayout.h
  10. +90 −0 cocoa/QuartzTextStyle.h
  11. +142 −0 cocoa/QuartzTextStyleAttribute.h
  12. +63 −0 cocoa/ScintillaCallTip.h
  13. +117 −0 cocoa/ScintillaCallTip.mm
  14. +210 −0 cocoa/ScintillaCocoa.h
  15. +1,484 −0 cocoa/ScintillaCocoa.mm
  16. BIN cocoa/ScintillaFramework/English.lproj/InfoPlist.strings
  17. +26 −0 cocoa/ScintillaFramework/Info.plist
  18. +969 −0 cocoa/ScintillaFramework/ScintillaFramework.xcodeproj/project.pbxproj
  19. +7 −0 cocoa/ScintillaFramework/Scintilla_Prefix.pch
  20. +64 −0 cocoa/ScintillaListBox.h
  21. +110 −0 cocoa/ScintillaListBox.mm
  22. +23 −0 cocoa/ScintillaTest/AppController.h
  23. +215 −0 cocoa/ScintillaTest/AppController.mm
  24. BIN cocoa/ScintillaTest/English.lproj/InfoPlist.strings
  25. +3,185 −0 cocoa/ScintillaTest/English.lproj/MainMenu.xib
  26. +28 −0 cocoa/ScintillaTest/Info.plist
  27. +20 −0 cocoa/ScintillaTest/Scintilla-Info.plist
  28. +381 −0 cocoa/ScintillaTest/ScintillaTest.xcodeproj/project.pbxproj
  29. +7 −0 cocoa/ScintillaTest/ScintillaTest_Prefix.pch
  30. +215 −0 cocoa/ScintillaTest/TestData.sql
  31. +15 −0 cocoa/ScintillaTest/main.m
  32. +116 −0 cocoa/ScintillaView.h
  33. +1,353 −0 cocoa/ScintillaView.mm
  34. BIN cocoa/res/info_bar_bg.png
  35. BIN cocoa/res/mac_cursor_busy.png
  36. BIN cocoa/res/mac_cursor_flipped.png
  37. +1 −0 delbin.bat
  38. +1 −0 delcvs.bat
  39. +249 −0 doc/Design.html
  40. +56 −0 doc/Icons.html
  41. +226 −0 doc/Lexer.txt
  42. BIN doc/SciBreak.jpg
  43. +261 −0 doc/SciCoding.html
  44. BIN doc/SciRest.jpg
  45. BIN doc/SciTEIco.png
  46. BIN doc/SciWord.jpg
  47. +6,241 −0 doc/ScintillaDoc.html
  48. +70 −0 doc/ScintillaDownload.html
  49. +6,688 −0 doc/ScintillaHistory.html
  50. +487 −0 doc/ScintillaRelated.html
  51. +157 −0 doc/ScintillaToDo.html
  52. +375 −0 doc/ScintillaUsage.html
  53. +142 −0 doc/Steps.html
  54. BIN doc/annotations.png
  55. +189 −0 doc/index.html
  56. BIN doc/styledmargin.png
  57. +70 −0 gtk/Converter.h
  58. +2,576 −0 gtk/PlatGTK.cxx
  59. +2,514 −0 gtk/ScintillaGTK.cxx
  60. +337 −0 gtk/deps.mak
  61. +84 −0 gtk/makefile
  62. +86 −0 gtk/scintilla-marshal.c
  63. +21 −0 gtk/scintilla-marshal.h
  64. +1 −0 gtk/scintilla-marshal.list
  65. +79 −0 include/Accessor.h
  66. +110 −0 include/Face.py
  67. +75 −0 include/HFacer.py
  68. +113 −0 include/KeyWords.h
  69. +556 −0 include/Platform.h
  70. +26 −0 include/PropSet.h
  71. +1,381 −0 include/SciLexer.h
  72. +965 −0 include/Scintilla.h
  73. +3,775 −0 include/Scintilla.iface
  74. +51 −0 include/ScintillaWidget.h
  75. +67 −0 include/WindowAccessor.h
  76. +608 −0 macosx/ExtInput.cxx
  77. +64 −0 macosx/ExtInput.h
  78. +1,852 −0 macosx/PlatMacOSX.cxx
  79. +99 −0 macosx/PlatMacOSX.h
  80. +141 −0 macosx/QuartzTextLayout.h
  81. +94 −0 macosx/QuartzTextStyle.h
  82. +144 −0 macosx/QuartzTextStyleAttribute.h
  83. BIN macosx/SciTest/English.lproj/InfoPlist.strings
  84. +4 −0 macosx/SciTest/English.lproj/main.nib/classes.nib
  85. +19 −0 macosx/SciTest/English.lproj/main.nib/info.nib
  86. +271 −0 macosx/SciTest/English.lproj/main.nib/objects.xib
  87. +24 −0 macosx/SciTest/Info.plist
  88. +289 −0 macosx/SciTest/SciTest.xcode/project.pbxproj
  89. +5 −0 macosx/SciTest/SciTest_Prefix.pch
  90. +255 −0 macosx/SciTest/main.cpp
  91. +16 −0 macosx/SciTest/version.plist
  92. +117 −0 macosx/ScintillaCallTip.cxx
  93. +64 −0 macosx/ScintillaCallTip.h
  94. +103 −0 macosx/ScintillaListBox.cxx
  95. +63 −0 macosx/ScintillaListBox.h
  96. +2,242 −0 macosx/ScintillaMacOSX.cxx
  97. +234 −0 macosx/ScintillaMacOSX.h
  98. +519 −0 macosx/TCarbonEvent.cxx
  99. +230 −0 macosx/TCarbonEvent.h
  100. +496 −0 macosx/TRect.h
  101. +1,442 −0 macosx/TView.cxx
  102. +286 −0 macosx/TView.h
  103. +375 −0 macosx/deps.mak
  104. +115 −0 macosx/makefile
  105. +178 −0 src/AutoComplete.cxx
  106. +78 −0 src/AutoComplete.h
  107. +327 −0 src/CallTip.cxx
  108. +87 −0 src/CallTip.h
  109. +653 −0 src/CellBuffer.cxx
  110. +208 −0 src/CellBuffer.h
  111. +78 −0 src/CharClassify.cxx
  112. +37 −0 src/CharClassify.h
  113. +58 −0 src/CharacterSet.h
  114. +251 −0 src/ContractionState.cxx
  115. +66 −0 src/ContractionState.h
  116. +188 −0 src/Decoration.cxx
  117. +64 −0 src/Decoration.h
  118. +1,920 −0 src/Document.cxx
  119. +426 −0 src/Document.h
  120. +199 −0 src/DocumentAccessor.cxx
  121. +77 −0 src/DocumentAccessor.h
  122. +8,638 −0 src/Editor.cxx
  123. +552 −0 src/Editor.h
  124. +260 −0 src/ExternalLexer.cxx
  125. +104 −0 src/ExternalLexer.h
  126. +12 −0 src/FontQuality.h
  127. +81 −0 src/Indicator.cxx
  128. +32 −0 src/Indicator.h
  129. +152 −0 src/KeyMap.cxx
  130. +51 −0 src/KeyMap.h
  131. +429 −0 src/KeyWords.cxx
  132. +256 −0 src/LexAPDL.cxx
  133. +270 −0 src/LexASY.cxx
  134. +907 −0 src/LexAU3.cxx
  135. +228 −0 src/LexAVE.cxx
  136. +617 −0 src/LexAbaqus.cxx
  137. +525 −0 src/LexAda.cxx
  138. +180 −0 src/LexAsm.cxx
  139. +185 −0 src/LexAsn1.cxx
  140. +193 −0 src/LexBaan.cxx
  141. +536 −0 src/LexBash.cxx
  142. +373 −0 src/LexBasic.cxx
  143. +228 −0 src/LexBullant.cxx
  144. +679 −0 src/LexCLW.cxx
  145. +368 −0 src/LexCOBOL.cxx
  146. +506 −0 src/LexCPP.cxx
  147. +363 −0 src/LexCSS.cxx
  148. +451 −0 src/LexCaml.cxx
  149. +457 −0 src/LexCmake.cxx
  150. +188 −0 src/LexConf.cxx
  151. +222 −0 src/LexCrontab.cxx
  152. +210 −0 src/LexCsound.cxx
  153. +399 −0 src/LexD.cxx
  154. +273 −0 src/LexEScript.cxx
  155. +238 −0 src/LexEiffel.cxx
  156. +619 −0 src/LexErlang.cxx
  157. +230 −0 src/LexFlagship.cxx
  158. +176 −0 src/LexForth.cxx
  159. +466 −0 src/LexFortran.cxx
  160. +263 −0 src/LexGAP.cxx
  161. +288 −0 src/LexGen.py
  162. +313 −0 src/LexGui4Cli.cxx
  163. +2,131 −0 src/LexHTML.cxx
  164. +275 −0 src/LexHaskell.cxx
  165. +279 −0 src/LexInno.cxx
  166. +126 −0 src/LexKix.cxx
  167. +282 −0 src/LexLisp.cxx
  168. +212 −0 src/LexLout.cxx
  169. +358 −0 src/LexLua.cxx
  170. +186 −0 src/LexMMIXAL.cxx
  171. +188 −0 src/LexMPT.cxx
  172. +363 −0 src/LexMSSQL.cxx
  173. +445 −0 src/LexMagik.cxx
  174. +412 −0 src/LexMarkdown.cxx
  175. +236 −0 src/LexMatlab.cxx
  176. +399 −0 src/LexMetapost.cxx
  177. +518 −0 src/LexMySQL.cxx
  178. +430 −0 src/LexNimrod.cxx
  179. +655 −0 src/LexNsis.cxx
  180. +522 −0 src/LexOpal.cxx
  181. +1,286 −0 src/LexOthers.cxx
  182. +362 −0 src/LexPB.cxx
  183. +198 −0 src/LexPLM.cxx
  184. +316 −0 src/LexPOV.cxx
  185. +347 −0 src/LexPS.cxx
  186. +592 −0 src/LexPascal.cxx
  187. +1,305 −0 src/LexPerl.cxx
  188. +600 −0 src/LexPowerPro.cxx
  189. +175 −0 src/LexPowerShell.cxx
  190. +279 −0 src/LexProgress.cxx
  191. +569 −0 src/LexPython.cxx
  192. +213 −0 src/LexR.cxx
  193. +322 −0 src/LexRebol.cxx
  194. +1,715 −0 src/LexRuby.cxx
  195. +223 −0 src/LexSML.cxx
  196. +357 −0 src/LexSQL.cxx
  197. +408 −0 src/LexScriptol.cxx
  198. +321 −0 src/LexSmalltalk.cxx
  199. +205 −0 src/LexSorcus.cxx
  200. +289 −0 src/LexSpecman.cxx
  201. +226 −0 src/LexSpice.cxx
  202. +397 −0 src/LexTACL.cxx
  203. +904 −0 src/LexTADS3.cxx
  204. +396 −0 src/LexTAL.cxx
  205. +366 −0 src/LexTCL.cxx
  206. +494 −0 src/LexTeX.cxx
  207. +316 −0 src/LexVB.cxx
  208. +477 −0 src/LexVHDL.cxx
  209. +330 −0 src/LexVerilog.cxx
  210. +314 −0 src/LexYAML.cxx
  211. +310 −0 src/LineMarker.cxx
  212. +62 −0 src/LineMarker.h
  213. +184 −0 src/Partitioning.h
  214. +486 −0 src/PerLine.cxx
  215. +120 −0 src/PerLine.h
  216. +659 −0 src/PositionCache.cxx
  217. +168 −0 src/PositionCache.h
  218. +176 −0 src/PropSet.cxx
  219. +33 −0 src/PropSetSimple.h
  220. +987 −0 src/RESearch.cxx
  221. +75 −0 src/RESearch.h
  222. +216 −0 src/RunStyles.cxx
  223. +46 −0 src/RunStyles.h
  224. +123 −0 src/SVector.h
  225. +6 −0 src/SciTE.properties
  226. +774 −0 src/ScintillaBase.cxx
  227. +100 −0 src/ScintillaBase.h
  228. +366 −0 src/Selection.cxx
  229. +187 −0 src/Selection.h
  230. +249 −0 src/SplitVector.h
  231. +165 −0 src/Style.cxx
  232. +64 −0 src/Style.h
  233. +55 −0 src/StyleContext.cxx
  234. +177 −0 src/StyleContext.h
  235. +131 −0 src/UniConversion.cxx
  236. +13 −0 src/UniConversion.h
  237. +389 −0 src/ViewStyle.cxx
  238. +135 −0 src/ViewStyle.h
  239. +191 −0 src/WindowAccessor.cxx
  240. +326 −0 src/XPM.cxx
  241. +80 −0 src/XPM.h
  242. +63 −0 test/MessageNumbers.py
  243. +31 −0 test/README
  244. +26 −0 test/XiteMenu.py
  245. +651 −0 test/XiteWin.py
  246. +12 −0 test/examples/x.asp
  247. +12 −0 test/examples/x.asp.styled
  248. +4 −0 test/examples/x.cxx
  249. +4 −0 test/examples/x.cxx.styled
  250. +47 −0 test/examples/x.d
  251. +47 −0 test/examples/x.d.styled
  252. +7 −0 test/examples/x.html
  253. +7 −0 test/examples/x.html.styled
  254. +6 −0 test/examples/x.php
  255. +6 −0 test/examples/x.php.styled
  256. +11 −0 test/examples/x.py
  257. +11 −0 test/examples/x.py.styled
  258. +9 −0 test/examples/x.vb
  259. +9 −0 test/examples/x.vb.styled
  260. +113 −0 test/lexTests.py
  261. +83 −0 test/performanceTests.py
  262. +1,309 −0 test/simpleTests.py
  263. +6 −0 test/xite.py
  264. +4 −0 tgzsrc
  265. +549 −0 vcbuild/SciLexer.dsp
  266. +1 −0 version.txt
  267. BIN win32/Margin.cur
  268. +2,293 −0 win32/PlatWin.cxx
  269. +8 −0 win32/PlatformRes.h
  270. +21 −0 win32/SciTE.properties
  271. +40 −0 win32/ScintRes.rc
  272. +2 −0 win32/Scintilla.def
  273. +2,712 −0 win32/ScintillaWin.cxx
  274. +282 −0 win32/deps.mak
  275. +118 −0 win32/makefile
  276. +553 −0 win32/scintilla.mak
  277. +555 −0 win32/scintilla_vc6.mak
  278. +4 −0 zipsrc.bat
@@ -0,0 +1,20 @@
+License for Scintilla and SciTE
+
+Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
+
+All Rights Reserved
+
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
+provided that the above copyright notice appear in all copies and that
+both that copyright notice and this permission notice appear in
+supporting documentation.
+
+NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
+SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
+AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
+SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
+WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
+TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
+OR PERFORMANCE OF THIS SOFTWARE.
74 README
@@ -0,0 +1,74 @@
+README for building of Scintilla and SciTE
+
+Scintilla can be built by itself.
+To build SciTE, Scintilla must first be built.
+
+
+*** GTK+/Linux version ***
+
+You must first have GTK+ 2.0 or later and GCC (4.1 or better) installed.
+GTK+ 1.x will not work.
+Other C++ compilers may work but may require tweaking the make file.
+
+To build Scintilla, use the makefile located in the scintilla/gtk directory
+ cd scintilla/gtk
+ make
+ cd ../..
+
+To build and install SciTE, use the makefile located in the scite/gtk directory
+ cd scite/gtk
+ make
+ make install
+
+This installs SciTE into $prefix/bin. The value of $prefix is determined from
+the location of Gnome if it is installed. This is usually /usr if installed
+with Linux or /usr/local if built from source. If Gnome is not installed
+/usr/bin is used as the prefix. The prefix can be overridden on the command
+line like "make prefix=/opt" but the same value should be used for both make
+and make install as this location is compiled into the executable. The global
+properties file is installed at $prefix/share/scite/SciTEGlobal.properties.
+The language specific properties files are also installed into this directory.
+
+To remove SciTE
+ make uninstall
+
+To clean the object files which may be needed to change $prefix
+ make clean
+
+The current make file only supports static linking between SciTE and Scintilla.
+
+
+*** Windows version ***
+
+A C++ compiler is required. Visual Studio .NET 2008 is the development system
+used for most development although TDM Mingw32 4.4.1 is also supported.
+For older versions of Borland C++ such as version 5.02, add the -l option.
+
+To build Scintilla, make in the scintilla/win32 directory
+ cd scintilla\win32
+GCC: mingw32-make
+VS .NET: nmake -f scintilla.mak
+VC++ 6: nmake -f scintilla_vc6.mak
+Borland: make -fscintilla.mak
+ cd ..\..
+
+To build SciTE, use the makefiles located in the scite/win32 directory
+ cd scite\win32
+GCC: mingw32-make
+VS .NET: nmake -f scite.mak
+Borland: make -fscite.mak
+
+An executable SciTE will now be in scite\bin.
+
+The Visual C++ 6.0 project (.dsp) files are no longer supported but are left
+in the download for people that are prepared to update them.
+
+*** GTK+/Windows version ***
+
+Mingw32 is known to work. Other compilers will probably not work.
+
+Only Scintilla will build with GTK+ on Windows. SciTE will not work.
+
+To build Scintilla, make in the scintilla/gtk directory
+ cd scintilla\gtk
+ mingw32-make
@@ -0,0 +1 @@
+This empty files ensures that the directory is created.
@@ -0,0 +1,55 @@
+
+/**
+ * Scintilla source code edit control
+ * InfoBar.h - Implements special info bar with zoom info, caret position etc. to be used with
+ * ScintillaView.
+ *
+ * Mike Lischke <mlischke@sun.com>
+ *
+ * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
+ * This file is dual licensed under LGPL v2.1 and the Scintilla license (http://www.scintilla.org/License.txt).
+ */
+
+#import <Cocoa/Cocoa.h>
+#import "InfoBarCommunicator.h"
+
+/**
+ * Extended text cell for vertically aligned text.
+ */
+@interface VerticallyCenteredTextFieldCell : NSTextFieldCell
+{
+ BOOL mIsEditingOrSelecting;
+}
+
+@end
+
+@interface InfoBar : NSView <InfoBarCommunicator>
+{
+@private
+ NSImage* mBackground;
+ IBDisplay mDisplayMask;
+
+ float mScaleFactor;
+ NSPopUpButton* mZoomPopup;
+
+ int mCurrentCaretX;
+ int mCurrentCaretY;
+ NSTextField* mCaretPositionLabel;
+ NSTextField* mStatusTextLabel;
+
+ id <InfoBarCommunicator> mCallback;
+}
+
+- (void) notify: (NotificationType) type message: (NSString*) message location: (NSPoint) location
+ value: (float) value;
+- (void) setCallback: (id <InfoBarCommunicator>) callback;
+
+- (void) createItems;
+- (void) layout;
+- (void) setDisplay: (IBDisplay) display;
+- (void) zoomItemAction: (id) sender;
+- (void) setScaleFactor: (float) newScaleFactor adjustPopup: (BOOL) flag;
+- (void) setCaretPosition: (NSPoint) position;
+- (void) sizeToFit;
+
+@end
Oops, something went wrong.

0 comments on commit f858c4b

Please sign in to comment.