switch to FPC3 + Laz 1.6

This commit is contained in:
Basile Burg 2015-12-22 10:24:18 +01:00
parent 7b83026a3f
commit 5fc8b76512
15 changed files with 44 additions and 37 deletions

View File

@ -11,7 +11,7 @@ uses
Windows, JwaTlHelp32,
{$ENDIF}
{$IFDEF LINUX}
ExtCtrls, FileUtil,
ExtCtrls, FileUtil, LazFileUtils,
{$ENDIF}
{$IFNDEF CEBUILD}
forms,

View File

@ -6,7 +6,7 @@ interface
uses
Classes, SysUtils, Graphics,
SynEditHighlighter, SynEditHighlighterFoldBase, SynEditTypes,
SynEditHighlighter, SynEditHighlighterFoldBase,
ce_dlangutils;
const
@ -454,7 +454,7 @@ end;
//TODO-cD2Syn: nested comments with multiple nesting on the same line.
procedure TSynD2Syn.next;
var
reader: PChar;
reader: PChar = nil;
label
_postString1;

View File

@ -921,7 +921,7 @@ end;
procedure TPathsOpts.getOpts(aList: TStrings; base: TOptsGroup = nil);
var
str: string;
str, sym: string;
exts: TStringList;
baseopt: TPathsOpts;
rightList: TStringList;
@ -935,9 +935,9 @@ begin
begin
if isStringDisabled(str) then
continue;
str := symbolExpander.get(str);
if not listAsteriskPath(str, aList, exts) then
aList.Add(str);
sym := symbolExpander.get(str);
if not listAsteriskPath(sym, aList, exts) then
aList.Add(sym);
end;
finally
exts.Free;
@ -962,9 +962,9 @@ begin
begin
if isStringDisabled(str) then
continue;
str := symbolExpander.get(str);
if not listAsteriskPath(str, aList, exts) then
aList.Add(str);
sym := symbolExpander.get(str);
if not listAsteriskPath(sym, aList, exts) then
aList.Add(sym);
end;
finally
exts.Free;

View File

@ -406,7 +406,7 @@ procedure TCEEditorWidget.updateImperative;
const
modstr: array[boolean] of string = ('...', 'MODIFIED');
var
md: string;
md: string = '';
begin
if fDoc = nil then begin
editorStatus.Panels[0].Text := '';

View File

@ -5,7 +5,7 @@ unit ce_libman;
interface
uses
Classes, SysUtils, FileUtil, ce_common, ce_writableComponent, ce_dcd,
Classes, SysUtils, FileUtil, ce_common, ce_writableComponent, ce_dcd, LazFileUtils,
ce_dialogs;
type
@ -129,7 +129,7 @@ end;
destructor TLibraryManager.destroy;
begin
forceDirectory(getCoeditDocPath);
ForceDirectoriesUTF8(getCoeditDocPath);
LibMan.saveToFile(getCoeditDocPath + libFname);
fCol.Free;
inherited;

View File

@ -6,8 +6,9 @@ interface
uses
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
Menus, ComCtrls, Buttons, ce_widget, ce_interfaces, ce_nativeproject, ce_dmdwrap,
ce_common, ce_dialogs, ce_sharedres, process, ce_dubproject, ce_observer;
Menus, ComCtrls, Buttons, LazFileUtils,
ce_widget, ce_interfaces, ce_nativeproject, ce_dmdwrap, ce_common, ce_dialogs,
ce_sharedres, process, ce_dubproject, ce_observer;
type

View File

