From 09f43c19b45800d5d019f403bdff2c9abf6e8c1c Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Wed, 6 May 2015 01:57:22 +0000 Subject: [PATCH] CodeSnip version 4.12.0 --- Docs/ChangeLogs/ChangeLog-v4.txt | 5 +++++ Docs/Design/FileFormats/config.html | 11 ++++++++++- Docs/Design/FileFormats/export.html | 5 ++++- Docs/Design/FileFormats/main-db.html | 6 +++++- Docs/Design/FileFormats/user-db.html | 5 ++++- Docs/ReadMe.txt | 4 ++-- Src/Compilers.UBDS.pas | 8 +++++++- Src/Compilers.UGlobals.pas | 5 +++-- Src/DBIO.UIniDataReader.pas | 4 ++-- Src/FirstRun.UConfigFile.pas | 3 ++- Src/FrCodeGenPrefs.pas | 3 ++- Src/Help/HTML/about_compiler_checks.htm | 4 ++-- Src/Help/HTML/dlg_configcompilers.htm | 10 +++++----- Src/UXMLDocConsts.pas | 5 +++-- Src/VCodeSnip.vi | 6 +++--- Src/VCodeSnipPortable.vi | 6 +++--- 16 files changed, 62 insertions(+), 28 deletions(-) diff --git a/Docs/ChangeLogs/ChangeLog-v4.txt b/Docs/ChangeLogs/ChangeLog-v4.txt index 4e38a251a..aacc606eb 100644 --- a/Docs/ChangeLogs/ChangeLog-v4.txt +++ b/Docs/ChangeLogs/ChangeLog-v4.txt @@ -11,6 +11,11 @@ ; Change Log for CodeSnip Release 4 ; ------------------------------------------------------------------------------ +Release v4.12.0 of 6 May 2015 ++ Added support for test compilation with, and detection of, Delphi XE8 compiler. ++ Updated documentation re changes. ++ Updated help file re changes and fixed some spelling mistakes. + Release v4.11.1 of 26 October 2014 + Corrected an erroneous error message that is displayed when circular snippet references are detected in the snippets editor (no bug report filed). + Corrected some spelling errors in UI. diff --git a/Docs/Design/FileFormats/config.html b/Docs/Design/FileFormats/config.html index 45abdbfc1..d95d02a38 100644 --- a/Docs/Design/FileFormats/config.html +++ b/Docs/Design/FileFormats/config.html @@ -5,7 +5,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2012-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -288,6 +288,9 @@

  • DXE7 – Delphi XE7
  • +
  • + DXE8 – Delphi XE8 +
  • FPC – Free Pascal
  • @@ -576,6 +579,12 @@

    Indicates whether Delphi XE7 was included in search.
    +
    + DXE8 (Boolean) +
    +
    + Indicates whether Delphi XE8 was included in search. +
    FPC (Boolean)
    diff --git a/Docs/Design/FileFormats/export.html b/Docs/Design/FileFormats/export.html index 73f1ac7e0..d9aee32e0 100644 --- a/Docs/Design/FileFormats/export.html +++ b/Docs/Design/FileFormats/export.html @@ -5,7 +5,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2012-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -512,6 +512,9 @@

  • dXE7 – Delphi XE7 compiler
  • +
  • + dXE8 – Delphi XE8 compiler +
  • fpc – Free Pascal compiler
  • diff --git a/Docs/Design/FileFormats/main-db.html b/Docs/Design/FileFormats/main-db.html index 2458bbb0c..212d7ed57 100644 --- a/Docs/Design/FileFormats/main-db.html +++ b/Docs/Design/FileFormats/main-db.html @@ -5,7 +5,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2012-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -155,6 +155,7 @@

    DelphiXE5=<Y|N|Q|W> DelphiXE6=<Y|N|Q|W> DelphiXE7=<Y|N|Q|W> +DelphiXE8=<Y|N|Q|W> FPC=<Y|N|Q|W> Extra=<extra-info-REML> StandardFormat=<0|1> @@ -339,6 +340,9 @@

  • DelphiXE7 – Delphi XE7 compiler
  • +
  • + DelphiXE8 – Delphi XE8 compiler +
  • FPC – Free Pascal compiler
  • diff --git a/Docs/Design/FileFormats/user-db.html b/Docs/Design/FileFormats/user-db.html index 22fa54b11..0f84138e7 100644 --- a/Docs/Design/FileFormats/user-db.html +++ b/Docs/Design/FileFormats/user-db.html @@ -5,7 +5,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2012-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -562,6 +562,9 @@

  • dXE7 – Delphi XE7 compiler
  • +
  • + dXE8 – Delphi XE8 compiler +
  • fpc – Free Pascal compiler
  • diff --git a/Docs/ReadMe.txt b/Docs/ReadMe.txt index 7d5e41c88..434f2d6e6 100644 --- a/Docs/ReadMe.txt +++ b/Docs/ReadMe.txt @@ -14,7 +14,7 @@ online DelphiDabbler Code Snippets database as well as maintain a database of user-defined snippets. It displays details of each snippet in the database and can test-compile them -with each installed Win32 version of Delphi from v2 to XE7 along with Free +with each installed Win32 version of Delphi from v2 to XE8 along with Free Pascal. Compilable Pascal units can be created that contain selected snippets. @@ -225,7 +225,7 @@ dialogue" in the help file index). Each user can configure compilers differently. -Delphi XE2 to XE7 may need to be configured to search for required units in the +Delphi XE2 to XE8 may need to be configured to search for required units in the correct namespaces. This is explained in the Add/Edit Snippet Dialogue Box help topic and in the FAQ at http://delphidabbler.com/url/codesnip-and-xe2. diff --git a/Src/Compilers.UBDS.pas b/Src/Compilers.UBDS.pas index 02e5e7aca..8fdf2ccd4 100644 --- a/Src/Compilers.UBDS.pas +++ b/Src/Compilers.UBDS.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2006-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2006-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -141,6 +141,8 @@ function TBDSCompiler.GetIDString: string; Result := 'DXE6'; ciDXE7: Result := 'DXE7'; + ciDXE8: + Result := 'DXE8'; else raise EBug.Create(ClassName + '.GetIDString: Invalid ID'); end; @@ -156,6 +158,7 @@ function TBDSCompiler.GetName: string; sDelphiXE5 = 'Delphi XE5'; // name of Delphi XE5 compiler sDelphiXE6 = 'Delphi XE6'; // name of Delphi XE6 compiler sDelphiXE7 = 'Delphi XE7'; // name of Delphi XE7 compiler + sDelphiXE8 = 'Delphi XE8'; // name of Delphi XE8 compiler begin case GetID of ciDXE: @@ -172,6 +175,8 @@ function TBDSCompiler.GetName: string; Result := sDelphiXE6; ciDXE7: Result := sDelphiXE7; + ciDXE8: + Result := sDelphiXE8; else Result := Format(sCompilerName, [ProductVersion]); end; @@ -199,6 +204,7 @@ function TBDSCompiler.InstallationRegKey: string; ciDXE5 : Result := '\Software\Embarcadero\BDS\12.0'; ciDXE6 : Result := '\Software\Embarcadero\BDS\14.0'; ciDXE7 : Result := '\Software\Embarcadero\BDS\15.0'; + ciDXE8 : Result := '\Software\Embarcadero\BDS\16.0'; else raise EBug.Create(ClassName + '.InstallationRegKey: Invalid ID'); end; end; diff --git a/Src/Compilers.UGlobals.pas b/Src/Compilers.UGlobals.pas index 0b407a534..a012e7ed9 100644 --- a/Src/Compilers.UGlobals.pas +++ b/Src/Compilers.UGlobals.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2005-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -40,6 +40,7 @@ interface ciDXE5, // Delphi XE5 ciDXE6, // Delphi XE6 ciDXE7, // Delphi XE7 + ciDXE8, // Delphi XE8 ciFPC // Free Pascal ); @@ -52,7 +53,7 @@ interface /// compilers. cBDSCompilers = [ ciD2005w32, ciD2006w32, ciD2007, ciD2009w32, ciD2010, ciDXE, ciDXE2, - ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7 + ciDXE3, ciDXE4, ciDXE5, ciDXE6, ciDXE7, ciDXE8 ]; const diff --git a/Src/DBIO.UIniDataReader.pas b/Src/DBIO.UIniDataReader.pas index dd60277a4..1b2cad961 100644 --- a/Src/DBIO.UIniDataReader.pas +++ b/Src/DBIO.UIniDataReader.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2005-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -237,7 +237,7 @@ implementation 'Delphi2', 'Delphi3', 'Delphi4', 'Delphi5', 'Delphi6', 'Delphi7', 'Delphi2005Win32', 'Delphi2006Win32', 'Delphi2007', 'Delphi2009Win32', 'Delphi2010', 'DelphiXE', 'DelphiXE2', 'DelphiXE3', 'DelphiXE4', - 'DelphiXE5', 'DelphiXE6', 'DelphiXE7', 'FPC' + 'DelphiXE5', 'DelphiXE6', 'DelphiXE7', 'DelphiXE8', 'FPC' ); { TIniDataReader } diff --git a/Src/FirstRun.UConfigFile.pas b/Src/FirstRun.UConfigFile.pas index b09160b49..9b654f2c4 100644 --- a/Src/FirstRun.UConfigFile.pas +++ b/Src/FirstRun.UConfigFile.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2007-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2007-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -481,6 +481,7 @@ procedure TUserConfigFileUpdater.UpdateNamespaces; UpdateForCompiler('DXE5'); UpdateForCompiler('DXE6'); UpdateForCompiler('DXE7'); + UpdateForCompiler('DXE8'); end; { TCommonConfigFileUpdater } diff --git a/Src/FrCodeGenPrefs.pas b/Src/FrCodeGenPrefs.pas index a5f07f1a6..925109994 100644 --- a/Src/FrCodeGenPrefs.pas +++ b/Src/FrCodeGenPrefs.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2010-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2010-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -679,6 +679,7 @@ procedure TCodeGenPrefsFrame.PopulatePreDefCompilerMenu; AddMenuItem('Delphi XE5', 26.0); AddMenuItem('Delphi XE6', 27.0); AddMenuItem('Delphi XE7', 28.0); + AddMenuItem('Delphi XE8', 29.0); end; procedure TCodeGenPrefsFrame.PreDefCompilerMenuClick(Sender: TObject); diff --git a/Src/Help/HTML/about_compiler_checks.htm b/Src/Help/HTML/about_compiler_checks.htm index 0855ad072..ab52c6cb0 100644 --- a/Src/Help/HTML/about_compiler_checks.htm +++ b/Src/Help/HTML/about_compiler_checks.htm @@ -4,7 +4,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2005-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -37,7 +37,7 @@

    The supported compilers are the Win32 Delphi compilers from Delphi 2 to - Delphi XE7 and Free Pascal. + Delphi XE8 and Free Pascal.

    Configuring CodeSnip diff --git a/Src/Help/HTML/dlg_configcompilers.htm b/Src/Help/HTML/dlg_configcompilers.htm index 3bda92d03..cc54657f3 100644 --- a/Src/Help/HTML/dlg_configcompilers.htm +++ b/Src/Help/HTML/dlg_configcompilers.htm @@ -4,7 +4,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2005-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2005-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -167,7 +167,7 @@

    Delphi XE2 or later qualify units from the RTL and VCL are prefixed with the name of the unit's namespace. Much of the code managed by CodeSnip uses unqualified unit names for reasons of backward - compatibility. In order for the unqualifed units to be found on Delphi + compatibility. In order for the unqualified units to be found on Delphi XE2 and later the compiler has to be given a list of namespaces to search for the units.

    @@ -247,7 +247,7 @@

    summary of the logged output can be displayed by the user when warnings or errors occur. Instead of displaying the whole log the program filters out the required messages. It does this by looking for some common text - that preceeds the messages in the log. These prefixes are listed in the + that precedes the messages in the log. These prefixes are listed in the Log Prefixes editor.

    @@ -268,7 +268,7 @@

    For languages other than English you need to compile some code that - generates warnings, errors and fatal errors then check what text preceeds + generates warnings, errors and fatal errors then check what text precedes each kind of message. This text should be entered in the Log Prefixes editor. Failure to do this will mean that CodeSnip won't detect warnings and won't report errors correctly. @@ -278,7 +278,7 @@

    CodeSnip can automatically detect the presence of Win 32 Delphi - compilers from versions 2 to XE7. Click the Detect Delphi + compilers from versions 2 to XE8. Click the Detect Delphi Compilers button to do this. Any supported installed version of Delphi will be recorded. This can save considerable time and avoid errors. diff --git a/Src/UXMLDocConsts.pas b/Src/UXMLDocConsts.pas index 489d703c1..f6f06e1cd 100644 --- a/Src/UXMLDocConsts.pas +++ b/Src/UXMLDocConsts.pas @@ -3,7 +3,7 @@ * v. 2.0. If a copy of the MPL was not distributed with this file, You can * obtain one at http://mozilla.org/MPL/2.0/ * - * Copyright (C) 2008-2014, Peter Johnson (www.delphidabbler.com). + * Copyright (C) 2008-2015, Peter Johnson (www.delphidabbler.com). * * $Rev$ * $Date$ @@ -73,7 +73,8 @@ interface cCompilerIDs: array[TCompilerID] of string = ( 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd2005', 'd2006', 'd2007', 'd2009', 'd2010', - 'dXE', 'dXE2', 'dXE3', 'dDX4' {error, but in use}, 'dXE5', 'dXE6', 'dXE7', + 'dXE', 'dXE2', 'dXE3', 'dDX4' {error, but in use}, + 'dXE5', 'dXE6', 'dXE7', 'dXE8', 'fpc' ); diff --git a/Src/VCodeSnip.vi b/Src/VCodeSnip.vi index a41c6101c..dcaa8f364 100644 --- a/Src/VCodeSnip.vi +++ b/Src/VCodeSnip.vi @@ -2,7 +2,7 @@ ; v. 2.0. If a copy of the MPL was not distributed with this file, You can ; obtain one at http://mozilla.org/MPL/2.0/ ; -; Copyright (C) 2008-2014, Peter Johnson (www.delphidabbler.com). +; Copyright (C) 2008-2015, Peter Johnson (www.delphidabbler.com). ; ; $Rev$ ; $Date$ @@ -11,8 +11,8 @@ [Fixed File Info] -File Version #=4, 11, 1, 249 -Product Version #=4, 11, 1, 0 +File Version #=4, 12, 0, 250 +Product Version #=4, 12, 0, 0 File OS=4 File Type=1 File Sub-Type=0 diff --git a/Src/VCodeSnipPortable.vi b/Src/VCodeSnipPortable.vi index 4d982719e..af3b371bc 100644 --- a/Src/VCodeSnipPortable.vi +++ b/Src/VCodeSnipPortable.vi @@ -2,7 +2,7 @@ ; v. 2.0. If a copy of the MPL was not distributed with this file, You can ; obtain one at http://mozilla.org/MPL/2.0/ ; -; Copyright (C) 2012-2014, Peter Johnson (www.delphidabbler.com). +; Copyright (C) 2012-2015, Peter Johnson (www.delphidabbler.com). ; ; $Rev$ ; $Date$ @@ -11,8 +11,8 @@ [Fixed File Info] -File Version #=4, 11, 1, 249 -Product Version #=4, 11, 1, 0 +File Version #=4, 12, 0, 250 +Product Version #=4, 12, 0, 0 File OS=4 File Type=1 File Sub-Type=0