Sign in Join

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

Mailing lists / lazarus / 2013-05

Converting multiple files from Delphi to Lazarus.

6 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

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

Daniel Gaspary

I need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project.

Is there a way to automate the process ?

Calling the lazarus conversion menu item via script could be a good option. Is it possible today?

Thank you.

Reply by email

Juha Manninen
to Daniel Gaspary
Daniel Gaspary wrote
I need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project.

There is only the conversion from binary .dfm to text .lfm for pure form files. Is that what you need?

If you convert a pascal unit then the form file is also converted. If they belong to a project, they will all be converted together with it.

You can already now select many files in the open dialog. Did you try it? Otherwise you must improve the UI yourself and maybe provide a patch.

Juha

Reply by email

Daniel Gaspary
to Juha Manninen
Juha Manninen wrote
There is only the conversion from binary .dfm to text .lfm for pure form files. Is that what you need?

Yes.

You can already now select many files in the open dialog. Did you try it?

No. This solved my problem, thanks.

Otherwise you must improve the UI yourself and maybe provide a patch.

There room for improvement. The confirmation dialog after each file is converted is really annoying when the number of files is big.

Maybe a dialog where you can specify a different destination dir.

I will think about these and other ideas when I have some free time.

Thank you, Juha

Reply by email

Juha Manninen
to Daniel Gaspary
Daniel Gaspary wrote
There room for improvement. The confirmation dialog after each file is converted is really annoying when the number of files is big.

This is true.
I have mostly tested project conversion and then I typically open one GUI logic must be changed.

Juha

Reply by email

Schindler Karl-Michael
Show quoted text 15 lines
From: Daniel Gaspary Subject: [Lazarus] Converting multiple files from Delphi to Lazarus. To: Lazarus mailing list Message-ID: I need to convert a lot of .DFM files to .lfm . Just the form files, not the entire project. Is there a way to automate the process ? Calling the lazarus conversion menu item via script could be a good option. Is it possible today? Thank you.

There is the XDev Toolkit at http://wiki.freepascal.org/XDev_Toolkit which includes the commandline tool DfmToLfm. Maybe that helps you.

Michael.

Reply by email