LICENSE
author jhilmer
Sat Jul 23 15:13:34 2005 +0000 (2005-07-23)
changeset 135 e7f59f62bbe3
child 154 fa05daf043a8
permissions -rw-r--r--
Fixed possible use of uninitialized variable (state)
insilmaril@0
     1
    VYM - View Your Mind
insilmaril@0
     2
    Copyright (C) 2004  Uwe Drechsel  
insilmaril@0
     3
insilmaril@0
     4
    This program is free software; you can redistribute it and/or modify
insilmaril@0
     5
    it under the terms of the GNU General Public License as published by
insilmaril@0
     6
    the Free Software Foundation; either version 2 of the License, or
insilmaril@0
     7
    (at your option) any later version.
insilmaril@0
     8
insilmaril@0
     9
    This program is distributed in the hope that it will be useful,
insilmaril@0
    10
    but WITHOUT ANY WARRANTY; without even the implied warranty of
insilmaril@0
    11
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
insilmaril@0
    12
    GNU General Public License below for more details.
insilmaril@0
    13
insilmaril@0
    14
	In addition, as a special exception, Uwe Drechsel
insilmaril@0
    15
	gives permission to link the code of this program with the QT 
insilmaril@0
    16
	libraries from trolltech.com (or with modified versions of QT that
insilmaril@0
    17
	use the same license as QT), and distribute linked combinations
insilmaril@0
    18
	including the two. You must obey the GNU General Public License in
insilmaril@0
    19
	all respects for all of the code used other than QT. If you modify
insilmaril@0
    20
	this file, you may extend this exception to your version of the
insilmaril@0
    21
	file, but you are not obligated to do so. If you do not wish to do
insilmaril@0
    22
	so, delete this exception statement from your version.
insilmaril@0
    23
insilmaril@0
    24
insilmaril@0
    25
	Uwe Drechsel can be contacted at <vym@insilmaril.de>
insilmaril@0
    26
insilmaril@0
    27
-----------------------------------------------------------------------------
insilmaril@0
    28
insilmaril@0
    29
            GNU GENERAL PUBLIC LICENSE
insilmaril@0
    30
		       Version 2, June 1991
insilmaril@0
    31
insilmaril@0
    32
 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
insilmaril@0
    33
     59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
insilmaril@0
    34
 Everyone is permitted to copy and distribute verbatim copies
insilmaril@0
    35
 of this license document, but changing it is not allowed.
insilmaril@0
    36
insilmaril@0
    37
			    Preamble
insilmaril@0
    38
insilmaril@0
    39
  The licenses for most software are designed to take away your
insilmaril@0
    40
freedom to share and change it.  By contrast, the GNU General Public
insilmaril@0
    41
License is intended to guarantee your freedom to share and change free
insilmaril@0
    42
software--to make sure the software is free for all its users.  This
insilmaril@0
    43
General Public License applies to most of the Free Software
insilmaril@0
    44
Foundation's software and to any other program whose authors commit to
insilmaril@0
    45
using it.  (Some other Free Software Foundation software is covered by
insilmaril@0
    46
the GNU Library General Public License instead.)  You can apply it to
insilmaril@0
    47
your programs, too.
insilmaril@0
    48
insilmaril@0
    49
  When we speak of free software, we are referring to freedom, not
insilmaril@0
    50
price.  Our General Public Licenses are designed to make sure that you
insilmaril@0
    51
have the freedom to distribute copies of free software (and charge for
insilmaril@0
    52
this service if you wish), that you receive source code or can get it
insilmaril@0
    53
if you want it, that you can change the software or use pieces of it
insilmaril@0
    54
in new free programs; and that you know you can do these things.
insilmaril@0
    55
insilmaril@0
    56
  To protect your rights, we need to make restrictions that forbid
insilmaril@0
    57
anyone to deny you these rights or to ask you to surrender the rights.
insilmaril@0
    58
These restrictions translate to certain responsibilities for you if you
insilmaril@0
    59
