Commit Graph

223 Commits

Author SHA1 Message Date
juha
c7e0f334c6 Converter: Handle units in main and implementation uses sections separately. Includes patch from issue #17578.
git-svn-id: trunk@28062 -
2010-11-03 20:17:54 +00:00
juha
c4638cdf5f Converter: return mrCancel if there are missing include files.
git-svn-id: trunk@27664 -
2010-10-12 10:18:55 +00:00
juha
3e8bd589c2 Converter: Add SyntaxMode:='delphi' for packages.
git-svn-id: trunk@27663 -
2010-10-12 10:18:51 +00:00
mattias
025f786f34 IDE: converter: set Delphi mode as default
git-svn-id: trunk@27626 -
2010-10-08 18:59:38 +00:00
juha
21f7b82baf Converter: Add project's unit search paths as relative paths.
git-svn-id: trunk@27544 -
2010-10-02 14:00:39 +00:00
juha
207ed46b7d Converter: improve LCL path check dialog a little.
git-svn-id: trunk@27543 -
2010-10-02 07:26:17 +00:00
juha
2c1845b2bd Converter: Prevent opening file in editor when fixing include file names. (Scanner error when inc file not found).
git-svn-id: trunk@27537 -
2010-10-01 13:03:39 +00:00
juha
66596d10b6 Converter: Create TConvDelphiCodeTool just before it is needed.
git-svn-id: trunk@27529 -
2010-09-30 19:34:08 +00:00
mattias
5dd01ce874 codetools: CheckLFM: added boolean RootMustBeClassInUnit parameter
git-svn-id: trunk@27481 -
2010-09-26 20:30:24 +00:00
juha
2d04feec27 Converter: Settings GUI revamp and some refactoring.
git-svn-id: trunk@27451 -
2010-09-24 20:10:27 +00:00
juha
cd8b4c2c15 Converter: close the opened files after form file conversion. Closing earlier causes problems sometimes.
git-svn-id: trunk@27432 -
2010-09-22 09:06:08 +00:00
juha
a5821d352a Converter: improve opening / closing files.
git-svn-id: trunk@27431 -
2010-09-22 06:34:42 +00:00
juha
2c86da69b2 Converter: open main source file in editor, added option to keep all project files open.
git-svn-id: trunk@27427 -
2010-09-21 15:19:00 +00:00
juha
ba3538c8d3 Converter: improve logic and GUI for different conversion targets.
git-svn-id: trunk@27407 -
2010-09-18 10:11:45 +00:00
juha
65ac083be2 Converter: Convert also DFM form file to ascii format if it is used for Lazarus.
git-svn-id: trunk@27401 -
2010-09-17 22:19:25 +00:00
juha
b99dd8a8ef Converter: DFM form file can be used for both Delphi and Lazarus.
git-svn-id: trunk@27399 -
2010-09-17 21:08:18 +00:00
juha
f42d3f84d8 Converter: minor cleanup.
git-svn-id: trunk@27385 -
2010-09-16 12:19:03 +00:00
juha
8e3631c047 Converter: cache unit paths using OnIdle handler.
git-svn-id: trunk@27384 -
2010-09-16 12:18:59 +00:00
mattias
ed6f7d9f76 IDE: converter: fixed deprecated
git-svn-id: trunk@27361 -
2010-09-14 15:53:38 +00:00
juha
e1ba658ec6 Converter: implemented fully the coordinate offsets. GUI improvements.
git-svn-id: trunk@27346 -
2010-09-13 09:37:06 +00:00
juha
f3fec16c04 Converter: add a single converted unit to file history menu.
git-svn-id: trunk@27345 -
2010-09-13 09:37:00 +00:00
juha
55bb3e8ffe Converter: Load a unit to editor in a different way.
git-svn-id: trunk@27330 -
2010-09-12 13:38:38 +00:00
juha
2581056c23 Converter: Improve single unit file conversion. Load and save it properly.
git-svn-id: trunk@27329 -
2010-09-12 11:16:05 +00:00
juha
18f2e518a3 Converter: fixed reading a nil variable.
git-svn-id: trunk@27292 -
2010-09-10 15:25:26 +00:00
juha
4c8d3d791b Converter: improved GUI and added options for settings. Cleanup.
git-svn-id: trunk@27291 -
2010-09-10 15:04:48 +00:00
juha
20ce4bc26e Converter: Implemented adding offset to Top coord for components in visual container components. +GUI.
git-svn-id: trunk@27286 -
2010-09-09 09:41:21 +00:00
juha
b7d60cf5dd Converter: Minor change to make code shorter.
git-svn-id: trunk@26843 -
2010-07-26 22:55:05 +00:00
juha
60d84c8bf0 Converter: improved function replacement with categories. Added more UTF8 functions.
git-svn-id: trunk@26720 -
2010-07-17 20:58:58 +00:00
juha
b914b9f22d Converter: Initial wersion to replace Delphi functions with FCL/LCL functions.
git-svn-id: trunk@26498 -
2010-07-07 11:45:28 +00:00
juha
8883029d78 Converter: Make it easier to open a partially converted .lpr project.
git-svn-id: trunk@26497 -
2010-07-07 11:45:20 +00:00
juha
4825567e0d Converter: Don't replace Windows unit if target is "Windows only".
git-svn-id: trunk@26369 -
2010-06-30 20:59:12 +00:00
juha
5f5c540897 Converter: comments and cleanup.
git-svn-id: trunk@26356 -
2010-06-30 15:53:20 +00:00
juha
4755ecab2b Converter: Treat a console application in a special way.
git-svn-id: trunk@26355 -
2010-06-30 15:53:15 +00:00
juha
9e1d9075fb Converter: Better title for unit replacement grid.
git-svn-id: trunk@26345 -
2010-06-30 09:53:56 +00:00
juha
47e48c80c5 Converter: New setting for interactive / automatic replacement of used units. Refactoring.
git-svn-id: trunk@26126 -
2010-06-15 08:24:29 +00:00
juha
c87d37f6a1 Converter: Add package dependency to project.
git-svn-id: trunk@26122 -
2010-06-15 08:24:09 +00:00
juha
203c81a648 Converter: Reduce parameters to ConvCodeTool.
git-svn-id: trunk@26121 -
2010-06-15 08:24:04 +00:00
juha
6697f885f6 Converter: AddUnit function is not needed for Packages after all -> remove.
git-svn-id: trunk@26103 -
2010-06-14 07:35:36 +00:00
juha
be5ea84897 Converter: refactoring, extract identical code into a function.
git-svn-id: trunk@26102 -
2010-06-14 07:35:29 +00:00
mattias
a65477c638 IDE: clean up
git-svn-id: trunk@26081 -
2010-06-13 11:50:22 +00:00
juha
c396d09428 Converter: convert also units added to project during conversion.
git-svn-id: trunk@26079 -
2010-06-13 11:25:35 +00:00
juha
82b4690c18 Converter: Fix an error from earlier commit.
git-svn-id: trunk@25947 -
2010-06-06 09:52:42 +00:00
juha
69a213cd8d Converter: Den't rename unit files to lowercase, change the name in uses section instead.
git-svn-id: trunk@25938 -
2010-06-05 23:24:29 +00:00
martin
720381e689 Delphi-converter: Fixed mem leaks
git-svn-id: trunk@25084 -
2010-04-30 23:49:25 +00:00
mattias
0dffe43cf2 IDE: clean up
git-svn-id: trunk@24597 -
2010-04-12 11:14:09 +00:00
juha
56e426c037 Converter: Cleanup.
git-svn-id: trunk@24594 -
2010-04-12 08:29:51 +00:00
juha
b81f0445eb Converter: Regexp syntax for used unit replacements. Refactoring code for it.
git-svn-id: trunk@24576 -
2010-04-11 11:39:54 +00:00
juha
70b2f4f640 Improved messages. Don't save project before fixing form files after all.
git-svn-id: trunk@24552 -
2010-04-10 11:44:59 +00:00
juha
1de8262018 Converter: Better fall-back replacement types. Minor changes.
git-svn-id: trunk@24551 -
2010-04-10 11:44:50 +00:00
juha
cc4e4f5b3b Converter: Improved messages, added Application.ProcessMessages to show them in real time.
git-svn-id: trunk@24544 -
2010-04-09 22:03:46 +00:00
juha
b0e764ffa6 Converter: Rename project's files to lowercase. Use HourGlass cursor for long operations. Etc...
git-svn-id: trunk@24537 -
2010-04-09 15:05:08 +00:00
juha
70bba5faca Converter: fix renaming units with wrong casing. Needed in case-sensitive file systems.
git-svn-id: trunk@24496 -
2010-04-08 10:47:12 +00:00
juha
b03f1d9fb6 Converter: Allow configurable unit name changes in Uses section. Refactoring.
git-svn-id: trunk@24354 -
2010-04-01 13:25:48 +00:00
martin
824a3c686c IDE, Project: Refactor: extracted editor session info from UnitInfo
git-svn-id: trunk@24324 -
2010-03-31 22:32:24 +00:00
juha
970e7d1bcd Converter: Stay with the same unit after user cancels the search dir dialog.
git-svn-id: trunk@24314 -
2010-03-31 14:21:30 +00:00
juha
3e9808f2c7 Converter: Remember previous search path for missing units. Var name changes.
git-svn-id: trunk@24313 -
2010-03-31 14:21:25 +00:00
juha
29406db1a2 Converter: Remove annoying messagebox when part of the units were found.
git-svn-id: trunk@24307 -
2010-03-31 07:51:11 +00:00
juha
f9cad14768 Converter: Show missing units in a CheckListBox and let user select them.
git-svn-id: trunk@24304 -
2010-03-30 22:39:26 +00:00
juha
699d0d13ba Make "convert DFM" menu text more truthful. Improve and refactor its code.
git-svn-id: trunk@24265 -
2010-03-28 16:52:56 +00:00
juha
43d6c3245c Unify codebuffer variable names.
git-svn-id: trunk@24240 -
2010-03-27 11:11:35 +00:00
juha
afdba5afae Converter: for Delphi compat, copy .dfm to .lfm and add IFDEF for compilation.
git-svn-id: trunk@24222 -
2010-03-26 14:34:25 +00:00
juha
07f218abd9 Converter: Let Delphi use missing units instead of commenting them out.
git-svn-id: trunk@24184 -
2010-03-23 16:14:33 +00:00
juha
a1ba019bb2 Implemented replacing properties and class types in form files.
git-svn-id: trunk@24155 -
2010-03-21 22:06:01 +00:00
juha
dd1dc0c198 Refactoring and finetuning for missing properties dlg.
git-svn-id: trunk@23987 -
2010-03-14 08:03:03 +00:00
juha
5eac2d3633 Initial version of missing properties fixer.
git-svn-id: trunk@23803 -
2010-02-27 15:05:53 +00:00
juha
2e04a02ac4 Added convert target radiobuttons and Lazarus for Windows target.
git-svn-id: trunk@23799 -
2010-02-26 20:00:42 +00:00
juha
3ecf31a967 Conditional compilation for Delphi / LCL.
git-svn-id: trunk@23796 -
2010-02-26 10:58:11 +00:00
juha
b33ff9af8f Removed .lrs resource support and replaced it with FPC resources (Delphi compatible)
git-svn-id: trunk@23790 -
2010-02-25 15:37:52 +00:00
juha
9f7ad44770 Improve source conversion. Edits in uses section are first collected to lists.
git-svn-id: trunk@23784 -
2010-02-25 02:19:24 +00:00
juha
5d118994a9 Moved Delphi source conversion from codetools to new ConvCodeTool unit. Include .RES to .res patch.
git-svn-id: trunk@23764 -
2010-02-23 09:35:20 +00:00
juha
02d3747e5f Improved error messages and error handling.
git-svn-id: trunk@23733 -
2010-02-18 20:15:00 +00:00
juha
0fd87127ff Improved single unit conversion.
git-svn-id: trunk@23731 -
2010-02-18 13:23:36 +00:00
juha
549a1a5533 Refactored and improved converter files.
git-svn-id: trunk@23727 -
2010-02-17 17:02:34 +00:00