Martin Wynne
Admin
- Location
- West of the Severn UK
- Info
This topic is about the internal programming of Templot. If you are interested only in using Templot, this topic can be ignored.
Here are the first 8 Delphi5 files open-sourced on 25th May 2024 from Templot2 version 244d.
keep_select.pas is the storage box and includes the BOX file functions. edit see later:
A note about identifiers. Pascal is case-insensitive, but for Delphi's own identifiers I normally use CamelCase. For Templot's identifiers I use lower_case_with_underscores. e,g.
declarations for pen_width and counter_str would be found in the Templot units.
declarations for Pen and IntToStr() will be found in the Delphi library units.
These are all text-based files. Your browser may open them directly. To prevent that, right-click on them and click Save target as...
More soon, there are a lot more yet.![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Martin.
Here are the first 8 Delphi5 files open-sourced on 25th May 2024 from Templot2 version 244d.
licence.txt contains the open-source licence.
OpenTemplot2024.dpr is the main program wrapper, containing a list of all the unit files and the startup code.
control_room.pas is the program panel. This is the program's main form -- closing this form (window) quits the program.
control_room.dfm
bgnd_unit.pas contains the background shapes functions, including the timbering brick assemblers, and BGS3 file functions.
bgnd_unit.dfm
keep_select.dfm
The origins of some of the file names are lost in the mists of time, and ceased to be entirely meaningful as the program developed over the years. Originally a background template was called a "keep", and this term is still used in many places in the code.A note about identifiers. Pascal is case-insensitive, but for Delphi's own identifiers I normally use CamelCase. For Templot's identifiers I use lower_case_with_underscores. e,g.
Code:
Pen.Width:=pen_width;
counter_str:=IntToStr(counter);
declarations for pen_width and counter_str would be found in the Templot units.
declarations for Pen and IntToStr() will be found in the Delphi library units.
These are all text-based files. Your browser may open them directly. To prevent that, right-click on them and click Save target as...
More soon, there are a lot more yet.
Martin.
Attachments
message ref: 11279