distribute copies of the software, or if you modify it.
insilmaril@0
    60
insilmaril@0
    61
  For example, if you distribute copies of such a program, whether
insilmaril@0
    62
gratis or for a fee, you must give the recipients all the rights that
insilmaril@0
    63
you have.  You must make sure that they, too, receive or can get the
insilmaril@0
    64
source code.  And you must show them these terms so they know their
insilmaril@0
    65
rights.
insilmaril@0
    66
insilmaril@0
    67
  We protect your rights with two steps: (1) copyright the software, and
insilmaril@0
    68
(2) offer you this license which gives you legal permission to copy,
insilmaril@0
    69
distribute and/or modify the software.
insilmaril@0
    70
insilmaril@0
    71
  Also, for each author's protection and ours, we want to make certain
insilmaril@0
    72
that everyone understands that there is no warranty for this free
insilmaril@0
    73
software.  If the software is modified by someone else and passed on, we
insilmaril@0
    74
want its recipients to know that what they have is not the original, so
insilmaril@0
    75
that any problems introduced by others will not reflect on the original
insilmaril@0
    76
authors' reputations.
insilmaril@0
    77
insilmaril@0
    78
  Finally, any free program is threatened constantly by software
insilmaril@0
    79
patents.  We wish to avoid the danger that redistributors of a free
insilmaril@0
    80
program will individually obtain patent licenses, in effect making the
insilmaril@0
    81
program proprietary.  To prevent this, we have made it clear that any
insilmaril@0
    82
patent must be licensed for everyone's free use or not licensed at all.
insilmaril@0
    83
insilmaril@0
    84
  The precise terms and conditions for copying, distribution and
insilmaril@0
    85
modification follow.
insilmaril@0
    86
insilmaril@0
    87
		    GNU GENERAL PUBLIC LICENSE
insilmaril@0
    88
   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
insilmaril@0
    89
insilmaril@0
    90
  0. This License applies to any program or other work which contains
insilmaril@0
    91
a notice placed by the copyright holder saying it may be distributed
insilmaril@0
    92
under the terms of this General Public License.  The "Program", below,
insilmaril@0
    93
refers to any such program or work, and a "work based on the Program"
insilmaril@0
    94
means either the Program or any derivative work under copyright law:
insilmaril@0
    95
that is to say, a work containing the Program or a portion of it,
insilmaril@0
    96
either verbatim or with modifications and/or translated into another
insilmaril@0
    97
language.  (Hereinafter, translation is included without limitation in
insilmaril@0
    98
the term "modification".)  Each licensee is addressed as "you".
insilmaril@0
    99
insilmaril@0
   100
Activities other than copying, distribution and modification are not
insilmaril@0
   101
covered by this License; they are outside its scope.  The act of
insilmaril@0
   102
running the Program is not restricted, and the output from the Program
insilmaril@0
   103
is covered only if its contents constitute a work based on the
insilmaril@0
   104
Program (independent of having been made by running the Program).
insilmaril@0
   105
Whether that is true depends on what the Program does.
insilmaril@0
   106
insilmaril@0
   107
  1. You may copy and distribute verbatim copies of the Program's
insilmaril@0
   108
source code as you receive it, in any medium, provided that you
insilmaril@0
   109
conspicuously and appropriately publish on each copy an appropriate
insilmaril@0
   110
copyright notice and disclaimer of warranty; keep intact all the
insilmaril@0
   111
notices that refer to this License and to the absence of any warranty;
insilmaril@0
   112
and give any other recipients of the Program a copy of this License
insilmaril@0
   113
along with the Program.
insilmaril@0
   114
insilmaril@0
   115
You may charge a fee for the physical act of transferring a copy, and
insilmaril@0
   116
you may at your option offer warranty protection in exchange for a fee.
insilmaril@0
   117
insilmaril@0
   118
  2. You may modify your copy or copies of the Program or any portion
insilmaril@0
   119
of it, thus forming a work based on the Program, and copy and
insilmaril@0
   120
distribute such modifications or work under the terms of Section 1
insilmaril@0
   121
