mirror of https://gitlab.com/basile.b/dexed.git
go back to 03
This commit is contained in:
parent
f28bca7e61
commit
28fce8d535
|
@ -16,11 +16,11 @@ The options are applied in real time but are reversible until the green checker
|
||||||
- <img src="{%include icurl%}other/accept.png" class="tlbric"/>: Validates the modifications made to the current category, after what they can't be canceled anymore.
|
- <img src="{%include icurl%}other/accept.png" class="tlbric"/>: Validates the modifications made to the current category, after what they can't be canceled anymore.
|
||||||
- <img src="{%include icurl%}other/cancel.png" class="tlbric"/>: Cancels and restores the previous state of the current category.
|
- <img src="{%include icurl%}other/cancel.png" class="tlbric"/>: Cancels and restores the previous state of the current category.
|
||||||
|
|
||||||
The options are persistent and saved in a distinct folder:
|
The options are persistent and saved in a specific folder:
|
||||||
|
|
||||||
- Linux:
|
- Linux:
|
||||||
**`/home/<your account>/.config/Coedit/`**.
|
**`/home/<your account>/.config/Coedit/`**.
|
||||||
- Windows:
|
- Windows:
|
||||||
**`?:\Users\<your account>\AppData\Roaming\Coedit\`**.
|
**`?:\Users\<your account>\AppData\Roaming\Coedit\`**.
|
||||||
|
|
||||||
Each widget and software component save their own files with a self-explanatory name so it's easy to find and modify the file that matches a particular setting.
|
Each software component saves its own file with a self-explanatory name so it's easy to find and modify the file that matches a particular setting.
|
|
@ -16,7 +16,7 @@ When no source file is opened but a project is, the widget displays the comments
|
||||||
When a source file has the focus and if it is not part of the project then the widget only displays the items located in this file.
|
When a source file has the focus and if it is not part of the project then the widget only displays the items located in this file.
|
||||||
Otherwise if a file has the focus and if it's part of the project then the whole project *todos* are displayed.
|
Otherwise if a file has the focus and if it's part of the project then the whole project *todos* are displayed.
|
||||||
|
|
||||||
It's possible to jump to a particular item in its file with a double click.
|
It's possible to display the comment that matches to a particular item with a double click.
|
||||||
The items cannot be edited in the widget.
|
The items cannot be edited in the widget.
|
||||||
|
|
||||||
- <img src="{%include icurl%}arrow/arrow_update.png" class="tlbric"/>: Refreshes the list manually.
|
- <img src="{%include icurl%}arrow/arrow_update.png" class="tlbric"/>: Refreshes the list manually.
|
||||||
|
|
|
@ -549,7 +549,7 @@
|
||||||
<CodeGeneration>
|
<CodeGeneration>
|
||||||
<SmartLinkUnit Value="True"/>
|
<SmartLinkUnit Value="True"/>
|
||||||
<Optimizations>
|
<Optimizations>
|
||||||
<OptimizationLevel Value="2"/>
|
<OptimizationLevel Value="3"/>
|
||||||
</Optimizations>
|
</Optimizations>
|
||||||
</CodeGeneration>
|
</CodeGeneration>
|
||||||
<Linking>
|
<Linking>
|
||||||
|
|
|
@ -526,7 +526,7 @@ end;
|
||||||
|
|
||||||
procedure TCENativeProject.checkMissingFiles;
|
procedure TCENativeProject.checkMissingFiles;
|
||||||
var
|
var
|
||||||
hasPatched: Boolean;
|
hasPatched: Boolean = false;
|
||||||
// either all the source files have moved or only the project file
|
// either all the source files have moved or only the project file
|
||||||
procedure checkMissingAllSources;
|
procedure checkMissingAllSources;
|
||||||
var
|
var
|
||||||
|
|
|
@ -442,7 +442,7 @@ var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
kind: Char;
|
kind: Char;
|
||||||
item: string;
|
item: string;
|
||||||
kindObj: TObject;
|
kindObj: TObject = nil;
|
||||||
begin
|
begin
|
||||||
if not fAvailable then exit;
|
if not fAvailable then exit;
|
||||||
if not fServerListening then exit;
|
if not fServerListening then exit;
|
||||||
|
|
|
@ -72,7 +72,8 @@ var
|
||||||
begin
|
begin
|
||||||
init;
|
init;
|
||||||
fDone := false;
|
fDone := false;
|
||||||
fProc.Input.Write(value[1], value.length);
|
if value.isNotEmpty then
|
||||||
|
fProc.Input.Write(value[1], value.length);
|
||||||
fProc.Input.WriteByte(10);
|
fProc.Input.WriteByte(10);
|
||||||
while not fDone do
|
while not fDone do
|
||||||
begin
|
begin
|
||||||
|
|
|
@ -1594,7 +1594,7 @@ end;
|
||||||
|
|
||||||
procedure TCEGdbWidget.startDebugging;
|
procedure TCEGdbWidget.startDebugging;
|
||||||
var
|
var
|
||||||
str: string;
|
str: string = '';
|
||||||
gdb: string;
|
gdb: string;
|
||||||
i: integer;
|
i: integer;
|
||||||
b: TPersistentBreakPoint;
|
b: TPersistentBreakPoint;
|
||||||
|
@ -1671,10 +1671,13 @@ begin
|
||||||
begin
|
begin
|
||||||
b := fBreakPoints[i];
|
b := fBreakPoints[i];
|
||||||
case b.kind of
|
case b.kind of
|
||||||
bpkBreak: str := 'break ' + b.filename + ':' + intToStr(b.line) + #10;
|
bpkBreak:
|
||||||
|
begin
|
||||||
|
str := 'break ' + b.filename + ':' + intToStr(b.line) + #10;
|
||||||
|
fGdb.Input.Write(str[1], str.length);
|
||||||
|
end;
|
||||||
bpkWatch: {TODO-cGDB: put watchpoint from persistent};
|
bpkWatch: {TODO-cGDB: put watchpoint from persistent};
|
||||||
end;
|
end;
|
||||||
fGdb.Input.Write(str[1], str.length);
|
|
||||||
end;
|
end;
|
||||||
gdbCommand('set disassembly-flavor ' + asmFlavorStr[fOptions.asmSyntax]);
|
gdbCommand('set disassembly-flavor ' + asmFlavorStr[fOptions.asmSyntax]);
|
||||||
// break on druntime exceptions + any throw'
|
// break on druntime exceptions + any throw'
|
||||||
|
@ -1845,7 +1848,8 @@ procedure parseGdbout(const str: string; var json: TJSONObject);
|
||||||
|
|
||||||
procedure parseProperty(node: TJSONObject; r: PStringRange);
|
procedure parseProperty(node: TJSONObject; r: PStringRange);
|
||||||
var
|
var
|
||||||
idt,v: string;
|
idt: string = '';
|
||||||
|
v: string;
|
||||||
c: char;
|
c: char;
|
||||||
begin
|
begin
|
||||||
while true do
|
while true do
|
||||||
|
@ -2000,7 +2004,7 @@ var
|
||||||
arr: TJSONArray;
|
arr: TJSONArray;
|
||||||
k: TListItem;
|
k: TListItem;
|
||||||
// common data
|
// common data
|
||||||
nme: string;
|
nme: string = '';
|
||||||
reason: string;
|
reason: string;
|
||||||
addr: PtrUint = 0;
|
addr: PtrUint = 0;
|
||||||
func:string = '';
|
func:string = '';
|
||||||
|
|
|
@ -215,6 +215,7 @@ procedure THalsteadMetrics.Measure(document: TCESynMemo);
|
||||||
case fBugCountMethod of
|
case fBugCountMethod of
|
||||||
pow23div3000: bgs := power(eff, 0.666667) / 3000;
|
pow23div3000: bgs := power(eff, 0.666667) / 3000;
|
||||||
div3000: bgs := eff / 3000;
|
div3000: bgs := eff / 3000;
|
||||||
|
else bgs := 0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
bugsSum += bgs;
|
bugsSum += bgs;
|
||||||
|
|
|
@ -768,7 +768,7 @@ end;
|
||||||
|
|
||||||
procedure TCELibManEditorWidget.btnSelRootClick(Sender: TObject);
|
procedure TCELibManEditorWidget.btnSelRootClick(Sender: TObject);
|
||||||
var
|
var
|
||||||
dir, outdir: string;
|
dir: string;
|
||||||
begin
|
begin
|
||||||
if List.Selected.isNil then
|
if List.Selected.isNil then
|
||||||
exit;
|
exit;
|
||||||
|
|
|
@ -108,6 +108,7 @@ end;
|
||||||
|
|
||||||
function TStringRange.init(const str: string): PStringRange;
|
function TStringRange.init(const str: string): PStringRange;
|
||||||
begin
|
begin
|
||||||
|
Result := @self;
|
||||||
ptr := nil;
|
ptr := nil;
|
||||||
pos := 0;
|
pos := 0;
|
||||||
len := 0;
|
len := 0;
|
||||||
|
@ -116,7 +117,6 @@ begin
|
||||||
ptr := @str[1];
|
ptr := @str[1];
|
||||||
pos := 0;
|
pos := 0;
|
||||||
len := length(str);
|
len := length(str);
|
||||||
Result := @self;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TStringRange.init(const pchr: PChar; length: integer): PStringRange;
|
function TStringRange.init(const pchr: PChar; length: integer): PStringRange;
|
||||||
|
|
|
@ -1440,7 +1440,7 @@ procedure TCESynMemo.ShowPhobosDoc;
|
||||||
var
|
var
|
||||||
str: string;
|
str: string;
|
||||||
pth: string;
|
pth: string;
|
||||||
idt: string;
|
idt: string = '';
|
||||||
pos: integer;
|
pos: integer;
|
||||||
len: integer;
|
len: integer;
|
||||||
sum: integer;
|
sum: integer;
|
||||||
|
@ -2132,8 +2132,8 @@ var
|
||||||
i: integer;
|
i: integer;
|
||||||
p: integer;
|
p: integer;
|
||||||
c: integer = 0;
|
c: integer = 0;
|
||||||
tok: PLexToken;
|
tok: PLexToken = nil;
|
||||||
ton: PLexToken;
|
ton: PLexToken = nil;
|
||||||
bet: boolean;
|
bet: boolean;
|
||||||
begin
|
begin
|
||||||
p := SelStart;
|
p := SelStart;
|
||||||
|
|
|
@ -398,7 +398,7 @@ end;
|
||||||
|
|
||||||
procedure TCETools.executeTool(tool: TCEToolItem);
|
procedure TCETools.executeTool(tool: TCEToolItem);
|
||||||
var
|
var
|
||||||
txt: string;
|
txt: string = '';
|
||||||
begin
|
begin
|
||||||
if tool.isNil then exit;
|
if tool.isNil then exit;
|
||||||
//
|
//
|
||||||
|
@ -412,7 +412,8 @@ begin
|
||||||
pikLine: txt := fDoc.LineText;
|
pikLine: txt := fDoc.LineText;
|
||||||
pikSelection: txt := fDoc.SelText;
|
pikSelection: txt := fDoc.SelText;
|
||||||
end;
|
end;
|
||||||
tool.fProcess.Input.Write(txt[1], txt.length);
|
if txt.isNotEmpty then
|
||||||
|
tool.fProcess.Input.Write(txt[1], txt.length);
|
||||||
tool.fProcess.CloseInput;
|
tool.fProcess.CloseInput;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
Loading…
Reference in New Issue