Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-10

Automatic Delphi unit conversion

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner

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

Reply by email