lazarus/components/codetools/examples
2008-12-08 15:01:18 +00:00
..
scanexamples codetools: creating FPC source defines with appended pathdelim 2008-12-08 15:01:18 +00:00
addclass.lpi codetools: added example how to insert a class behind a uses section 2007-05-05 16:28:59 +00:00
addclass.lpr codetools: added example how to insert a class behind a uses section 2007-05-05 16:28:59 +00:00
addeventmethod.lpi codetools: CreateMethod: implemented adding units for parameter types, bug #10594 2008-01-09 19:45:29 +00:00
addeventmethod.lpr codetools: CreateMethod: implemented adding units for parameter types, bug #10594 2008-01-09 19:45:29 +00:00
addmethod.lpi codetools: fixed addmethod example 2007-04-29 21:21:33 +00:00
addmethod.lpr codetools: fixed $ELIFC and $ELSEIF 2007-05-29 23:49:11 +00:00
codecompletion.lpi codetools: implemented if declared(unicodestring) 2008-11-28 08:43:22 +00:00
codecompletion.lpr codetools: fixed code completion example 2007-12-28 12:34:18 +00:00
completeabstractmethods.lpi codetools: implemented searching abstract methods, added example 2007-12-07 00:28:12 +00:00
completeabstractmethods.lpr IDE: added refactoring tool show abstract methods 2007-12-07 23:16:21 +00:00
finddeclaration.lpi codetools: fixed mem leak when searching for overloaded procs with default values, IDE: improved searching for event types declaration for TMethodPropertyEditor 2007-09-19 09:30:53 +00:00
finddeclaration.lpr codetools: fixed mem leak when searching for overloaded procs with default values, IDE: improved searching for event types declaration for TMethodPropertyEditor 2007-09-19 09:30:53 +00:00
fixdefinitionorder.lpi codetools: fixed some include path defs for FPC sources, fixed identifier completion for unit names with errors in code, IDE codebrowser: fixed loading new png icons 2007-10-11 22:21:38 +00:00
fixdefinitionorder.lpr codetools: extended fixing alias functions to external functions 2007-10-06 18:10:17 +00:00
fixfilenames.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
fixfilenames.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
fixh2pasdirectives.lpi codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
fixh2pasdirectives.lpr codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
getcontext.lpi codetools: extended examples to sue environment variable FPCTARGET 2008-12-07 22:09:57 +00:00
getcontext.lpr codetools: creating FPC source defines with appended pathdelim 2008-12-08 15:01:18 +00:00
h2pastest.lpi IDE: implemented experimental TPersistentPropertyEditor.GetValues for multi forms 2008-04-04 16:25:44 +00:00
h2pastest.lpr codetools: clean up 2008-07-31 14:37:06 +00:00
identifiercompletion.lpi IDE: make resource string from selection, using BlockBegin 2007-01-09 00:32:45 +00:00
identifiercompletion.lpr codetools: implemented parsing the new fpc 2.3.1 generics, simple find declaration for generics 2007-08-16 17:12:56 +00:00
listinterfaceclasses.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
listinterfaceclasses.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
methodjumping.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
methodjumping.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
ppudependencies.lpi codetools: added example for parsing ppu files 2008-06-27 10:27:06 +00:00
ppudependencies.lpr codetools: ppu: changed output of example to pascal 2008-07-05 22:37:52 +00:00
README.txt codetools: added function to find empty method bodies 2008-04-25 12:11:17 +00:00
reduceifdefs.lpi codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
reduceifdefs.lpr codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
removeemptymethods.lpi codetools: added function to find empty method bodies 2008-04-25 12:11:17 +00:00
removeemptymethods.lpr codetools: remove empty methods: implemented returning list of removed definitions 2008-04-26 19:18:57 +00:00
replaceresourcedirectives.lpi IDE: improved updating resource directives for windows manifest and version info 2007-11-26 20:05:30 +00:00
replaceresourcedirectives.lpr IDE: improved updating resource directives for windows manifest and version info 2007-11-26 20:05:30 +00:00
setincludepath.lpi codetools: fixed examples 2008-09-01 20:08:28 +00:00
setincludepath.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00

Examples for the CodeTools

Some basic examples run out of the box.
Some examples require the path of the FPC sources, which can be given via the
environment variable FPCDIR.
If you see an error message like this:

Scanning FPC sources may take a while ...
TDefinePool.CreateFPCSrcTemplate FPCSrcDir does not exist: ...

Then you must set the FPCDIR variable and start the example again. For example:
Under linux:
  export FPCDIR=/home/username/freepascal/fpc

For instance the FPC 2.2.0 source directory looks like this:
  compiler
  fv
  ide
  installer
  Makefile
  Makefile.fpc
  packages
  rtl
  tests
  utils

See here for more information:
http://wiki.lazarus.freepascal.org/Installing_Lazarus#FPC_Sources

The examples will scan the directories and store the result in a file named
'codetools.config'. So the next time you start any of the examples it does
not need to scan.

List of environment variables:
FPCDIR     = path to FPC source directory
PP         = path of the Free Pascal compiler. For example /usr/bin/ppc386.
LAZARUSDIR = path of the lazarus sources