📄 formdefines.html
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>Compiler Options - Help on GUI of JADD - Just Another DelphiDoc - JADD - Just Another DelphiDoc</title>
<meta name="keywords" content="Compiler Options">
<meta name="Generator" content="JADD - Just Another DelphiDoc">
<link rel="stylesheet" type="text/css" href="DelphiDoc.css" title="Style">
</head>
<body>
<table width="100%" class="headerlinks"><tbody><tr>
<td align="center"><a href="index.html">Index</a></td>
</tr></tbody></table>
<hr>
<p align="center">
<!-- local -->
<a href="http://sourceforge.net/"><img
src="sflogo.png"
width="210" height="62" border="0" alt="SourceForge.net Logo"
align="right"></a>
<!-- /local -->
<!-- public - -!
<a href="http://sourceforge.net/"><img
src="http://sourceforge.net/sflogo.php?group_id=113456&type=5"
width="210" height="62" border="0" alt="SourceForge.net Logo"
align="right"></a>
<!- - /public -->
Homepage: <a href="http://delphidoc.sourceforge.net/">http://delphidoc.sourceforge.net/</a><br>
Project-Page: <a href="http://sourceforge.net/projects/delphidoc/">http://sourceforge.net/projects/delphidoc/</a><br>
</p>
<br clear="all">
<div align="center"><a name="X.top" id="X.top">Click component for help:</a></div>
<div class="imgparagraph" align="center">
<map name="imagemap3" id="imagemap3"><area shape="rect" coords="4,23,99,44" alt="Compiler Options" title="Compiler Options" href="FormDefines.html">
<area shape="rect" coords="100,23,175,44" alt="Compiler Options - More Settings" title="Compiler Options - More Settings" href="FormDefines.MoreSettings.html">
<area shape="rect" coords="176,23,297,44" alt="Compiler Options - After parsing .cfg/.conf" title="Compiler Options - After parsing .cfg/.conf" href="FormDefines.After.html">
<area shape="rect" coords="526,397,604,425" alt="OK" title="OK" href="FormDefines.html#BitBtnOK">
<area shape="rect" coords="18,57,100,70" alt="Check List Box Compiler Option" title="Check List Box Compiler Option" href="FormDefines.html#CheckListBoxPre">
<area shape="rect" coords="218,279,276,292" alt="Unit Aliases" title="Unit Aliases" href="FormDefines.html#EditUnitAliases">
<area shape="rect" coords="18,72,203,377" alt="Check List Box Compiler Option" title="Check List Box Compiler Option" href="FormDefines.html#CheckListBoxPre">
<area shape="rect" coords="218,251,433,268" alt="Parsing .cfg/.conf-file of Projects" title="Parsing .cfg/.conf-file of Projects" href="FormDefines.html#CheckBoxAuto">
<area shape="rect" coords="289,275,589,296" alt="Unit Aliases" title="Unit Aliases" href="FormDefines.html#EditUnitAliases">
<area shape="rect" coords="218,347,358,377" alt="Load from .cfg/.conf" title="Load from .cfg/.conf" href="FormDefines.html#BitBtnLoadFromCFG">
<area shape="rect" coords="226,206,590,227" alt="Predefined Compiler Symbols" title="Predefined Compiler Symbols" href="FormDefines.html#EditPreDefs">
<area shape="rect" coords="226,75,590,169" alt="Delphi Compiler Version" title="Delphi Compiler Version" href="FormDefines.html#RadioGroupVersion">
<area shape="rect" coords="226,178,288,195" alt="Console Application" title="Console Application" href="FormDefines.html#CheckBoxConsole">
<area shape="rect" coords="301,178,341,195" alt="Kylix's shared objects" title="Kylix's shared objects" href="FormDefines.html#CheckBoxPIC">
<area shape="rect" coords="376,178,438,195" alt=".NET specific defines" title=".NET specific defines" href="FormDefines.html#CheckBoxDotNET">
<area shape="rect" coords="451,178,491,195" alt="Kylix Open Edition" title="Kylix Open Edition" href="FormDefines.html#CheckBoxGPL">
<area shape="rect" coords="218,57,598,238" alt="Group Box Defined Compiler Symbols" title="Group Box Defined Compiler Symbols" href="FormDefines.html#GroupBoxCompilerSymbols">
<area shape="rect" coords="8,47,608,387" alt="Tab Compiler Settings" title="Tab Compiler Settings" href="FormDefines.html#TabSheetBefore">
<area shape="rect" coords="4,23,612,391" alt="Tab Compiler Settings" title="Tab Compiler Settings" href="FormDefines.html#TabSheetBefore">
</map>
<img src="Img3_FormDefines.png" alt="Image of the Window" usemap="#imagemap3" border="0"></div>
<h1>Documentation of the Components</h1>
<h2><a name="TabSheetBefore">Tab Compiler Settings</a></h2>
General options can be set for parsing the source code on this page, just like for a compiler. The compiler settings can also be loaded from a Delphi <code>.cfg/.conf</code> file and there is also an option to specify that these files should also be automatically loaded for every parser Delphi project.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckListBoxPre">Check List Box Compiler Option</a></h2>
All compiler options can be set here. By default this should be sensible values. These values will be set by default and if Auto-Parse is checked overridden by all set options in the <code>.cfg/.conf</code>-file of the parsed project (if available). After that the options on the third tab are applied if they are not set to be gray.<br>
These options are used only for conditional compiling, by using $IFOPT in comments within the source code. Only the state of $X will change the actual parsing, it will be queried to decide whether the automatic variable "Result" for the return value of functions has to be defined.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="GroupBoxCompilerSymbols">Group Box Defined Compiler Symbols</a></h2>
With this group of components the compiler symbols can be specified to be defined when starting to parse a source code file. These symbols can be used with $IFDEF and $IFNDEF or with DEFINED() after $IF in comments for conditional compiling of parts of the source code.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="RadioGroupVersion">Delphi Compiler Version</a></h2>
In this group box the version of the compiler/Delphi/Kylix can be set. The compiler symbol for the version of the compiler and several other version specific compiler symbols are added or removed for conditional compiling in the edit field beneath it.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckBoxConsole">Console Application</a></h2>
The compiler symbol for console applications can be defined with this check box.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckBoxPIC">Kylix's shared objects</a></h2>
The compiler symbol for when position independent code (PIC) is being compiled with Kylix for shared objects.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckBoxDotNET">.NET specific defines</a></h2>
Three .NET specific compiler symbols can be defined with with this check box. I don't know exactly what these mean, and so always all three are defined, but they are of course only available in Delphi for .NET:<br>
CLR: compiling for the Common Language Runtime (Microsoft .NET platform)<br>
CIL: Common Intermediate Language (CIL) code being generated<br>
MANAGEDCODE: .NET managed code being generated<br>
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckBoxGPL">Kylix Open Edition</a></h2>
The correct compiler symbol for the Kylix Open Edition can be defined with this check box. All with Kylix Open Edition created programs have to be released under the <a href="http://www.gnu.org/copyleft/gpl.html" class="external">GPL</a>, the <a href="http://www.gnu.org/" class="external">GNU</a> General Public License.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="EditPreDefs">Predefined Compiler Symbols</a></h2>
The list of predefined compiler symbols for conditional compiling can be set with this edit field. The components above it can also be used to change this edit field. It contains a simple comma separated list of the names of the symbols.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="CheckBoxAuto">Parsing .cfg/.conf-file of Projects</a></h2>
With this check box it can be set whether the <code>.cfg/.conf</code>-file of projects should be parsed. This is generally recommended.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="EditUnitAliases">Unit Aliases</a></h2>
Aliases of unit names within the "uses"-clauses, can be used to ease portability between different versions of Delphi (and Kylix) and different versions of libraries. They are defined exactly like in Delphi, each entry consists of the alias and separated by an equal sign the real unit name to use. The entries are separated by semicolons.<br>
Unaliasing only works twice, just like in Delphi, so recursively defining an alias on itself won't crash the program. But this can also be used to exchange two units by aliasing them on each other with an intermediary alias in between each of them. Of course this is just theoretical and not tested, neither in Delphi nor in this program.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="BitBtnLoadFromCFG">Load from .cfg/.conf</a></h2>
Load the config values from a project config file (<code>.cfg/.conf</code>) maintained by Delphi. Useful if files are used in a project that are not directly included in the project.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="BitBtnOK">OK</a></h2>
Closes the window and saves all compiler settings.
<div align="right"><a href="#X.top">top</a></div>
<h2><a name="X.Default" id="X.Default">No specific Help</a></h2>
Please see one of the contained components for a more specific help.
<div align="right"><a href="#X.top">top</a></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -