summaryrefslogtreecommitdiffstats
path: root/README
blob: cca78cbc032f0ab17edccf41dcfbb3b375461743 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
                     TQScintilla - a Port to TQt of Scintilla


INTRODUCTION

To quote http://www.scintilla.org/:

"Scintilla is a free source code editing component.  It comes with complete
source code and a license that permits use in any free project or commercial
product. 

As well as features found in standard text editing components, Scintilla
includes features especially useful when editing and debugging source code.
These include support for syntax styling, error indicators, code completion and
call tips.  The selection margin can contain markers like those used in
debuggers to indicate breakpoints and the current line.  Styling choices are
more open than with many editors, allowing the use of proportional fonts, bold
and italics, multiple foreground and background colours and multiple fonts."

Scintilla runs on Windows and on UNIX/Linux using the GTK+ GUI toolkit.

TQScintilla is a port or Scintilla to the TQt GUI toolkit from TDE team and runs
on any operating system supported by TQt (eg. Windows, UNIX/Linux, MacOS/X).  TQt
v3 or later is required.

This version of TQScintilla is based on Scintilla v1.71.


LICENSING

Scintilla is released under the following license:

"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."

TQScintilla, however, uses the same license model as TQt itself.  TQScintilla is
available under the GNU GPL on UNIX/Linux systems.  TQScintilla is available
under a commercial license on Windows, UNIX/Linux and MacOS/X systems.  The
commercial license allows closed source applications using TQScintilla to be
developed and distributed.

See the file "LICENSE" to see what license this copy of TQScintilla is released
under.


INSTALLATION

Check for any other README files in this directory that relate to your
particular platform.  Feel free to contribute a README for your platform or to
provide updates to any existing documentation.

To configure TQScintilla, edit the file "tqscintilla.pro" in the "tqt" directory.
As supplied, TQScintilla is built as a shared library/DLL with thread support
enabled, and installed in the same directory as the TQt library.

To install the TQScintilla library in another directory, edit the value of
"DESTDIR".  To build the library in situ (in the "tqt" directory) then comment
out "DESTDIR" entirely - this will also mean that you will not need root
privileges under UNIX/Linux.

If your TQt library was built without thread support, edit the value of "CONFIG"
and remove "thread".

If you want to build a static library, edit the value of "CONFIG" and replace
"dll" with "staticlib", and edit the value of "DEFINES" and remove
"TQEXTSCINTILLA_MAKE_DLL".

To build TQScintilla on UNIX/Linux/MacOS, run (as root):

	cd tqt
	qmake tqscintilla.pro
	make
	make install

You may also need to run:

	ldconfig

If you are using the GNU C++ compiler you might want to edit "tqt/Makefile" and
add "-fno-exceptions" to "CXXFLAGS" before running "make".

To build TQScintilla on Windows, run:

	cd tqt
	qmake tqscintilla.pro
	nmake
	nmake install
	copy %TQTDIR%\lib\tqscintilla.dll %TQTDIR%\bin

Please do not try to build the GPL version of TQScintilla under Windows.  It
will not work and you would be contravening the GPL.


TQt DESIGNER PLUGIN

TQScintilla includes an optional plugin for TQt Designer that allows TQScintilla
instances to be included in GUI designs just like any other TQt widget.

To build the plugin on all platforms, make sure TQScintilla is installed and
then run (as root or administrator):

	cd designer
	qmake designer
	make

On Windows you may need to run "nmake" rather than "make".


Phil Thompson
phil@riverbankcomputing.co.uk