File: jcfuitoolsnogui.pas

package info (click to toggle)
lazarus 4.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 275,760 kB
  • sloc: pascal: 2,341,904; xml: 509,420; makefile: 348,726; cpp: 93,608; sh: 3,387; java: 609; perl: 297; sql: 222; ansic: 137
file content (74 lines) | stat: -rw-r--r-- 1,452 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
unit JcfUiToolsNoGUI;

{$mode ObjFPC}

interface

uses
  Classes, SysUtils, System.UITypes, ParseTreeNode,JcfUiTools;

type

TJcfUINoGUI=class(TJcfUIBase)
public
  procedure UpdateGUI(aCounter:integer=0;aUpdateInterval:integer=512);override;
  function MessageDlgUI(const aMessage:string):TModalResult;override;
  procedure ShowErrorMessageUI(const aMessage:string);override;
  procedure SetWaitCursorUI;override;
  procedure RestoreCursorUI;override;
  procedure ShowParseTreeUI(const pcRoot: TParseTreeNode);override;
  function  OpenDocumentUI(const aPath:string):boolean;override;
end;

implementation

uses
  crt;

procedure TJcfUINoGUI.UpdateGUI(aCounter:integer=0;aUpdateInterval:integer=512);
begin
end;

function TJcfUINoGUI.MessageDlgUI(const aMessage:string):TModalResult;
const
  MR:array[1..4] of TModalResult = (mrYes, mrNo, mrAbort, mrAll);
var
  C:char;
  I:integer;
begin
  WriteLn(aMessage);
  Write('Yes No Abort aLl <YNAL>? ');
  I:=0;
  repeat
    C:=ReadKey;
    C:=UpCase(C);
    I:=Pos(C,'YNAL');
  until I>0;
  WriteLn(C);
  result:=MR[I];
end;

procedure TJcfUINoGUI.ShowErrorMessageUI(const aMessage:string);
begin
  writeln(aMessage);
end;

procedure TJcfUINoGUI.SetWaitCursorUI;
begin
end;

procedure TJcfUINoGUI.RestoreCursorUI;
begin
end;

procedure TJcfUINoGUI.ShowParseTreeUI(const pcRoot: TParseTreeNode);
begin
end;

function TJcfUINoGUI.OpenDocumentUI(const aPath:string):boolean;
begin
  result:=false;
end;

end.