mirror of https://gitlab.com/basile.b/dexed.git
switch to FPC3 + Laz 1.6
This commit is contained in:
parent
7b83026a3f
commit
5fc8b76512
|
|
@ -11,7 +11,7 @@ uses
|
||||||
Windows, JwaTlHelp32,
|
Windows, JwaTlHelp32,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFDEF LINUX}
|
{$IFDEF LINUX}
|
||||||
ExtCtrls, FileUtil,
|
ExtCtrls, FileUtil, LazFileUtils,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
{$IFNDEF CEBUILD}
|
{$IFNDEF CEBUILD}
|
||||||
forms,
|
forms,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, Graphics,
|
Classes, SysUtils, Graphics,
|
||||||
SynEditHighlighter, SynEditHighlighterFoldBase, SynEditTypes,
|
SynEditHighlighter, SynEditHighlighterFoldBase,
|
||||||
ce_dlangutils;
|
ce_dlangutils;
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
@ -454,7 +454,7 @@ end;
|
||||||
//TODO-cD2Syn: nested comments with multiple nesting on the same line.
|
//TODO-cD2Syn: nested comments with multiple nesting on the same line.
|
||||||
procedure TSynD2Syn.next;
|
procedure TSynD2Syn.next;
|
||||||
var
|
var
|
||||||
reader: PChar;
|
reader: PChar = nil;
|
||||||
|
|
||||||
label
|
label
|
||||||
_postString1;
|
_postString1;
|
||||||
|
|
|
||||||
|
|
@ -921,7 +921,7 @@ end;
|
||||||
|
|
||||||
procedure TPathsOpts.getOpts(aList: TStrings; base: TOptsGroup = nil);
|
procedure TPathsOpts.getOpts(aList: TStrings; base: TOptsGroup = nil);
|
||||||
var
|
var
|
||||||
str: string;
|
str, sym: string;
|
||||||
exts: TStringList;
|
exts: TStringList;
|
||||||
baseopt: TPathsOpts;
|
baseopt: TPathsOpts;
|
||||||
rightList: TStringList;
|
rightList: TStringList;
|
||||||
|
|
@ -935,9 +935,9 @@ begin
|
||||||
begin
|
begin
|
||||||
if isStringDisabled(str) then
|
if isStringDisabled(str) then
|
||||||
continue;
|
continue;
|
||||||
str := symbolExpander.get(str);
|
sym := symbolExpander.get(str);
|
||||||
if not listAsteriskPath(str, aList, exts) then
|
if not listAsteriskPath(sym, aList, exts) then
|
||||||
aList.Add(str);
|
aList.Add(sym);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
exts.Free;
|
exts.Free;
|
||||||
|
|
@ -962,9 +962,9 @@ begin
|
||||||
begin
|
begin
|
||||||
if isStringDisabled(str) then
|
if isStringDisabled(str) then
|
||||||
continue;
|
continue;
|
||||||
str := symbolExpander.get(str);
|
sym := symbolExpander.get(str);
|
||||||
if not listAsteriskPath(str, aList, exts) then
|
if not listAsteriskPath(sym, aList, exts) then
|
||||||
aList.Add(str);
|
aList.Add(sym);
|
||||||
end;
|
end;
|
||||||
finally
|
finally
|
||||||
exts.Free;
|
exts.Free;
|
||||||
|
|
|
||||||
|
|
@ -406,7 +406,7 @@ procedure TCEEditorWidget.updateImperative;
|
||||||
const
|
const
|
||||||
modstr: array[boolean] of string = ('...', 'MODIFIED');
|
modstr: array[boolean] of string = ('...', 'MODIFIED');
|
||||||
var
|
var
|
||||||
md: string;
|
md: string = '';
|
||||||
begin
|
begin
|
||||||
if fDoc = nil then begin
|
if fDoc = nil then begin
|
||||||
editorStatus.Panels[0].Text := '';
|
editorStatus.Panels[0].Text := '';
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ unit ce_libman;
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, ce_common, ce_writableComponent, ce_dcd,
|
Classes, SysUtils, FileUtil, ce_common, ce_writableComponent, ce_dcd, LazFileUtils,
|
||||||
ce_dialogs;
|
ce_dialogs;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
@ -129,7 +129,7 @@ end;
|
||||||
|
|
||||||
destructor TLibraryManager.destroy;
|
destructor TLibraryManager.destroy;
|
||||||
begin
|
begin
|
||||||
forceDirectory(getCoeditDocPath);
|
ForceDirectoriesUTF8(getCoeditDocPath);
|
||||||
LibMan.saveToFile(getCoeditDocPath + libFname);
|
LibMan.saveToFile(getCoeditDocPath + libFname);
|
||||||
fCol.Free;
|
fCol.Free;
|
||||||
inherited;
|
inherited;
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, ExtCtrls,
|
||||||
Menus, ComCtrls, Buttons, ce_widget, ce_interfaces, ce_nativeproject, ce_dmdwrap,
|
Menus, ComCtrls, Buttons, LazFileUtils,
|
||||||
ce_common, ce_dialogs, ce_sharedres, process, ce_dubproject, ce_observer;
|
ce_widget, ce_interfaces, ce_nativeproject, ce_dmdwrap, ce_common, ce_dialogs,
|
||||||
|
ce_sharedres, process, ce_dubproject, ce_observer;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,8 @@ object CEMainForm: TCEMainForm
|
||||||
AllowDropFiles = True
|
AllowDropFiles = True
|
||||||
Caption = 'Coedit'
|
Caption = 'Coedit'
|
||||||
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
ChildSizing.Layout = cclLeftToRightThenTopToBottom
|
||||||
|
ClientHeight = 49
|
||||||
|
ClientWidth = 745
|
||||||
Icon.Data = {
|
Icon.Data = {
|
||||||
F1B500000000010001000000000001002000DBB500001600000089504E470D0A
|
F1B500000000010001000000000001002000DBB500001600000089504E470D0A
|
||||||
1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249
|
1A0A0000000D49484452000001000000010008060000005C72A8660000B5A249
|
||||||
|
|
@ -1468,7 +1470,8 @@ object CEMainForm: TCEMainForm
|
||||||
OnCloseQuery = FormCloseQuery
|
OnCloseQuery = FormCloseQuery
|
||||||
OnDropFiles = FormDropFiles
|
OnDropFiles = FormDropFiles
|
||||||
ShowHint = True
|
ShowHint = True
|
||||||
LCLVersion = '1.4.4.0'
|
LCLVersion = '1.6.0.1'
|
||||||
|
Visible = False
|
||||||
object mainMenu: TMainMenu
|
object mainMenu: TMainMenu
|
||||||
Images = imgList
|
Images = imgList
|
||||||
top = 1
|
top = 1
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ unit ce_main;
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, SynEditKeyCmds, SynHighlighterLFM, Forms, StdCtrls,
|
Classes, SysUtils, LazFileUtils, SynEditKeyCmds, SynHighlighterLFM, Forms, StdCtrls,
|
||||||
AnchorDocking, AnchorDockStorage, AnchorDockOptionsDlg, Controls, Graphics, strutils,
|
AnchorDocking, AnchorDockStorage, AnchorDockOptionsDlg, Controls, Graphics, strutils,
|
||||||
Dialogs, Menus, ActnList, ExtCtrls, process, XMLPropStorage, SynExportHTML,
|
Dialogs, Menus, ActnList, ExtCtrls, process, XMLPropStorage, SynExportHTML,
|
||||||
ce_common, ce_dmdwrap, ce_nativeproject, ce_dcd, ce_synmemo, ce_writableComponent,
|
ce_common, ce_dmdwrap, ce_nativeproject, ce_dcd, ce_synmemo, ce_writableComponent,
|
||||||
|
|
@ -592,7 +592,8 @@ end;
|
||||||
procedure TCELastDocsAndProjs.afterLoad;
|
procedure TCELastDocsAndProjs.afterLoad;
|
||||||
var
|
var
|
||||||
docHandler: ICEMultiDocHandler;
|
docHandler: ICEMultiDocHandler;
|
||||||
str, focusedName: string;
|
str: string;
|
||||||
|
focusedName: string = '';
|
||||||
i: integer;
|
i: integer;
|
||||||
begin
|
begin
|
||||||
docHandler := getMultiDocHandler;
|
docHandler := getMultiDocHandler;
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ inherited CEProjectInspectWidget: TCEProjectInspectWidget
|
||||||
Height = 258
|
Height = 258
|
||||||
Top = 260
|
Top = 260
|
||||||
Width = 341
|
Width = 341
|
||||||
|
ActiveControl = Tree
|
||||||
AllowDropFiles = True
|
AllowDropFiles = True
|
||||||
Caption = 'Native project inspector'
|
Caption = 'Native project inspector'
|
||||||
ClientHeight = 258
|
ClientHeight = 258
|
||||||
|
|
@ -27,7 +28,7 @@ inherited CEProjectInspectWidget: TCEProjectInspectWidget
|
||||||
Align = alClient
|
Align = alClient
|
||||||
AutoExpand = True
|
AutoExpand = True
|
||||||
BorderSpacing.Around = 2
|
BorderSpacing.Around = 2
|
||||||
DefaultItemHeight = 18
|
DefaultItemHeight = 16
|
||||||
Images = imgList
|
Images = imgList
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
RightClickSelect = True
|
RightClickSelect = True
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ unit ce_projinspect;
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
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,
|
Dialogs, ExtCtrls, ComCtrls, Menus, Buttons, lcltype, ce_nativeproject, ce_interfaces,
|
||||||
ce_common, ce_widget, ce_observer, ce_dialogs, ce_sharedres;
|
ce_common, ce_widget, ce_observer, ce_dialogs, ce_sharedres;
|
||||||
|
|
||||||
|
|
@ -376,7 +376,7 @@ end;
|
||||||
|
|
||||||
procedure TCEProjectInspectWidget.updateImperative;
|
procedure TCEProjectInspectWidget.updateImperative;
|
||||||
var
|
var
|
||||||
src, fold, conf: string;
|
src, fold, conf, str: string;
|
||||||
lst: TStringList;
|
lst: TStringList;
|
||||||
itm: TTreeNode;
|
itm: TTreeNode;
|
||||||
hasProj: boolean;
|
hasProj: boolean;
|
||||||
|
|
@ -417,11 +417,11 @@ begin
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
// display Imports (-J)
|
// display Imports (-J)
|
||||||
for fold in FProject.currentConfiguration.pathsOptions.importStringPaths do
|
for str in FProject.currentConfiguration.pathsOptions.importStringPaths do
|
||||||
begin
|
begin
|
||||||
if fold = '' then
|
if str = '' then
|
||||||
continue;
|
continue;
|
||||||
fold := expandFilenameEx(fProject.basePath, fold);
|
fold := expandFilenameEx(fProject.basePath, str);
|
||||||
fold := symbolExpander.get(fold);
|
fold := symbolExpander.get(fold);
|
||||||
itm := Tree.Items.AddChild(fImpsNode, fold);
|
itm := Tree.Items.AddChild(fImpsNode, fold);
|
||||||
itm.ImageIndex := 5;
|
itm.ImageIndex := 5;
|
||||||
|
|
@ -429,11 +429,11 @@ begin
|
||||||
end;
|
end;
|
||||||
fImpsNode.Collapse(false);
|
fImpsNode.Collapse(false);
|
||||||
// display Includes (-I)
|
// display Includes (-I)
|
||||||
for fold in FProject.currentConfiguration.pathsOptions.importModulePaths do
|
for str in FProject.currentConfiguration.pathsOptions.importModulePaths do
|
||||||
begin
|
begin
|
||||||
if fold = '' then
|
if str = '' then
|
||||||
continue;
|
continue;
|
||||||
fold := expandFilenameEx(fProject.basePath, fold);
|
fold := expandFilenameEx(fProject.basePath, str);
|
||||||
fold := symbolExpander.get(fold);
|
fold := symbolExpander.get(fold);
|
||||||
itm := Tree.Items.AddChild(fInclNode, fold);
|
itm := Tree.Items.AddChild(fInclNode, fold);
|
||||||
itm.ImageIndex := 5;
|
itm.ImageIndex := 5;
|
||||||
|
|
@ -441,11 +441,11 @@ begin
|
||||||
end;
|
end;
|
||||||
fInclNode.Collapse(false);
|
fInclNode.Collapse(false);
|
||||||
// display extra sources (external .lib, *.a, *.d)
|
// display extra sources (external .lib, *.a, *.d)
|
||||||
for src in FProject.currentConfiguration.pathsOptions.extraSources do
|
for str in FProject.currentConfiguration.pathsOptions.extraSources do
|
||||||
begin
|
begin
|
||||||
if src = '' then
|
if str = '' then
|
||||||
continue;
|
continue;
|
||||||
src := expandFilenameEx(fProject.basePath, src);
|
src := expandFilenameEx(fProject.basePath, str);
|
||||||
src := symbolExpander.get(src);
|
src := symbolExpander.get(src);
|
||||||
lst := TStringList.Create;
|
lst := TStringList.Create;
|
||||||
try
|
try
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ inherited CESymbolListWidget: TCESymbolListWidget
|
||||||
Width = 302
|
Width = 302
|
||||||
Align = alClient
|
Align = alClient
|
||||||
BorderSpacing.Around = 4
|
BorderSpacing.Around = 4
|
||||||
DefaultItemHeight = 16
|
DefaultItemHeight = 18
|
||||||
HideSelection = False
|
HideSelection = False
|
||||||
Images = imgList
|
Images = imgList
|
||||||
ReadOnly = True
|
ReadOnly = True
|
||||||
|
|
|
||||||
|
|
@ -610,7 +610,7 @@ end;
|
||||||
function TCESymbolListWidget.TreeFilterEdit1FilterItem(Item: TObject; out
|
function TCESymbolListWidget.TreeFilterEdit1FilterItem(Item: TObject; out
|
||||||
Done: Boolean): Boolean;
|
Done: Boolean): Boolean;
|
||||||
begin
|
begin
|
||||||
if not fSmartFilter then exit;
|
if not fSmartFilter then exit(false);
|
||||||
//
|
//
|
||||||
if TreeFilterEdit1.Filter <> '' then
|
if TreeFilterEdit1.Filter <> '' then
|
||||||
tree.FullExpand
|
tree.FullExpand
|
||||||
|
|
@ -686,6 +686,7 @@ function getCatNode(node: TTreeNode; stype: TSymbolType ): TTreeNode;
|
||||||
end;
|
end;
|
||||||
//
|
//
|
||||||
begin
|
begin
|
||||||
|
result := nil;
|
||||||
if node = nil then case stype of
|
if node = nil then case stype of
|
||||||
_alias : exit(ndAlias);
|
_alias : exit(ndAlias);
|
||||||
_class : exit(ndClass);
|
_class : exit(ndClass);
|
||||||
|
|
|
||||||
|
|
@ -884,7 +884,7 @@ var
|
||||||
len: Integer;
|
len: Integer;
|
||||||
begin
|
begin
|
||||||
// empty items can be produced if completion list is too long
|
// 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...
|
// otherwise always at least 20 chars but...
|
||||||
// ... '20' depends on ce_dcd, case knd of, string literals length
|
// ... '20' depends on ce_dcd, case knd of, string literals length
|
||||||
result := true;
|
result := true;
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ unit ce_tools;
|
||||||
interface
|
interface
|
||||||
|
|
||||||
uses
|
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_common, ce_writableComponent, ce_interfaces, ce_observer, ce_inspectors,
|
||||||
ce_synmemo;
|
ce_synmemo;
|
||||||
|
|
||||||
|
|
@ -139,7 +139,7 @@ end;
|
||||||
|
|
||||||
procedure TCEToolItem.setChainBefore(value: TStringList);
|
procedure TCEToolItem.setChainBefore(value: TStringList);
|
||||||
begin
|
begin
|
||||||
// kept to reload old setting files. 'xhainBefore' is not saved anymore.
|
// kept to reload old setting files. 'chainBefore' is not saved anymore.
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TCEToolItem.setChainAfter(value: TStringList);
|
procedure TCEToolItem.setChainAfter(value: TStringList);
|
||||||
|
|
@ -271,7 +271,7 @@ destructor TCETools.destroy;
|
||||||
begin
|
begin
|
||||||
EntitiesConnector.removeObserver(self);
|
EntitiesConnector.removeObserver(self);
|
||||||
//
|
//
|
||||||
forceDirectory(getCoeditDocPath);
|
ForceDirectoriesUTF8(getCoeditDocPath);
|
||||||
saveToFile(getCoeditDocPath + toolsFname);
|
saveToFile(getCoeditDocPath + toolsFname);
|
||||||
fTools.Free;
|
fTools.Free;
|
||||||
inherited;
|
inherited;
|
||||||
|
|
|
||||||
|
|
@ -107,7 +107,7 @@ libc.so.6
|
||||||
|
|
||||||
Download ans setup the tools:
|
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.
|
* 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 !
|
* 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 !
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue