lazarus/components/codetools/examples
2010-03-26 12:24:47 +00:00
..
scanexamples codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
testscompleteblock codetools test: added test for try if finally 2009-08-23 12:57:23 +00:00
addclass.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addclass.lpr codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
addeventmethod.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addeventmethod.lpr codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
addmethod.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
addmethod.lpr codetools: fixed adding published method into implicit first published section 2009-12-03 11:29:47 +00:00
autoindent.lpi codetools: added debugging output for indentation parser 2009-05-25 12:22:11 +00:00
autoindent.pas codetools: fixed compilation of some examples 2009-12-03 10:28:17 +00:00
codecompletion.lpi codetools: examples: fixed title 2009-12-03 11:34:57 +00:00
codecompletion.lpr codetools: fixed code completion example 2007-12-28 12:34:18 +00:00
completeabstractmethods.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
completeabstractmethods.lpr IDE: added refactoring tool show abstract methods 2007-12-07 23:16:21 +00:00
completeblock.lpi codetools: completeblock: fixed closing nested if else 2009-06-05 11:38:03 +00:00
completeblock.pas codetools: completeblock test result 2009-08-19 21:49:25 +00:00
finddeclaration.lpi codetools: find declaration of selfunit.identifier 2009-05-04 10:10:07 +00:00
finddeclaration.lpr codetools: find declaration of selfunit.identifier 2009-05-04 10:10:07 +00:00
findunusedunits.lpi codetools: added example for unused units 2009-04-09 12:57:21 +00:00
findunusedunits.lpr codetools: added example for unused units 2009-04-09 12:57:21 +00:00
fixdefinitionorder.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixdefinitionorder.lpr codetools: extended fixing alias functions to external functions 2007-10-06 18:10:17 +00:00
fixfilenames.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixfilenames.pas codetools: examples: fixed title 2009-12-03 11:34:57 +00:00
fixh2pasdirectives.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
fixh2pasdirectives.lpr codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
fpcunitlinks.lpi codetools: started tool to explore fpc sources 2009-06-05 12:49:01 +00:00
fpcunitlinks.pas codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
getcontext.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
getcontext.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
h2pastest.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
h2pastest.lpr codetools: clean up 2008-07-31 14:37:06 +00:00
identifiercompletion.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +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 compilation of examples 2009-12-03 11:10:47 +00:00
listinterfaceclasses.pas codetools: parsing cppclass 2009-11-15 15:43:53 +00:00
methodjumping.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
methodjumping.pas codetools: added example file for methodjumping 2009-12-03 11:38:21 +00:00
ppudependencies.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
ppudependencies.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
README.txt small updates 2009-07-28 15:14:49 +00:00
reduceifdefs.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
reduceifdefs.lpr codetools: fixed examples from Mattias 2007-11-05 13:12:59 +00:00
removeemptymethods.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
removeemptymethods.lpr codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
replaceresourcedirectives.lpi codetools: examples: fixed comment 2009-12-03 11:40:47 +00:00
replaceresourcedirectives.lpr IDE: improved updating resource directives for windows manifest and version info 2007-11-26 20:05:30 +00:00
retypepublishedvars.lpi codetools: added RetypeClassVariables 2010-03-25 21:16:32 +00:00
retypepublishedvars.lpr codetools: changed RetypeClassVariables parameter to tree 2010-03-26 12:24:47 +00:00
setincludepath.lpi codetools: fixed compilation of examples 2009-12-03 11:10:47 +00:00
setincludepath.pas codetools: fixed examples 2008-09-01 20:08:28 +00:00
testexpreval.lpi codetools: added example testexpreval 2009-11-26 19:12:41 +00:00
testexpreval.pas codetools: examples: fixed comment 2009-12-03 11:40:47 +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
FPCTARGET    = FPC target OS like linux, win32, darwin
FPCTARGETCPU = FPC target cpu like i386, x86_64, arm