-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathIDEControllerIntf.pas
33 lines (28 loc) · 1.05 KB
/
IDEControllerIntf.pas
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
unit IDEControllerIntf;
interface
uses
Classes, Types, IdeUnit, Project, IDEPageFrame;
type
IIDEController = interface
function SaveUnit(AUnit: TIDEUnit): Boolean;
function GetTabIndexBelowCursor(): Integer;
function SaveProject(AProject: TProject): Boolean;
procedure AddPage(ATitle: string; AFile: string = ''; AUnit: TIDEUnit = nil);
function ClosePage(AIndex: Integer): Boolean;
procedure CreateNewProject(ATitle: string; AProjectFolder: string);
procedure ClearProjects();
procedure OpenProject(AFile: string);
function GetActiveIDEPage(): TIDEPage;
function IDEUnitIsOpen(AUnit: TIDEUnit): Boolean;
function GetPageIndexForIdeUnit(AUnit: TIDEUnit): Integer;
procedure FokusIDEPageByUnit(AUnit: TIDEUnit);
procedure FokusIDEEdit(AUnitName: string; ADebugCursor: Integer = -1; AErrorCursor: Integer = -1);
procedure NewUnit();
procedure Compile();
procedure PeekCompile();
procedure Run();
procedure Stop();
procedure Pause();
end;
implementation
end.