@ -6,6 +6,8 @@ object CEMainForm: TCEMainForm
AllowDropFiles = True
Caption = 'Coedit'
ChildSizing.Layout = cclLeftToRightThenTopToBottom
ClientHeight = 49
ClientWidth = 745
Icon.Data = {
F1B500000000010001000000000001002000DBB500001600000089504E470D0A
1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249
@ -1468,7 +1470,8 @@ object CEMainForm: TCEMainForm
OnCloseQuery = FormCloseQuery
OnDropFiles = FormDropFiles
ShowHint = True
LCLVersion = '1.4.4.0'
LCLVersion = '1.6.0.1'
Visible = False
object mainMenu: TMainMenu
Images = imgList
top = 1

View File

@ -5,7 +5,7 @@ unit ce_main;
interface
uses
Classes, SysUtils, FileUtil, SynEditKeyCmds, SynHighlighterLFM, Forms, StdCtrls,
Classes, SysUtils, LazFileUtils, SynEditKeyCmds, SynHighlighterLFM, Forms, StdCtrls,
AnchorDocking, AnchorDockStorage, AnchorDockOptionsDlg, Controls, Graphics, strutils,
Dialogs, Menus, ActnList, ExtCtrls, process, XMLPropStorage, SynExportHTML,
ce_common, ce_dmdwrap, ce_nativeproject, ce_dcd, ce_synmemo, ce_writableComponent,
@ -592,7 +592,8 @@ end;
procedure TCELastDocsAndProjs.afterLoad;
var
docHandler: ICEMultiDocHandler;
str, focusedName: string;
str: string;
focusedName: string = '';
i: integer;
begin
docHandler := getMultiDocHandler;

View File

@ -3,6 +3,7 @@ inherited CEProjectInspectWidget: TCEProjectInspectWidget
Height = 258
Top = 260
Width = 341
ActiveControl = Tree
AllowDropFiles = True
Caption = 'Native project inspector'
ClientHeight = 258
@ -27,7 +28,7 @@ inherited CEProjectInspectWidget: TCEProjectInspectWidget
Align = alClient
AutoExpand = True
BorderSpacing.Around = 2
DefaultItemHeight = 18
DefaultItemHeight = 16
Images = imgList
ReadOnly = True
RightClickSelect = True

View File

@ -5,7 +5,7 @@ unit ce_projinspect;
interface
uses
Classes, SysUtils, FileUtil, TreeFilterEdit, Forms, Controls, Graphics, actnlist,
Classes, SysUtils, TreeFilterEdit, Forms, Controls, Graphics, actnlist,
Dialogs, ExtCtrls, ComCtrls, Menus, Buttons, lcltype, ce_nativeproject, ce_interfaces,
ce_common, ce_widget, ce_observer, ce_dialogs, ce_sharedres;
@ -376,7 +376,7 @@ end;
procedure TCEProjectInspectWidget.updateImperative;
var
src, fold, conf: string;
src, fold, conf, str: string;
lst: TStringList;
itm: TTreeNode;
hasProj: boolean;
@ -417,11 +417,11 @@ begin
end;
end;
// display Imports (-J)
for fold in FProject.currentConfiguration.pathsOptions.importStringPaths do
for str in FProject.currentConfiguration.pathsOptions.importStringPaths do
begin
if fold = '' then
if str = '' then
continue;
fold := expandFilenameEx(fProject.basePath, fold);
fold := expandFilenameEx(fProject.basePath, str);
fold := symbolExpander.get(fold);
itm := Tree.Items.AddChild(fImpsNode, fold);
itm.ImageIndex := 5;
@ -429,11 +429,11 @@ begin
end;
fImpsNode.Collapse(false);
// display Includes (-I)
for fold in FProject.currentConfiguration.pathsOptions.importModulePaths do
for str in FProject.currentConfiguration.pathsOptions.importModulePaths do
begin
if fold = '' then
if str = '' then
continue;
fold := expandFilenameEx(fProject.basePath, fold);
fold := expandFilenameEx(fProject.basePath, str);
fold := symbolExpander.get(fold);
itm := Tree.Items.AddChild(fInclNode, fold);
itm.ImageIndex := 5;
@ -441,11 +441,11 @@ begin
end;
fInclNode.Collapse(false);
// display extra sources (external .lib, *.a, *.d)
for src in FProject.currentConfiguration.pathsOptions.extraSources do
for str in FProject.currentConfiguration.pathsOptions.extraSources do
begin
if src = '' then
if str = '' then
continue;
src := expandFilenameEx(fProject.basePath, src);
src := expandFilenameEx(fProject.basePath, str);
src := symbolExpander.get(src);
lst := TStringList.Create;
try

View File

@ -24,7 +24,7 @@ inherited CESymbolListWidget: TCESymbolListWidget
Width = 302
Align = alClient
BorderSpacing.Around = 4
DefaultItemHeight = 16
DefaultItemHeight = 18
HideSelection = False
Images = imgList
ReadOnly = True

View File

@ -610,7 +610,7 @@ end;
function TCESymbolListWidget.TreeFilterEdit1FilterItem(Item: TObject; out
Done: Boolean): Boolean;
begin
if not fSmartFilter then exit;
if not fSmartFilter then exit(false);
//
if TreeFilterEdit1.Filter <> '' then
tree.FullExpand
@ -686,6 +686,7 @@ function getCatNode(node: TTreeNode; stype: TSymbolType ): TTreeNode;
end;
//
begin
result := nil;
if node = nil then case stype of
_alias : exit(ndAlias);
_class : exit(ndClass);

View File

@ -884,7 +884,7 @@ var
len: Integer;
begin
// empty items can be produced if completion list is too long
if aKey = '' then exit;
if aKey = '' then exit(true);
// otherwise always at least 20 chars but...
// ... '20' depends on ce_dcd, case knd of, string literals length
result := true;

View File

@ -5,7 +5,7 @@ unit ce_tools;
interface
uses
Classes, SysUtils, FileUtil, process, menus, ce_processes,
Classes, SysUtils, LazFileUtils, process, menus, ce_processes,
ce_common, ce_writableComponent, ce_interfaces, ce_observer, ce_inspectors,
ce_synmemo;
@ -139,7 +139,7 @@ end;
procedure TCEToolItem.setChainBefore(value: TStringList);
begin
// kept to reload old setting files. 'xhainBefore' is not saved anymore.
// kept to reload old setting files. 'chainBefore' is not saved anymore.
end;
procedure TCEToolItem.setChainAfter(value: TStringList);
@ -271,7 +271,7 @@ destructor TCETools.destroy;
begin
EntitiesConnector.removeObserver(self);
//
forceDirectory(getCoeditDocPath);
ForceDirectoriesUTF8(getCoeditDocPath);
saveToFile(getCoeditDocPath + toolsFname);
fTools.Free;
inherited;

View File

@ -107,7 +107,7 @@ libc.so.6
Download ans setup the tools:
* [Download](http://lazarus.freepascal.org/index.php?page=downloads) and setup the latest Lazarus (1.4.4) version and FPC / FPC sources (2.6.4) for your platform.
* [Download](http://lazarus.freepascal.org/index.php?page=downloads) and setup the latest Lazarus version (1.6) and FPC + FPC sources (3.0.0.1) for your platform.
* Windows: the three packages are bundled in an installer. Even on Windows 64 bit, the 32 version must be setup.
* Linux: the three packages must be downloaded and setup individually. Take care to the version number because the official rpm/deb source of a Linux distribution does not always propose the latest version !