above, provided that you also meet all of these conditions:
insilmaril@0
   122
insilmaril@0
   123
    a) You must cause the modified files to carry prominent notices
insilmaril@0
   124
    stating that you changed the files and the date of any change.
insilmaril@0
   125
insilmaril@0
   126
    b) You must cause any work that you distribute or publish, that in
insilmaril@0
   127
    whole or in part contains or is derived from the Program or any
insilmaril@0
   128
    part thereof, to be licensed as a whole at no charge to all third
insilmaril@0
   129
    parties under the terms of this License.
insilmaril@0
   130
insilmaril@0
   131
    c) If the modified program normally reads commands interactively
insilmaril@0
   132
    when run, you must cause it, when started running for such
insilmaril@0
   133
    interactive use in the most ordinary way, to print or display an
insilmaril@0
   134
    announcement including an appropriate copyright notice and a
insilmaril@0
   135
    notice that there is no warranty (or else, saying that you provide
insilmaril@0
   136
    a warranty) and that users may redistribute the program under
insilmaril@0
   137
    these conditions, and telling the user how to view a copy of this
insilmaril@0
   138
    License.  (Exception: if the Program itself is interactive but
insilmaril@0
   139
    does not normally print such an announcement, your work based on
insilmaril@0
   140
    the Program is not required to print an announcement.)
insilmaril@0
   141

insilmaril@0
   142
These requirements apply to the modified work as a whole.  If
insilmaril@0
   143
identifiable sections of that work are not derived from the Program,
insilmaril@0
   144
and can be reasonably considered independent and separate works in
insilmaril@0
   145
themselves, then this License, and its terms, do not apply to those
insilmaril@0
   146
sections when you distribute them as separate works.  But when you
insilmaril@0
   147
distribute the same sections as part of a whole which is a work based
insilmaril@0
   148
on the Program, the distribution of the whole must be on the terms of
insilmaril@0
   149
this License, whose permissions for other licensees extend to the
insilmaril@0
   150
entire whole, and thus to each and every part regardless of who wrote it.
insilmaril@0
   151
insilmaril@0
   152
Thus, it is not the intent of this section to claim rights or contest
insilmaril@0
   153
your rights to work written entirely by you; rather, the intent is to
insilmaril@0
   154
exercise the right to control the distribution of derivative or
insilmaril@0
   155
collective works based on the Program.
insilmaril@0
   156
insilmaril@0
   157
In addition, mere aggregation of another work not based on the Program
insilmaril@0
   158
with the Program (or with a work based on the Program) on a volume of
insilmaril@0
   159
a storage or distribution medium does not bring the other work under
insilmaril@0
   160
the scope of this License.
insilmaril@0
   161
insilmaril@0
   162
  3. You may copy and distribute the Program (or a work based on it,
insilmaril@0
   163
under Section 2) in object code or executable form under the terms of
insilmaril@0
   164
Sections 1 and 2 above provided that you also do one of the following:
insilmaril@0
   165
insilmaril@0
   166
    a) Accompany it with the complete corresponding machine-readable
insilmaril@0
   167
    source code, which must be distributed under the terms of Sections
insilmaril@0
   168
    1 and 2 above on a medium customarily used for software interchange; or,
insilmaril@0
   169
insilmaril@0
   170
    b) Accompany it with a written offer, valid for at least three
insilmaril@0
   171
    years, to give any third party, for a charge no more than your
insilmaril@0
   172
    cost of physically performing source distribution, a complete
insilmaril@0
   173
    machine-readable copy of the corresponding source code, to be
insilmaril@0
   174
    distributed under the terms of Sections 1 and 2 above on a medium
insilmaril@0
   175
    customarily used for software interchange; or,
insilmaril@0
   176
insilmaril@0
   177
    c) Accompany it with the information you received as to the offer
insilmaril@0
   178
    to distribute corresponding source code.  (This alternative is
insilmaril@0
   179
    allowed only for noncommercial distribution and only if you
insilmaril@0
   180
    received the program in object code or executable form with such
insilmaril@0
   181
    an offer, in accord with Subsection b above.)
