Commit Graph

547 Commits

Author SHA1 Message Date
juha
cb53e0699e Converter: Support case insensitive reserved words when inserting '&' in front of an OleVariant member. Fixes issue #23552.
git-svn-id: trunk@42161 -
2013-07-20 17:57:01 +00:00
juha
7d5074bd8c Converter: after codetools exception, insert '&' before every '.'+reserved word instead of only '.type'. Part of issue #23552
git-svn-id: trunk@42156 -
2013-07-20 11:40:14 +00:00
juha
2a00da9fec Converter: improve WideString conversion. Not all nums are 3 characters long. Issue #23116
git-svn-id: trunk@41975 -
2013-07-02 17:44:17 +00:00
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
09cfe454ce Converter, char encoding window: less debug messages.
git-svn-id: trunk@41966 -
2013-07-02 12:57:16 +00:00
juha
2667dcf7f4 Converter: convert Windows WideString syntax (#xxx) to UTF8 in LFM files. Issue #23116
git-svn-id: trunk@41962 -
2013-07-01 23:33:50 +00:00
juha
c1af98e79a Converter: less verbosity
git-svn-id: trunk@41960 -
2013-07-01 23:33:25 +00:00
juha
0c732a1c4c Converter: Cleanup. Get rid of an excess variable.
git-svn-id: trunk@41959 -
2013-07-01 23:33:00 +00:00
juha
1182ff0df2 Converter: Add variables in class when components (like menu item) are only in LFM. Changed also CheckLFM. Issue #24473.
git-svn-id: trunk@41948 -
2013-06-30 22:05:56 +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
af3f23c7b6 Converter: improve replacing used a unit with a comma separated list of units.
git-svn-id: trunk@41931 -
2013-06-28 10:36:39 +00:00
juha
abfeceefbf Converter: use an existing string constant.
git-svn-id: trunk@41927 -
2013-06-27 16:04:17 +00:00
juha
e48de26440 Converter: Make sure the same unit will not be added again after AddUnitImmediately.
git-svn-id: trunk@41799 -
2013-06-22 13:30:48 +00:00
juha
ae92b35e79 Converter: fix label text for path. It is used for projects, packages and units.
git-svn-id: trunk@41798 -
2013-06-22 13:30:34 +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
mattias
6e20536c6f IDE: clean up
git-svn-id: trunk@41706 -
2013-06-13 21:02:18 +00:00
juha
6945bd6608 Converter: improve log message for adding "SimplePanel = False" to StatusBar.
git-svn-id: trunk@41702 -
2013-06-13 10:47: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
mattias
6f186d11c1 IDE: clean up
git-svn-id: trunk@41661 -
2013-06-10 11:09:37 +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
66c76d4f6f Converter: make sure the LFM checks don't end up to eternal loops.
git-svn-id: trunk@41637 -
2013-06-09 14:34:36 +00:00
maxim
76cc6180d1 Converter: Improved Converter Settings dialog localization
git-svn-id: trunk@41631 -
2013-06-09 13:38:48 +00:00
juha
01807a29cd Converter: Remove invalid properties also after replacing a component type. Issue #24527
git-svn-id: trunk@41619 -
2013-06-09 10:05:20 +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
aa5f6fd0f7 Converter: Change unit name to match disk name unless the disk name is all lowercase.
git-svn-id: trunk@41593 -
2013-06-08 16:32:39 +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
d5bfaea603 Converter: Use {$IFnDEF ...} with small 'n'. Easier to read.
git-svn-id: trunk@41170 -
2013-05-13 14:10:37 +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
87a68af276 Converter: move a string constant to resource strings
git-svn-id: trunk@40827 -
2013-04-16 07:50:02 +00:00
juha
22cf9232b4 Converter: add a setting for putting a comment after a replaced function.
git-svn-id: trunk@40580 -
2013-03-17 23:33:03 +00:00
juha
fca96aeca6 Converter: save all files after conversion.
git-svn-id: trunk@40567 -
2013-03-17 11:36:36 +00:00
juha
c16cec36c1 Converter: call CheckLFM again in a loop also when just properties were changed.
git-svn-id: trunk@40565 -
2013-03-17 08:56:31 +00:00
juha
cd0e43972f Converter: refactoring and some variable name changes.
git-svn-id: trunk@40564 -
2013-03-17 08:56:27 +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
7f3323cd39 Converter: don't replace TControlBar and TCoolBar any more. They are implemented in LCL
git-svn-id: trunk@40156 -
2013-02-03 12:23:38 +00:00
juha
a4cebdfafc Converter: Organize and clean method FindMissingUnits. Use original unit name when reporting special cases as missing.
git-svn-id: trunk@39800 -
2013-01-07 19:45:38 +00:00
juha
e45915c36c Converter: omit pascalscript units from project, use the Lazarus package
git-svn-id: trunk@39789 -
2013-01-06 22:23:53 +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
56d30918e9 Converter default settings: Convert Filesetattr parameters correctly. Issue #23576
git-svn-id: trunk@39766 -
2013-01-04 17:12:25 +00:00
maxim
259ded0029 Converter: improved/fixed converter settings form layout
git-svn-id: trunk@39700 -
2012-12-31 18:06:17 +00:00
juha
f1d5a6a06f Converter: Fix replacements of unit names when target is Windows-only.
git-svn-id: trunk@39697 -
2012-12-30 19:38:39 +00:00
juha
782074c449 Converter: rename Multi-platform to Cross-platform
git-svn-id: trunk@39696 -
2012-12-30 19:38:30 +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
91dc4fa857 Converter: add more units to be omitted from a project.
git-svn-id: trunk@39687 -
2012-12-29 22:32:19 +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
03611adae0 IDE: Formatting
git-svn-id: trunk@39062 -
2012-10-13 09:13:41 +00:00
juha
d768cb42a7 Converter: formatting
git-svn-id: trunk@39054 -
2012-10-12 08:11:53 +00:00
juha
fdf1a89262 Converter: refactoring AddUnitIfNeeded procedure
git-svn-id: trunk@39048 -
2012-10-11 18:57:44 +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
juha
0e8eb89d5e Converter: improve messages a bit
git-svn-id: trunk@38911 -
2012-09-29 21:37:16 +00:00
juha
7e1f04ade7 Converter: Replace also WinTypes and WinProcs units with "LCLIntf, LCLType, LMessages"
git-svn-id: trunk@38904 -
2012-09-29 14:52:15 +00:00
juha
7d7d464100 Converter: Convert also units in project directory which are not part of the project. Issue #22677
git-svn-id: trunk@38903 -
2012-09-29 14:44:47 +00:00
juha
672f5bd862 Replace #13 with LineEnding in many messages. It didn't show correctly on Linux systems.
git-svn-id: trunk@38633 -
2012-09-13 06:39:56 +00:00
maxim
21a83dc687 Converter: improved converter settings form layout
git-svn-id: trunk@38379 -
2012-08-25 22:03:32 +00:00
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