lazarus/components/codetools/examples
mattias 5aabc7242b codetools: added example for nested classes
git-svn-id: trunk@29032 -
2011-01-15 12:56:11 +00:00
..
scanexamples codetools: added example for nested classes 2011-01-15 12:56:11 +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 codetools: added TCustomCodeTool.CodePosToCleanPos 2010-07-28 16:54:57 +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
completeabstractmethods.lpi IDE: when no lps file: open main unit 2009-12-03 10:59:32 +00:00
completeabstractmethods.lpr
completeblock.lpi code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
completeblock.pas code tools examples: fixed compilation after r26515 #c0682eae27. 2010-10-22 12:44:54 +00:00
finddeclaration.lpi codetools: started init with new fpc cache 2010-07-18 00:50:13 +00:00
finddeclaration.lpr codetools: block completion: consider comments in front of insert pos 2010-07-19 12:37:02 +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
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
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: started collecting FPC units from set 2010-07-19 15:59:57 +00:00
identifiercompletion.lpr codetools: started collecting FPC units from set 2010-07-19 15:59:57 +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
removeemptymethods.lpi codetools: RemoveUnitFromUsesSection: when removing the last unit remove empty lines in front too, bug #18055 2010-11-26 12:23:25 +00:00
removeemptymethods.lpr codetools: updated example 2010-07-01 09:49:24 +00:00
replaceresourcedirectives.lpi codetools: examples: fixed comment 2009-12-03 11:40:47 +00:00
replaceresourcedirectives.lpr
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
runcfgscript.lpi codetools: configscript: comparing string and number 2010-11-25 16:20:01 +00:00
runcfgscript.lpr codetools: configscript: comparing string and number 2010-11-25 16:20:01 +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
testfpcsrcunitrules.lpi codetools: fpc src rules: check case insensitive, when no target compiler use defaults 2010-07-26 13:13:10 +00:00
testfpcsrcunitrules.lpr codetools: check if ppu path exists 2010-07-29 10:03:17 +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