insilmaril@0
   182
insilmaril@0
   183
The source code for a work means the preferred form of the work for
insilmaril@0
   184
making modifications to it.  For an executable work, complete source
insilmaril@0
   185
code means all the source code for all modules it contains, plus any
insilmaril@0
   186
associated interface definition files, plus the scripts used to
insilmaril@0
   187
control compilation and installation of the executable.  However, as a
insilmaril@0
   188
special exception, the source code distributed need not include
insilmaril@0
   189
anything that is normally distributed (in either source or binary
insilmaril@0
   190
form) with the major components (compiler, kernel, and so on) of the
insilmaril@0
   191
operating system on which the executable runs, unless that component
insilmaril@0
   192
itself accompanies the executable.
insilmaril@0
   193
insilmaril@0
   194
If distribution of executable or object code is made by offering
insilmaril@0
   195
access to copy from a designated place, then offering equivalent
insilmaril@0
   196
access to copy the source code from the same place counts as
insilmaril@0
   197
distribution of the source code, even though third parties are not
insilmaril@0
   198
compelled to copy the source along with the object code.
insilmaril@0
   199

insilmaril@0
   200
  4. You may not copy, modify, sublicense, or distribute the Program
insilmaril@0
   201
except as expressly provided under this License.  Any attempt
insilmaril@0
   202
otherwise to copy, modify, sublicense or distribute the Program is
insilmaril@0
   203
void, and will automatically terminate your rights under this License.
insilmaril@0
   204
However, parties who have received copies, or rights, from you under
insilmaril@0
   205
this License will not have their licenses terminated so long as such
insilmaril@0
   206
parties remain in full compliance.
insilmaril@0
   207
insilmaril@0
   208
  5. You are not required to accept this License, since you have not
insilmaril@0
   209
signed it.  However, nothing else grants you permission to modify or
insilmaril@0
   210
distribute the Program or its derivative works.  These actions are
insilmaril@0
   211
prohibited by law if you do not accept this License.  Therefore, by
insilmaril@0
   212
modifying or distributing the Program (or any work based on the
insilmaril@0
   213
Program), you indicate your acceptance of this License to do so, and
insilmaril@0
   214
all its terms and conditions for copying, distributing or modifying
insilmaril@0
   215
the Program or works based on it.
insilmaril@0
   216
insilmaril@0
   217
  6. Each time you redistribute the Program (or any work based on the
insilmaril@0
   218
Program), the recipient automatically receives a license from the
insilmaril@0
   219
original licensor to copy, distribute or modify the Program subject to
insilmaril@0
   220
these terms and conditions.  You may not impose any further
insilmaril@0
   221
restrictions on the recipients' exercise of the rights granted herein.
insilmaril@0
   222
You are not responsible for enforcing compliance by third parties to
insilmaril@0
   223
this License.
insilmaril@0
   224
insilmaril@0
   225
  7. If, as a consequence of a court judgment or allegation of patent
insilmaril@0
   226
infringement or for any other reason (not limited to patent issues),
insilmaril@0
   227
conditions are imposed on you (whether by court order, agreement or
insilmaril@0
   228
otherwise) that contradict the conditions of this License, they do not
insilmaril@0
   229
excuse you from the conditions of this License.  If you cannot
insilmaril@0
   230
distribute so as to satisfy simultaneously your obligations under this
insilmaril@0
   231
License and any other pertinent obligations, then as a consequence you
insilmaril@0
   232
may not distribute the Program at all.  For example, if a patent
insilmaril@0
   233
license would not permit royalty-free redistribution of the Program by
insilmaril@0
   234
all those who receive copies directly or indirectly through you, then
insilmaril@0
   235
the only way you could satisfy both it and this License would be to
insilmaril@0
   236
refrain entirely from distribution of the Program.
insilmaril@0
   237
insilmaril@0
   238
If any portion of this section is held invalid or unenforceable under
insilmaril@0
   239
