TQt conversion of scintilla for Qt3
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. QScintilla - a Port to Qt of Scintilla
  2. INTRODUCTION
  3. To quote http://www.scintilla.org/:
  4. "Scintilla is a free source code editing component. It comes with complete
  5. source code and a license that permits use in any free project or commercial
  6. product.
  7. As well as features found in standard text editing components, Scintilla
  8. includes features especially useful when editing and debugging source code.
  9. These include support for syntax styling, error indicators, code completion and
  10. call tips. The selection margin can contain markers like those used in
  11. debuggers to indicate breakpoints and the current line. Styling choices are
  12. more open than with many editors, allowing the use of proportional fonts, bold
  13. and italics, multiple foreground and background colours and multiple fonts."
  14. Scintilla runs on Windows and on UNIX/Linux using the GTK+ GUI toolkit.
  15. QScintilla is a port or Scintilla to the Qt GUI toolkit from Trolltech and runs
  16. on any operating system supported by Qt (eg. Windows, UNIX/Linux, MacOS/X). Qt
  17. v3 or later is required.
  18. This version of QScintilla is based on Scintilla v1.71.
  19. LICENSING
  20. Scintilla is released under the following license:
  21. "License for Scintilla and SciTE
  22. Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org>
  23. All Rights Reserved
  24. Permission to use, copy, modify, and distribute this software and its
  25. documentation for any purpose and without fee is hereby granted,
  26. provided that the above copyright notice appear in all copies and that
  27. both that copyright notice and this permission notice appear in
  28. supporting documentation.
  29. NEIL HODGSON DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
  30. SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  31. AND FITNESS, IN NO EVENT SHALL NEIL HODGSON BE LIABLE FOR ANY
  32. SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  33. WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  34. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  35. TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  36. OR PERFORMANCE OF THIS SOFTWARE."
  37. QScintilla, however, uses the same license model as Qt itself. QScintilla is
  38. available under the GNU GPL on UNIX/Linux systems. QScintilla is available
  39. under a commercial license on Windows, UNIX/Linux and MacOS/X systems. The
  40. commercial license allows closed source applications using QScintilla to be
  41. developed and distributed.
  42. See the file "LICENSE" to see what license this copy of QScintilla is released
  43. under.
  44. INSTALLATION
  45. Check for any other README files in this directory that relate to your
  46. particular platform. Feel free to contribute a README for your platform or to
  47. provide updates to any existing documentation.
  48. To configure QScintilla, edit the file "qscintilla.pro" in the "qt" directory.
  49. As supplied, QScintilla is built as a shared library/DLL with thread support
  50. enabled, and installed in the same directory as the Qt library.
  51. To install the QScintilla library in another directory, edit the value of
  52. "DESTDIR". To build the library in situ (in the "qt" directory) then comment
  53. out "DESTDIR" entirely - this will also mean that you will not need root
  54. privileges under UNIX/Linux.
  55. If your Qt library was built without thread support, edit the value of "CONFIG"
  56. and remove "thread".
  57. If you want to build a static library, edit the value of "CONFIG" and replace
  58. "dll" with "staticlib", and edit the value of "DEFINES" and remove
  59. "QEXTSCINTILLA_MAKE_DLL".
  60. To build QScintilla on UNIX/Linux/MacOS, run (as root):
  61. cd qt
  62. qmake qscintilla.pro
  63. make
  64. make install
  65. You may also need to run:
  66. ldconfig
  67. If you are using the GNU C++ compiler you might want to edit "qt/Makefile" and
  68. add "-fno-exceptions" to "CXXFLAGS" before running "make".
  69. To build QScintilla on Windows, run:
  70. cd qt
  71. qmake qscintilla.pro
  72. nmake
  73. nmake install
  74. copy %TQTDIR%\lib\qscintilla.dll %TQTDIR%\bin
  75. Please do not try to build the GPL version of QScintilla under Windows. It
  76. will not work and you would be contravening the GPL.
  77. Qt DESIGNER PLUGIN
  78. QScintilla includes an optional plugin for Qt Designer that allows QScintilla
  79. instances to be included in GUI designs just like any other Qt widget.
  80. To build the plugin on all platforms, make sure QScintilla is installed and
  81. then run (as root or administrator):
  82. cd designer
  83. qmake designer
  84. make
  85. On Windows you may need to run "nmake" rather than "make".
  86. Phil Thompson
  87. phil@riverbankcomputing.co.uk