Difference between revisions of "IDE Macros in paths and filenames"

From Lazarus wiki
Jump to navigationJump to search
 
Line 1: Line 1:
Col
+
* Col - current row in source editor
Row
+
* Row - current column in source editor
CompPath
+
* CompPath - compiler path set in the environment options
CurToken
+
* CurToken - current token at the cursor in the source editor
EdFile
+
* EdFile - current filename in the source editor
FPCSrcDir
+
* FPCSrcDir - FPC source directory set in environment options
LazarusDir
+
* LazarusDir - Lazarus source directory set in environment options
LCLWidgetType
+
* LCLWidgetType - LCL widgetset of the current project
TargetCPU
+
* TargetCPU - Target CPU of the current project
TargetOS
+
* TargetOS - Target OS of the current project
Params
+
* Params - run parameters of the current project
Prompt
+
* Prompt - ask the user for a value. This is an interactive macro.
ProjFile
+
* ProjFile - the full filename of the main source of the current project (.lpr)
ProjPath
+
* ProjPath - the project directory (the directory of the .lpi file)
Save
+
* Save - save current file in source editor
SaveAll
+
* SaveAll - save all
TargetFile
+
* TargetFile - the output file of the current project (e.g. the executable or the library)
TargetCmdLine
+
* TargetCmdLine - the project executable plus run parameters
TestDir
+
* TestDir - Test directory set in the environment options
RunCmdLine
+
* RunCmdLine - the command to launch the project
ProjPublishDir
+
* ProjPublishDir - publishing directory of the current project
ProjUnitPath
+
* ProjUnitPath - unit path of project directory
ProjIncPath
+
* ProjIncPath - include path of project directory
ProjSrcPath
+
* ProjSrcPath - source path of project directory
ConfDir
+
* ConfDir - directory where the IDE stores its config files
MakeExe
+
* MakeExe - path to the 'make' program (gmake under BSD)
Project
+
* Project() - makro function for various values
 +
  * UnitPath - unit path of project directory
 +
  * SrcPath - source path of project directory
 +
  * IncPath - include path of project directory
 +
* Ext() - macro function for ExtractFileExt
 +
* Path() - macro function for ExtractFilePath
 +
* Name() - macro function for ExtractFileName

Revision as of 01:02, 16 April 2006

  • Col - current row in source editor
  • Row - current column in source editor
  • CompPath - compiler path set in the environment options
  • CurToken - current token at the cursor in the source editor
  • EdFile - current filename in the source editor
  • FPCSrcDir - FPC source directory set in environment options
  • LazarusDir - Lazarus source directory set in environment options
  • LCLWidgetType - LCL widgetset of the current project
  • TargetCPU - Target CPU of the current project
  • TargetOS - Target OS of the current project
  • Params - run parameters of the current project
  • Prompt - ask the user for a value. This is an interactive macro.
  • ProjFile - the full filename of the main source of the current project (.lpr)
  • ProjPath - the project directory (the directory of the .lpi file)
  • Save - save current file in source editor
  • SaveAll - save all
  • TargetFile - the output file of the current project (e.g. the executable or the library)
  • TargetCmdLine - the project executable plus run parameters
  • TestDir - Test directory set in the environment options
  • RunCmdLine - the command to launch the project
  • ProjPublishDir - publishing directory of the current project
  • ProjUnitPath - unit path of project directory
  • ProjIncPath - include path of project directory
  • ProjSrcPath - source path of project directory
  • ConfDir - directory where the IDE stores its config files
  • MakeExe - path to the 'make' program (gmake under BSD)
  • Project() - makro function for various values
 * UnitPath - unit path of project directory
 * SrcPath - source path of project directory
 * IncPath - include path of project directory
  • Ext() - macro function for ExtractFileExt
  • Path() - macro function for ExtractFilePath
  • Name() - macro function for ExtractFileName