[lazarus] Automatic Delphi unit conversion

Mattias Gaertner nc-gaertnma at netcologne.de
Wed Oct 15 17:09:13 EDT 2003


Hi all,

I have started the
Tools -> Convert Delphi unit to Lazarus unit

What it does:

- renames the .pas and .dfm file to lowercase.
- converts .dfm file to .lfm file (without check, just format)
- creates an empty .lrs file (the content will be created later)
- adds {$mode delphi} directive
- replaces windows unit with LCLIntf
- adds LResources unit if needed
- removes variants unit
- removes {$R *.dfm} directive
- adds initialization section and {$i unit.lrs} directive

ToDo:
- Call the "Check LFM" function and invoke the wizard (wizard is also
needed)
The Check LFM is already implemented. What is needed is a wizard to
delete/replace missing properties and classes.


Mattias






More information about the Lazarus mailing list