any particular circumstance, the balance of the section is intended to
insilmaril@0
   240
apply and the section as a whole is intended to apply in other
insilmaril@0
   241
circumstances.
insilmaril@0
   242
insilmaril@0
   243
It is not the purpose of this section to induce you to infringe any
insilmaril@0
   244
patents or other property right claims or to contest validity of any
insilmaril@0
   245
such claims; this section has the sole purpose of protecting the
insilmaril@0
   246
integrity of the free software distribution system, which is
insilmaril@0
   247
implemented by public license practices.  Many people have made
insilmaril@0
   248
generous contributions to the wide range of software distributed
insilmaril@0
   249
through that system in reliance on consistent application of that
insilmaril@0
   250
system; it is up to the author/donor to decide if he or she is willing
insilmaril@0
   251
to distribute software through any other system and a licensee cannot
insilmaril@0
   252
impose that choice.
insilmaril@0
   253
insilmaril@0
   254
This section is intended to make thoroughly clear what is believed to
insilmaril@0
   255
be a consequence of the rest of this License.
insilmaril@0
   256
insilmaril@0
   257
  8. If the distribution and/or use of the Program is restricted in
insilmaril@0
   258
certain countries either by patents or by copyrighted interfaces, the
insilmaril@0
   259
original copyright holder who places the Program under this License
insilmaril@0
   260
may add an explicit geographical distribution limitation excluding
insilmaril@0
   261
those countries, so that distribution is permitted only in or among
insilmaril@0
   262
countries not thus excluded.  In such case, this License incorporates
insilmaril@0
   263
the limitation as if written in the body of this License.
insilmaril@0
   264
insilmaril@0
   265
  9. The Free Software Foundation may publish revised and/or new versions
insilmaril@0
   266
of the General Public License from time to time.  Such new versions will
insilmaril@0
   267
be similar in spirit to the present version, but may differ in detail to
insilmaril@0
   268
address new problems or concerns.
insilmaril@0
   269
insilmaril@0
   270
Each version is given a distinguishing version number.  If the Program
insilmaril@0
   271
specifies a version number of this License which applies to it and "any
insilmaril@0
   272
later version", you have the option of following the terms and conditions
insilmaril@0
   273
either of that version or of any later version published by the Free
insilmaril@0
   274
Software Foundation.  If the Program does not specify a version number of
insilmaril@0
   275
this License, you may choose any version ever published by the Free Software
insilmaril@0
   276
Foundation.
insilmaril@0
   277
insilmaril@0
   278
  10. If you wish to incorporate parts of the Program into other free
insilmaril@0
   279
programs whose distribution conditions are different, write to the author
insilmaril@0
   280
to ask for permission.  For software which is copyrighted by the Free
insilmaril@0
   281
Software Foundation, write to the Free Software Foundation; we sometimes
insilmaril@0
   282
make exceptions for this.  Our decision will be guided by the two goals
insilmaril@0
   283
of preserving the free status of all derivatives of our free software and
insilmaril@0
   284
of promoting the sharing and reuse of software generally.
insilmaril@0
   285
insilmaril@0
   286
			    NO WARRANTY
insilmaril@0
   287
insilmaril@0
   288
  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
insilmaril@0
   289
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN
insilmaril@0
   290
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
insilmaril@0
   291
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
insilmaril@0
   292
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
insilmaril@0
   293
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS
insilmaril@0
   294
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
insilmaril@0
   295
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
insilmaril@0
   296
REPAIR OR CORRECTION.
insilmaril@0
   297
insilmaril@0
   298
  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
insilmaril@0
   299
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
insilmaril@0
   300
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
insilmaril@0
   301
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
insilmaril@0
   302
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
insilmaril@0
   303
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
insilmaril@0
   304
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
insilmaril@0
   305
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
insilmaril@0
   306
POSSIBILITY OF SUCH DAMAGES.
insilmaril@0
   307
insilmaril@0
   308
		     END OF TERMS AND CONDITIONS