Commit Graph

559 Commits

Author SHA1 Message Date
juha
599ff107ba Converter: stop the scanning thread also when Cancel is clicked
git-svn-id: trunk@38364 -
2012-08-25 05:26:14 +00:00
juha
dbb987ca5b Converter: refactor the code for background file scanning
git-svn-id: trunk@38358 -
2012-08-24 18:52:02 +00:00
juha
da3f78a531 Converter: Allow user to stop the directory scan in settings window
git-svn-id: trunk@38352 -
2012-08-23 20:30:43 +00:00
juha
20131f3434 Converter: Show a ProgressBar in settings window when parent dir is scanned. Refactor code.
git-svn-id: trunk@38344 -
2012-08-23 06:21:58 +00:00
juha
11a9424522 Converter: Treat also Wintypes and Winproc units as Windows specific when converting for multi-platform. Issue #22677
git-svn-id: trunk@38343 -
2012-08-23 06:21:49 +00:00
juha
d50b5d1cd8 Converter: Improve IsRootPath function. Issue #22630, patch from Bart Broersma
git-svn-id: trunk@38290 -
2012-08-20 21:59:21 +00:00
juha
8297ee1f08 Sort ListViews by column click around in many places.
git-svn-id: trunk@38289 -
2012-08-20 18:05:46 +00:00
juha
3ab146851e Converter: Don't scan the system root directory for pascal sources. Issue #22630, patch from Bart Broersma
git-svn-id: trunk@38276 -
2012-08-19 19:40:57 +00:00
juha
9f602bf564 Converter: Fix function replacement to handle nested brackets correctly. Issue #22537
git-svn-id: trunk@38273 -
2012-08-18 12:33:39 +00:00
juha
f6f3d00b54 Converter: improve comments
git-svn-id: trunk@38272 -
2012-08-18 12:33:35 +00:00
juha
bb2fd0e106 Converter: Map more Delphi types to LCL types. Issue #22631, patch from Ocean
git-svn-id: trunk@38268 -
2012-08-18 07:51:48 +00:00
juha
ee02cf6a72 Converter: improve handling of errors and error messages
git-svn-id: trunk@37682 -
2012-06-17 23:21:38 +00:00
juha
7c90c81de5 Converter: refactoring and improved error handling + other fixes
git-svn-id: trunk@37675 -
2012-06-17 19:47:13 +00:00
juha
4098afbcb6 Converter: fix compilation of r37646 #d91c978a4d
git-svn-id: trunk@37648 -
2012-06-14 18:02:37 +00:00
juha
d91c978a4d Converter: Call FixIncludeFiles before parsing the source.
git-svn-id: trunk@37646 -
2012-06-14 17:51:25 +00:00
juha
292f804353 Converter: add used unit replacements for database units.
git-svn-id: trunk@37272 -
2012-05-13 19:36:35 +00:00
juha
426c1d5525 Converter: add database connection components as default types to replace
git-svn-id: trunk@37271 -
2012-05-13 17:33:22 +00:00
juha
141260a23a Converter: Improve converting TabbedNotebook to TPageControl.
git-svn-id: trunk@37270 -
2012-05-13 17:08:41 +00:00
juha
87c52f9c5e Converter: cleanup
git-svn-id: trunk@37269 -
2012-05-13 17:08:31 +00:00
juha
19f3fb1b76 Converter: add support for $autoinc syntax in type replacements.
git-svn-id: trunk@37268 -
2012-05-13 17:08:25 +00:00
juha
3cc9256141 Converter: Add more default types to replace.
git-svn-id: trunk@37261 -
2012-05-12 18:59:29 +00:00
maxim
e0fcfe75fe Converter: fixed 'Missing units' dialog localization, part of bug #21784
git-svn-id: trunk@36888 -
2012-04-17 21:07:36 +00:00
mattias
3e852e27be IDE: converter: fixed checking if source is unit
git-svn-id: trunk@36486 -
2012-03-31 17:23:58 +00:00
juha
b54ecafd13 IDE: Change {*.dfm} to {*.lfm} when renaming a unit (Save As). Finally fixes #21492.
git-svn-id: trunk@36381 -
2012-03-27 11:54:40 +00:00
juha
2510694d18 Converter: make TConvDelphiCodeTool.RenameResourceDirectives public. New Constuctor for TConvDelphiCodeTool.
git-svn-id: trunk@36373 -
2012-03-27 07:34:38 +00:00
maxim
9381915a84 IDE: improved Delphi converter localization
git-svn-id: trunk@36098 -
2012-03-16 23:40:16 +00:00
mattias
3e9e907062 IDE: switched to new laz2_xml
git-svn-id: trunk@35937 -
2012-03-13 20:55:43 +00:00
juha
a0fb17b27e IDE: Unite duplicate (single word) resourcestrings and name them consistently.
git-svn-id: trunk@35486 -
2012-02-19 15:50:48 +00:00
juha
2550bbf3be IDE: unify some common resource strings. Add hints for Path Edit dialog
git-svn-id: trunk@35361 -
2012-02-13 19:57:58 +00:00
juha
4ef51619f5 IDE: collect common resource strings in one place, remove duplicates
git-svn-id: trunk@35321 -
2012-02-12 13:04:36 +00:00
juha
fef0a4ab76 Converter: minor changes
git-svn-id: trunk@35005 -
2012-01-29 08:43:14 +00:00
mattias
595b29af86 IDE: fixed typo
git-svn-id: trunk@34806 -
2012-01-19 22:06:56 +00:00
mattias
ba97db223f IDE: change lazarus dir, fixed reloading lpl, reload lpk in topological order
git-svn-id: trunk@33183 -
2011-10-30 18:17:19 +00:00
maxim
817a369269 Components, converter, debugger, doceditor: third batch of TButtonPanel captions cleanup
git-svn-id: trunk@32664 -
2011-10-03 22:48:51 +00:00
juha
52c7ea4dad LCL: Implement a rudimentary ValueListEdit. A redraw problem must be solved.
git-svn-id: trunk@32585 -
2011-10-01 14:28:47 +00:00
mattias
5fec1dbe91 IDE: activated new xml units
git-svn-id: trunk@32302 -
2011-09-12 21:12:49 +00:00
juha
9b6a97e013 Converter: Set Win32GraphicApp flag for GUI applications.
git-svn-id: trunk@31942 -
2011-08-11 13:47:05 +00:00
juha
c56a916203 Converter: show an error message if user tries to open a .dproj file. Inspired by issue #19793
git-svn-id: trunk@31879 -
2011-08-05 17:40:37 +00:00
juha
81fef95622 Converter: attempt to fix issue #19794
git-svn-id: trunk@31875 -
2011-08-05 13:25:16 +00:00
juha
6f1f96cd10 Converter: fix broken layout in setting dialog.
git-svn-id: trunk@31794 -
2011-07-24 08:51:39 +00:00
juha
431fc6672a Converter: improved package conversion on Linux + removed a useless QuestionDlg.
git-svn-id: trunk@31793 -
2011-07-24 08:32:03 +00:00
mattias
6c627a9624 IDE: clean up
git-svn-id: trunk@31211 -
2011-06-14 10:29:29 +00:00
juha
353c186df3 Converter: don't leave an empty row to end of grids. It will be added automatically with "Down" button on last line.
git-svn-id: trunk@31098 -
2011-06-05 12:53:24 +00:00
juha
2e9c1e7401 Converter: cleanup
git-svn-id: trunk@31097 -
2011-06-05 12:32:24 +00:00
mattias
3f98f11cda IDE: clean up
git-svn-id: trunk@31088 -
2011-06-05 08:17:45 +00:00
juha
76c27fe938 Converter: Remove the experimental FixEncoding checkbox from settings dialog
git-svn-id: trunk@31024 -
2011-06-03 16:19:23 +00:00
juha
ba43bbf08f Converter: change the character encoding of source files to UTF-8
git-svn-id: trunk@31023 -
2011-06-03 16:19:19 +00:00
mattias
da38b23e31 IDE: change encoding: fixed crash on load failed
git-svn-id: trunk@31016 -
2011-06-02 19:35:06 +00:00
mattias
7cb84fa4ec IDE: change encoding: fixed searching in first source directory
git-svn-id: trunk@31015 -
2011-06-02 19:16:35 +00:00
juha
657c9e5726 Converter: Try to change character encoding of Delphi sources to UTF-8
git-svn-id: trunk@31013 -
2011-06-02 17:41:17 +00:00
juha
8aee963046 Converter: improve ChkEncodingDlg
git-svn-id: trunk@31000 -
2011-06-01 15:08:20 +00:00
mattias
3b9b3f2172 IDE: clean up
git-svn-id: trunk@30998 -
2011-06-01 11:19:55 +00:00
juha
e41d0bfaf5 Converter: fix a memory-leak in ChgEncodingDlg
git-svn-id: trunk@30982 -
2011-05-30 22:15:42 +00:00
juha
40268c8c26 Converter: Minor formatting change in ChgEncodingDlg
git-svn-id: trunk@30980 -
2011-05-30 22:05:25 +00:00
juha
fc16068b00 Converter: improve error situation handling
git-svn-id: trunk@30955 -
2011-05-29 09:15:59 +00:00
juha
6909f63d5d Converter: cleanup MissingUnits dialog
git-svn-id: trunk@30851 -
2011-05-22 09:37:44 +00:00
juha
56e2f0964b Converter: improve localization in MissingUnits dialog
git-svn-id: trunk@30850 -
2011-05-22 09:37:40 +00:00
juha
79fe106543 Converter: Allow sorting some grids.
git-svn-id: trunk@30826 -
2011-05-20 08:35:25 +00:00
juha
2033bf7f2f Converter: Use the new feature of StringGrid for adding automatically new rows.
git-svn-id: trunk@30815 -
2011-05-19 17:34:15 +00:00
juha
583c3d0961 Converter: allow sorting by column click in ReplaceFuncsForm
git-svn-id: trunk@30634 -
2011-05-09 08:28:21 +00:00
juha
3d7f3c8fe5 Converter: A unit was sometimes added to uses section although it was already in "LCL" section of the uses section.
git-svn-id: trunk@30511 -
2011-04-30 13:33:28 +00:00
juha
e002cb4bc6 Converter: Respect the "use same dfm" setting properly + clean RenameResourceDirectives code
git-svn-id: trunk@30510 -
2011-04-30 13:33:25 +00:00
juha
37468b82a4 Converter: Revert accidentally committed "temp"
git-svn-id: trunk@30131 -
2011-04-02 11:17:59 +00:00
juha
261ca17874 Converter: add dglOpenGL to default units to be replaced
git-svn-id: trunk@30130 -
2011-04-02 11:13:45 +00:00
juha
da1729de31 Converter: Code formatting and cleaning
git-svn-id: trunk@30129 -
2011-04-02 11:13:41 +00:00
juha
3b73383835 Converter: add the user selected path also to project's include path.
git-svn-id: trunk@30128 -
2011-04-02 11:13:38 +00:00
juha
6360cc141b Converter: move the message about unit conversion to beginning of the conversion.
git-svn-id: trunk@30127 -
2011-04-02 11:13:35 +00:00
juha
11facd56f9 Converter: Cleanup
git-svn-id: trunk@30125 -
2011-04-02 11:13:29 +00:00
juha
de5ed19263 temp
git-svn-id: trunk@30124 -
2011-04-02 11:13:25 +00:00
juha
8b7d161446 Converter fix: Disabling a function replacement category was not respected.
git-svn-id: trunk@30020 -
2011-03-26 18:32:04 +00:00
mattias
77566ccf65 codetools: implemented scanning units in smaller chunks and successive scanning without deleting nodes
git-svn-id: trunk@29769 -
2011-03-09 20:52:44 +00:00
juha
f6f3232298 Converter: Add a Skip button to Missing Units dialog and support Skip and Abort correctly.
git-svn-id: trunk@29608 -
2011-02-19 14:32:53 +00:00
juha
e8002ff5cb Converter: Cleanup
git-svn-id: trunk@29607 -
2011-02-19 14:32:48 +00:00
juha
29469237ae Converter: Set IsConsoleApp in a different place to avoid AV.
git-svn-id: trunk@29527 -
2011-02-13 15:05:15 +00:00
juha
d35aef1e38 Converter: improve setting IsMainFile and IsConsoleApp properties.
git-svn-id: trunk@29517 -
2011-02-13 12:25:21 +00:00
juha
d1c893c176 Converter: Conditional compilation to allow commenting missing units automatically.
git-svn-id: trunk@29514 -
2011-02-13 12:04:55 +00:00
juha
2e2e795109 Converter: improve reporting missing units.
git-svn-id: trunk@29513 -
2011-02-13 12:04:52 +00:00
juha
c7bbbd33c1 Converter: Don't complain about missing units in the project .dpr file.
git-svn-id: trunk@29504 -
2011-02-13 09:54:02 +00:00
juha
8cf2c6b279 Converter: refactor so that IsMainFile is set before it is used.
git-svn-id: trunk@29495 -
2011-02-12 20:27:06 +00:00
juha
f26b21daea Converter: Experiment with removing and adding used units.
git-svn-id: trunk@29494 -
2011-02-12 20:27:02 +00:00
juha
c88be7daf5 Converter: Don't fix case of a unit name that gets replaced.
git-svn-id: trunk@29493 -
2011-02-12 20:26:59 +00:00
mattias
53680baba2 IDE: fixed compilation by breaking a unit circle
git-svn-id: trunk@29466 -
2011-02-11 15:29:27 +00:00
juha
f0f24c280f Converter: Omit some unit names from project. Settings GUI improvements. Refactoring.
git-svn-id: trunk@29452 -
2011-02-10 12:58:50 +00:00
juha
2cc34a70cb Converter: Support '\' PathDelim in project files on Linux. It used to work but some other change broke it.
git-svn-id: trunk@29404 -
2011-02-06 22:26:00 +00:00
juha
d646000f6b Converter: Change package LCLBase to LCL, returned from FindUnitInAllPackages. Improve IDE messages.
git-svn-id: trunk@29395 -
2011-02-05 13:02:33 +00:00
juha
f714457e24 Converter: Try to improve Multi-Platform conversion on Windows.
git-svn-id: trunk@29389 -
2011-02-05 10:00:53 +00:00
juha
0ac4afc64a Converter: define LCLIntf unit dependency for 2 replacement functions.
git-svn-id: trunk@29388 -
2011-02-05 10:00:49 +00:00
juha
57a280722d Converter: Change sLineBreak to LineEnding for consistency.
git-svn-id: trunk@29387 -
2011-02-05 10:00:46 +00:00
juha
2a4bd6006c Converter: cleanup
git-svn-id: trunk@29386 -
2011-02-05 10:00:41 +00:00
juha
4f8d7a9757 Converter: Another revamp of settings GUI
git-svn-id: trunk@29377 -
2011-02-04 17:56:01 +00:00
juha
b19a97be58 Converter: cleanup.
git-svn-id: trunk@29374 -
2011-02-04 08:56:58 +00:00
juha
e187934649 Converter: improved and refactored lfm form file conversion, coordinate offsets and added properties.
git-svn-id: trunk@29346 -
2011-02-03 09:29:54 +00:00
juha
9d296783e5 Converter: Fix a unit for a replacement function.
git-svn-id: trunk@29345 -
2011-02-03 09:29:50 +00:00
juha
84096b8454 Converter: rewritten lfm file conversion and moved to a new unit. Coordinate offs + added properties.
git-svn-id: trunk@29342 -
2011-02-03 08:39:08 +00:00
mattias
19c0b3a5a2 codetools: always parse class nodes
git-svn-id: trunk@29336 -
2011-02-02 19:33:04 +00:00
juha
1736b35b33 Converter: Replace TRichEdit with TMemo for now.
git-svn-id: trunk@29205 -
2011-01-26 09:47:25 +00:00
juha
f28228769d Converter: Disable adding cthreads dependency for now.
git-svn-id: trunk@29204 -
2011-01-26 08:20:34 +00:00
juha
ea6083c980 Converter: Add cthreads only if not added already.
git-svn-id: trunk@29162 -
2011-01-22 16:01:10 +00:00
juha
5c4d059729 Converter: better OpenGL replacements.
git-svn-id: trunk@29161 -
2011-01-22 16:01:06 +00:00
juha
bbf5a4f50a Converter: improve function call replacement, allow any text in replacement parameters.
git-svn-id: trunk@29160 -
2011-01-22 16:01:03 +00:00
juha
d80fadfa54 Converter: Add thread support, insert cthreads in main unit's uses section.
git-svn-id: trunk@29066 -
2011-01-17 10:57:56 +00:00
juha
769e36bac2 Converter: Remove some useless reader properties.
git-svn-id: trunk@29065 -
2011-01-17 10:57:52 +00:00
juha
0a6effa6d7 Converter: fix for a wrongly cased unit name.
git-svn-id: trunk@29064 -
2011-01-17 10:57:49 +00:00
juha
d1a5dcbcc9 Converter: cleanup + formatting of comments.
git-svn-id: trunk@29063 -
2011-01-17 10:57:45 +00:00
juha
35bbe39761 Converter: fix duplicate addition of some units.
git-svn-id: trunk@29046 -
2011-01-15 23:06:03 +00:00
juha
ec45ce552b Converter: add more required units and their package dependencies.
git-svn-id: trunk@29045 -
2011-01-15 23:05:59 +00:00
juha
c2a6229bf5 Converter: Set replacement TRichEdit -> TRichMemo
git-svn-id: trunk@29010 -
2011-01-14 17:22:06 +00:00
juha
1bcab3ce5d Converter: improve unit addition and replacement for different targets.
git-svn-id: trunk@29009 -
2011-01-14 17:22:02 +00:00
juha
b1cd52fbed Converter: Add unit name required by a replaced function call to uses section.
git-svn-id: trunk@28971 -
2011-01-12 12:45:02 +00:00
juha
ca4fb99240 Converter: FindUnitCaseInsensitive is fixed, remove workaround. Leave a local FindMissingUnits for better control.
git-svn-id: trunk@28931 -
2011-01-10 11:17:57 +00:00
juha
2cf15714e5 Converter: improve a message little.
git-svn-id: trunk@28919 -
2011-01-09 12:02:46 +00:00
juha
45134ce005 Converter: workaround for FindUnitCaseInsensitive reporting only 1 instance of missing unit with different casing.
git-svn-id: trunk@28918 -
2011-01-09 12:02:42 +00:00
juha
da3a1c47cd Converter: Fix function call replacement when a parameter has typecast or is another func call.
git-svn-id: trunk@28872 -
2011-01-06 11:53:42 +00:00
juha
cfa9c9c875 Converter: replace some OpenGL units and functions in default settings.
git-svn-id: trunk@28870 -
2011-01-05 14:06:43 +00:00
mattias
7cc2d96db6 IDE: clean up
git-svn-id: trunk@28799 -
2010-12-22 09:17:49 +00:00
juha
8ff8637855 Converter: add a comment.
git-svn-id: trunk@28758 -
2010-12-18 10:00:29 +00:00
juha
c6415cbcb8 Converter: Add Interfaces section to right place when Delphi target is supported. Fixes issue #18023.
git-svn-id: trunk@28727 -
2010-12-16 12:44:38 +00:00
juha
be513b35da Converter: fix comments in UsedUnits.
git-svn-id: trunk@28686 -
2010-12-11 16:48:27 +00:00
juha
fb8b6e7761 Converter: Add project / package name to settings title. Patch from Tomasz Wieckowski.
git-svn-id: trunk@28673 -
2010-12-10 20:27:04 +00:00
juha
fdaaeb6f3f Converter: more unit names to convert automatically.
git-svn-id: trunk@28671 -
2010-12-10 19:58:29 +00:00
juha
1d89fbe3ce Converter: Major refactoring for missing units handling and some other parts.
git-svn-id: trunk@28670 -
2010-12-10 19:58:25 +00:00
juha
b0e9603a53 Converter: Missing units handling refactored to a new unit.
git-svn-id: trunk@28669 -
2010-12-10 19:37:40 +00:00
mattias
9fa173599a IDE: clean up
git-svn-id: trunk@28450 -
2010-11-24 12:06:10 +00:00
juha
15785bf24f Converter: a patch from Stephano. Temporarily broken but applied to help co-operation and easier fixes.
git-svn-id: trunk@28438 -
2010-11-23 23:02:21 +00:00
maxim
84b618c492 Converter, Replace functions/procedures dialog: improved localization
git-svn-id: trunk@28423 -
2010-11-23 00:20:23 +00:00
maxim
830ebc5eec Converter: improved localization
git-svn-id: trunk@28421 -
2010-11-22 23:41:07 +00:00
juha
96e73107c6 Converter: remove the unused variables noticed by Mattias.
git-svn-id: trunk@28419 -
2010-11-22 22:17:01 +00:00
juha
1976af73ee Converter: change resource string names to match the text better and to avoid translation errors.
git-svn-id: trunk@28417 -
2010-11-22 20:19:45 +00:00
mattias
d4249c0b3a LCL: clean up
git-svn-id: trunk@28400 -
2010-11-22 10:33:14 +00:00
juha
c018cdeda0 Converter: Preserve .dpr suffix of main project file when target is Lazarus/Delphi. Fixes #17982.
git-svn-id: trunk@28383 -
2010-11-22 00:00:25 +00:00
juha
9944d63b2a Converter: use an hourglass cursor when waiting for thread.
git-svn-id: trunk@28382 -
2010-11-22 00:00:18 +00:00
juha
a6110a1e8b Converter: Check the number of params when replacing funcs. Prevents replacing a variable named Ptr to Pointer(nil).
git-svn-id: trunk@28293 -
2010-11-17 12:19:23 +00:00
juha
94259eb2f9 Converter: fix typo.
git-svn-id: trunk@28249 -
2010-11-15 12:43:18 +00:00
juha
ae950504fd Converter: Remove the now obsolete OnIdle handler.
git-svn-id: trunk@28248 -
2010-11-15 12:38:55 +00:00
juha
972428939b Converter: Thread feature cleanup.
git-svn-id: trunk@28247 -
2010-11-15 12:38:51 +00:00
juha
11ed939856 Converter: backround thread for caching unit paths.
git-svn-id: trunk@28246 -
2010-11-15 12:38:47 +00:00
mattias
46ee94d11d IDE: clean up
git-svn-id: trunk@28100 -
2010-11-05 17:50:32 +00:00
juha
e1a6a2e960 Converter: Treat main and implementation uses sections separately. Patch from Stephano, issue #0017578.
git-svn-id: trunk@28099 -
2010-11-05 16:38:12 +00:00
juha
b6a99db82e Converter: improved comments.
git-svn-id: trunk@28078 -
2010-11-04 22:30:41 +00:00
juha
1e3683325a Converter: minor comment changes.
git-svn-id: trunk@28064 -
2010-11-03 20:46:44 +00:00
juha
ee539962d8 Converter: check for nil pointers.
git-svn-id: trunk@28063 -
2010-11-03 20:46:38 +00:00
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
6a1f9c0370 Converter: Add the forgotten file header license info and comment for ConvCodeTool.
git-svn-id: trunk@28061 -
2010-11-03 20:17:50 +00:00
juha
fae6512968 Converter: create a WindowsAPI category for function replacement.
git-svn-id: trunk@27987 -
2010-10-30 20:21:03 +00:00
juha
0f50e663a7 Converter: added function replacement TimeGetTime --> GetTickCount
git-svn-id: trunk@27948 -
2010-10-29 14:46:04 +00:00
juha
ab788f7fc7 Converter: Minor comment changes.
git-svn-id: trunk@27908 -
2010-10-27 22:37:31 +00:00
juha
91178e65d5 Converter: Replace Ptr() with Pointer() in default configuration.
git-svn-id: trunk@27665 -
2010-10-12 12:54:39 +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
5331c44589 Converter: Detect object type in .lfm also when the variable is not defined in .pas file. Was detected as property.
git-svn-id: trunk@27542 -
2010-10-02 07:02:53 +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
mattias
82369989ce IDE: converter: search classes in implementation too
git-svn-id: trunk@27480 -
2010-09-26 20:04:31 +00:00
juha
69523fda61 Converter: change Top offset default values.
git-svn-id: trunk@27474 -
2010-09-26 16:48:49 +00:00
mattias
193ee1175a removed executable flag from source files
git-svn-id: trunk@27469 -
2010-09-26 11:05:41 +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
98903ba8d6 Converter: don't raise exception when parent type is not fould in CheckTopOffsets.
git-svn-id: trunk@27439 -
2010-09-22 19:50:05 +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
juha
40bf83e108 Converter: optimization, pass class names as parameters.
git-svn-id: trunk@27383 -
2010-09-16 12:18:55 +00:00
mattias
ed6f7d9f76 IDE: converter: fixed deprecated
git-svn-id: trunk@27361 -
2010-09-14 15:53:38 +00:00
mattias
2767314c13 IDE: fixed replacenamesunit.lfm
git-svn-id: trunk@27347 -
2010-09-13 11:54:29 +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
8e81570b80 Converter: don't try to retype variables when there are no replacements.
git-svn-id: trunk@27328 -
2010-09-12 11:16:01 +00:00
juha
772c10f63e Converter: Allow class definition in implementation section.
git-svn-id: trunk@27327 -
2010-09-12 11:15:56 +00:00
juha
017b48771a Converter: support class defintion in implementation section.
git-svn-id: trunk@27326 -
2010-09-12 11:15:52 +00:00
juha
163408b6f1 Converter: fixed a bug in function name replacement when the func has no params.
git-svn-id: trunk@27303 -
2010-09-11 14:05:09 +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
65fc15cd3b Converter: removed some code copied from CheckLFM but not needed in CheckTopOffsets.
git-svn-id: trunk@27290 -
2010-09-10 15:04:41 +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
97eddada84 Converter: Use OnPrepareCanvas instead of OnDrawCell handler for changing text color.
git-svn-id: trunk@27283 -
2010-09-08 09:55:27 +00:00
mattias
4ed9268f99 IDE: clean up
git-svn-id: trunk@26848 -
2010-07-27 09:07:40 +00:00
juha
a8ea014bf6 Converter: preparing for component top offset adjustment inside a container object.
git-svn-id: trunk@26845 -
2010-07-26 22:55:13 +00:00
juha
0ffe43f92d Converter: comment out non-used code. Remove later.
git-svn-id: trunk@26844 -
2010-07-26 22:55:09 +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
dacfafbe65 Converter: Make replacement function names grey when their category is not used.
git-svn-id: trunk@26756 -
2010-07-20 23:01:32 +00:00
juha
db08d1db24 Converter: improved replacement function categories again.
git-svn-id: trunk@26723 -
2010-07-18 08:43:02 +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
1bcfb7129a Converter: asign popup menu handlers.
git-svn-id: trunk@26705 -
2010-07-17 00:50:14 +00:00
maxim
ab209d5676 Converter: improved Unit Replacements and Functions Replacements dialogs localization
git-svn-id: trunk@26670 -
2010-07-15 23:15:56 +00:00
mattias
cd98737eb2 IDE: clean up
git-svn-id: trunk@26667 -
2010-07-15 21:30:24 +00:00
juha
7e2a349cb2 Converter: added replacement function categories to configuration.
git-svn-id: trunk@26666 -
2010-07-15 19:34:14 +00:00
juha
3dc1fa1a34 Converter: Extend fields for replacement functions and their UI. Refactoring.
git-svn-id: trunk@26665 -
2010-07-15 15:22:35 +00:00
juha
34c4400419 Converter: Added files for replacement function UI.
git-svn-id: trunk@26664 -
2010-07-15 15:16:34 +00:00
juha
f0c3b8b26b Converter: Improved syntax of replacement functions. Can test param values. Refactoring.
git-svn-id: trunk@26640 -
2010-07-14 11:10:55 +00:00
juha
38555de5d8 Converter: Improve function replacement support.
git-svn-id: trunk@26610 -
2010-07-12 23:12:03 +00:00
juha
87e25ee778 Converter: A comment inserted after a replaced function call.
git-svn-id: trunk@26609 -
2010-07-12 16:23:29 +00:00
maxim
8241803435 converter: improved 'replace names' dialog localization
git-svn-id: trunk@26539 -
2010-07-08 20:52:55 +00:00
maxim
4b7f857b4d converter: improved converter settings dialog localization
git-svn-id: trunk@26538 -
2010-07-08 20:51:49 +00:00
juha
50cb900225 Converter: GUI for replacement functions.
git-svn-id: trunk@26520 -
2010-07-08 10:35:09 +00:00
juha
07322a6a2f Converter: No duplicates for defined function lookup list. Other minor fixes.
git-svn-id: trunk@26519 -
2010-07-08 10:35:03 +00:00
juha
6653d1aad9 Converter: Replace function calls only in ctnBeginBlock nodes. Other minor improvements.
git-svn-id: trunk@26516 -
2010-07-08 00:57:26 +00:00
mattias
e407f241fb IDE: clean up
git-svn-id: trunk@26510 -
2010-07-07 18:12:33 +00:00
juha
ab43273cb2 Converter: Skip the params for further search.
git-svn-id: trunk@26508 -
2010-07-07 15:04:56 +00:00
juha
f98b96c723 Converter: use $ instead if % for replacement parameters.
git-svn-id: trunk@26507 -
2010-07-07 15:04:52 +00:00
juha
690be5c15b Converter: Use the renamed ConverterTypes unit. Make ReplaceFuncCalls private.
git-svn-id: trunk@26504 -
2010-07-07 12:51:21 +00:00
juha
3e98031895 Converter: reverted a change for Load- and SaveStringToStringTree. Path delim '/' must be in param.
git-svn-id: trunk@26503 -
2010-07-07 12:51:16 +00:00
paul
5db5f746cf converter: rename unit
git-svn-id: trunk@26502 -
2010-07-07 12:39:08 +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
75b0971ff7 Converter: Added a unit for common types.
git-svn-id: trunk@26496 -
2010-07-07 11:43:44 +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
07f5ce2d95 Converter: new default values for Auto-options.
git-svn-id: trunk@26344 -
2010-06-30 09:53:52 +00:00
juha
7511dca4eb Converter: Fix an offset error in FromMapToGrid function.
git-svn-id: trunk@26343 -
2010-06-30 09:53:48 +00:00
juha
88536343f0 Converter: Improve saving and loading StringToStringTree to/from config.
git-svn-id: trunk@26230 -
2010-06-21 11:08:24 +00:00
juha
52bf35cbe2 Converter: Minor edits.
git-svn-id: trunk@26229 -
2010-06-21 11:08:19 +00:00
mattias
30d2db57ba IDE: clean up
git-svn-id: trunk@26129 -
2010-06-15 11:00:14 +00:00
juha
466f67f457 Converter: Cleanup.
git-svn-id: trunk@26128 -
2010-06-15 09:31:26 +00:00
juha
e15d883f82 Converter: there was an extra cycle with LFM replace loop. Fixed.
git-svn-id: trunk@26127 -
2010-06-15 09:31:20 +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
60b1d16bc6 Converter: More settings GUI improvements.
git-svn-id: trunk@26125 -
2010-06-15 08:24:25 +00:00
juha
b44b289a90 Converter: make Target texts more readable.
git-svn-id: trunk@26124 -
2010-06-15 08:24:19 +00:00
juha
4db2a4b227 Converter: Settings GUI improvements.
git-svn-id: trunk@26123 -
2010-06-15 08:24:14 +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
f7eabc0679 Converter: Improve StringGrid's popup menu behavior. Make grid's name shorter.
git-svn-id: trunk@25997 -
2010-06-08 21:46:29 +00:00
juha
919e928e2c Converter: Set forms' Position = poScreenCenter.
git-svn-id: trunk@25996 -
2010-06-08 21:46:25 +00:00
juha
bc2773b52f Converter: separate missing properties and class types to their own grids.
git-svn-id: trunk@25994 -
2010-06-08 21:46:17 +00:00
juha
67e574cfdb Converter: Add popup menu and Insert / Delete options for replacement string grid.
git-svn-id: trunk@25967 -
2010-06-08 12:53:53 +00:00
juha
666532d672 Converter: Remove old items from config if they are removed from StringTree.
git-svn-id: trunk@25966 -
2010-06-08 12:53:48 +00:00
juha
9a1b70b22a Converter: Refactor adding replacements.
git-svn-id: trunk@25965 -
2010-06-08 12:53:44 +00:00
juha
3fbb671e00 Converter: Add an empty row automatically to StringGrid.
git-svn-id: trunk@25951 -
2010-06-06 11:38:15 +00:00
juha
fcff6da8ef Converter: add default values to unit and type replacements one by one, also if some are saved in config file.
git-svn-id: trunk@25948 -
2010-06-06 09:52:46 +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
4715269597 Converter: add Mask -> MaskEdit mapping to replacement units.
git-svn-id: trunk@25939 -
2010-06-05 23:24:33 +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
juha
991452e4a2 Save settings to ConfigStorage. Improved FixMainClassAncestor.
git-svn-id: trunk@25864 -
2010-06-03 12:59:50 +00:00
juha
f622d42123 Converter: cleanup for function FixMainClassAncestor.
git-svn-id: trunk@25840 -
2010-06-02 10:31:19 +00:00
juha
bd7f593d03 Converter: minor layout change.
git-svn-id: trunk@25839 -
2010-06-02 10:31:10 +00:00