Commit Graph

181 Commits

Author SHA1 Message Date
juha
5d64e62ba7 Converter: implement the dummy source replacements using TSourceChangeCache.ReplaceEx. Fixes issue #23552
git-svn-id: trunk@41971 -
2013-07-02 16:14:59 +00:00
juha
c75d6e62dc Converter: correct file name for error message.
git-svn-id: trunk@41970 -
2013-07-02 16:14:53 +00:00
juha
219041d762 Converter: debug messages for the fall-bakc replacement.
git-svn-id: trunk@41968 -
2013-07-02 13:21:00 +00:00
juha
1cc1c541af Converter: do dummy string replacement for known problematic syntax when CodeTools raised an exception. Issue #23552
git-svn-id: trunk@41967 -
2013-07-02 12:57:31 +00:00
juha
c1af98e79a Converter: less verbosity
git-svn-id: trunk@41960 -
2013-07-01 23:33:25 +00:00
juha
bdc7156f0f Converter: backup also include files + minor refactoring.
git-svn-id: trunk@41946 -
2013-06-30 06:43:29 +00:00
juha
abfeceefbf Converter: use an existing string constant.
git-svn-id: trunk@41927 -
2013-06-27 16:04:17 +00:00
juha
21cba76a0d Converter: fix fPrevSelectedPath. Renaming vars.
git-svn-id: trunk@41760 -
2013-06-18 11:19:51 +00:00
juha
23ca7bd6a5 Converter: fix unit conversion in different situations. Issue #24527
git-svn-id: trunk@41736 -
2013-06-16 23:42:46 +00:00
juha
d4936c7bdc Converter: show settings dialog only once when converting many unit files. Improve settings GUI.
git-svn-id: trunk@41735 -
2013-06-16 23:42:42 +00:00
juha
96e7696f47 Converter: use a DefineTemplate for compiler mode "delphi" when converting single unit files.
git-svn-id: trunk@41734 -
2013-06-16 23:42:36 +00:00
juha
0f05e34b89 Converter: Search package and unit for missing component class only for project and package conversion. Issue #24527
git-svn-id: trunk@41730 -
2013-06-16 13:30:54 +00:00
juha
98aef1c568 Converter: cleanup + remove dead code
git-svn-id: trunk@41726 -
2013-06-16 12:15:49 +00:00
juha
66f27316e6 Converter: add to project/package also files without path definition in the main source file
git-svn-id: trunk@41725 -
2013-06-16 12:15:39 +00:00
juha
d746b1bcb4 Converter: improve error handling in package conversion the same way project conversion has
git-svn-id: trunk@41713 -
2013-06-14 13:45:37 +00:00
juha
673142547e Converter + codetools: try to find out why FInterfaceIdentifierCache is Nil sometimes in TFindDeclarationTool.FindIdentifierInInterface.
git-svn-id: trunk@41712 -
2013-06-14 13:45:12 +00:00
juha
93903dc029 Converter: move Application.ProcessMessages to better places.
git-svn-id: trunk@41701 -
2013-06-13 10:47:06 +00:00
juha
09a25e6d5f Converter: improve deleting files when LCL or LazUtils has a unit with same name.
git-svn-id: trunk@41671 -
2013-06-10 22:11:28 +00:00
juha
cfa52d59ed Converter: fix compilation
git-svn-id: trunk@41666 -
2013-06-10 14:42:06 +00:00
juha
cff5dd3116 Converter: optionally delete files in project dir if LCL has a unit with same name.
git-svn-id: trunk@41665 -
2013-06-10 14:32:53 +00:00
mattias
c2216e706e IDE: fixed uninitialized result
git-svn-id: trunk@41662 -
2013-06-10 11:16:07 +00:00
juha
ff691cadc3 Converter: save the log messages also to a file.
git-svn-id: trunk@41640 -
2013-06-09 19:18:11 +00:00
juha
90fc05b7ce Converter: optimize, use existing main file name.
git-svn-id: trunk@41601 -
2013-06-08 19:18:19 +00:00
juha
39efd79f55 Converter: fix errors in project conversion caused by recent changes.
git-svn-id: trunk@41600 -
2013-06-08 18:36:05 +00:00
juha
2fbada7281 Converter: Add a flag for "Register" procedure in a packages's unit.
git-svn-id: trunk@41595 -
2013-06-08 16:32:47 +00:00
juha
6c7d3d2d5b Converter: improve comments
git-svn-id: trunk@41590 -
2013-06-08 16:32:21 +00:00
juha
19d10cfdcb Converter: improve package conversion. It was broken.
git-svn-id: trunk@41575 -
2013-06-07 11:21:37 +00:00
mattias
35f0478c14 IDE: fixed compilation
git-svn-id: trunk@41555 -
2013-06-05 19:43:34 +00:00
juha
4699f52f94 Converter: get the main directory of project and package properly.
git-svn-id: trunk@41550 -
2013-06-05 16:57:43 +00:00
juha
18dec06fdd Converter: Use defines just like in Delphi when simulating Delphi7.
git-svn-id: trunk@41545 -
2013-06-05 10:53:22 +00:00
juha
f0211c4cf1 Converter: Option to simulate Delphi7 with defines. Also, add found unit during conversion only once.
git-svn-id: trunk@41538 -
2013-06-04 12:24:44 +00:00
juha
8761012e9c Less DebugLns to clutter Delphi conversion output. Fix also wrong method names in some DebugLns.
git-svn-id: trunk@41489 -
2013-06-02 10:19:41 +00:00
juha
4923cf00d8 Converter: take better care of exceptions during unit conversion.
git-svn-id: trunk@41487 -
2013-06-02 08:23:59 +00:00
juha
7ba5e2aae9 Converter: Convert form files (and finish unit files) even if there was an exception during unit conversion.
git-svn-id: trunk@41485 -
2013-06-01 16:55:30 +00:00
juha
da18117842 Converter: update DirectoryCache
git-svn-id: trunk@41484 -
2013-06-01 15:21:12 +00:00
juha
411a8864be Converter: identifier name changes
git-svn-id: trunk@41483 -
2013-06-01 15:21:07 +00:00
juha
5d1490e17c Converter: fix a special case when a VCL unit is copied to project directory. Somehow LCL dependency was not added.
git-svn-id: trunk@41427 -
2013-05-26 17:49:31 +00:00
juha
8ddfe52d9b Add "inherited Create;" to constructors for classes derived from TFileSearcher.
git-svn-id: trunk@41089 -
2013-05-09 11:52:17 +00:00
juha
fca96aeca6 Converter: save all files after conversion.
git-svn-id: trunk@40567 -
2013-03-17 11:36:36 +00:00
juha
1e6aba487f Converter: turn {$R *.RES} directive into a comment if the file does not exist
git-svn-id: trunk@40560 -
2013-03-16 16:34:15 +00:00
juha
a13843f26c Converter: add needed units to uses section automatically. A class in LCL can be in a different unit than in VCL. Issue #23900
git-svn-id: trunk@40558 -
2013-03-16 14:37:13 +00:00
juha
146edd9711 Converter: add the same package dependency only once
git-svn-id: trunk@39788 -
2013-01-06 22:23:48 +00:00
juha
4d015441b6 Converter: for units omitted from project, add Lazarus Package as a dependency
git-svn-id: trunk@39787 -
2013-01-06 19:18:38 +00:00
juha
47303e1f22 Converter: add a message about time used for the conversion
git-svn-id: trunk@39690 -
2012-12-29 22:32:35 +00:00
juha
62517a1978 Converter: find replacement also for units that are omitted from project (they have a valid Lazarus package). Improve messages
git-svn-id: trunk@39689 -
2012-12-29 22:32:30 +00:00
juha
c806da351b Converter: don't convert a unit if it was omitted in AddUnit method
git-svn-id: trunk@39688 -
2012-12-29 22:32:24 +00:00
juha
289e83d1dd Converter: fix a memory leak when converting a single unit.
git-svn-id: trunk@39670 -
2012-12-28 00:14:52 +00:00
juha
b7d905fbd8 Converter: reordering code
git-svn-id: trunk@39296 -
2012-11-18 11:41:34 +00:00
juha
2d498b4135 Converter: Use the path selected by user when searching for missing units. It used the same path always
git-svn-id: trunk@39294 -
2012-11-17 10:02:52 +00:00
juha
3fac3a3c41 Converter: move the implementation code so its location matches the definitions
git-svn-id: trunk@38920 -
2012-09-30 10:08:37 +00:00