Lazarus Build Dialog additions
Original Reporter info from Mantis: ggeldenhuys
-
Reporter name: Graeme Geldenhuys
Original Reporter info from Mantis: ggeldenhuys
- Reporter name: Graeme Geldenhuys
Description:
The TargetCPU combobox was not populated in Lazarus Build Dialog. There also wasn't an option for TargetProcessor. Both these options are available in Project > Compiler Options, but not in Lazarus build dialog.
The attached patch contains the following changes.
* Lazarus form designer generated a lot of noise so the patch file got huge. So I include the complete *.lfm, *.pas and *.lrs files if you wanted to do a manual comparison of changes.
* Target CPU combobox is now populate the same as Project > Compiler Options dialog.
* Target Processor combobox has been added and populated the same as Project > Compiler Options dialog.
* Re-aligned the labels in LazBuildDlg to be centered with their subject components (TEdit or TComboBox)
* New settings get saved and loaded in xml file like all other settings.
* TargetOS and TargetProcessor now use the same resource string as the one in Project > Compiler Options.
* Removed the unused resource strings from LazBuildDlg.
* Moved ProcessorToCaption() and CaptionToProcessor() to a common unit IDEProcs, so they can be shared between CompilerOptionsDlg and LazBuildDlg. I did not want to introduce code duplication.
Notes:
TargetProcessor is now a property of GlobalOptions (same as TargetOS and TargetCPU), but I'm not sure how to pass that option to IDE Packages. So left it at that, for someone more knowledgeable to pass that new option along to IDE Packages.
Mantis conversion info:
- Mantis ID: 13941
- OS: Ubuntu Linux
- OS Build: 7.10
- Build: latest svn
- Platform: x86
- Version: 0.9.27 (SVN)
- Fixed in revision: 27901 (#f7e017a6)
- Target version: 1.4