home *** CD-ROM | disk | FTP | other *** search
-
- {*******************************************************}
- { }
- { Delphi Visual Component Library }
- { }
- { Copyright (c) 1995 Borland International }
- { }
- {*******************************************************}
-
- unit VcsIntf; { VCS Interface declarations }
-
- { This file defines the cooperative interface between the Delphi IDE
- and a VCS Manager DLL. The VCS Manager DLL must be named in the
- DELPHI.INI file at startup time under the isVersionContol section,
- as the value for the ivVCSManager variable.
-
- As the Delphi IDE loads, it will load the specified DLL and attempt
- to obtain a proc address for the DLL's initialization function, which
- must be exported using the VCSManagerEntryPoint constant. }
-
- interface
-
- uses WinTypes, VirtIntf, ToolIntf;
-
- const
- isVersionControl = 'Version Control';
- ivVCSManager = 'VCSManager';
- VCSManagerEntryPoint = 'INITVCS0011';
-
- type
-
- { The VCS client object should be returned by the VCS Manager DLL as the
- result of the init call. Delphi is responsible for freeing the
- client object before unloading the VCS Manager DLL.
-
- GetIDString - Called at initialization. Client should return
- a unique identification string. The following
- string is reserved for Borland use:
-
- Borland.StdVcs
-
- ExecuteVerb - Called when the user selects a verb from a menu.
-
- GetMenuName - Called to retrieve the name of the main menu item
- to be added to the application's menu bar. Return
- a blank string to indicate no menu.
-
- GetVerb - Called to retrieve the menu text for each verb.
- A verb may be returned as a blank string to create a
- seperator bar.
-
- GetVerbCount - Called to determine the number of available verbs. This
- function will not be called if the GetMenuName function
- returns a blank string (indicating no menu).
-
- GetVerbState - Called to determine the state of a particular verb.
- The return value is a bit field of various states.
- (See below for definition of bit values).
-
- ProjectChange - Called when there is any state change of the current
- project, i.e. when a project is destroyed or created.
-
- }
-
- TIVCSClient = class(TInterface)
- function GetIDString: string; virtual; export; abstract;
- procedure ExecuteVerb(Index: Integer); virtual; export; abstract;
- function GetMenuName: string; virtual; export; abstract;
- function GetVerb(Index: Integer): string; virtual; export; abstract;
- function GetVerbCount: Integer; virtual; export; abstract;
- function GetVerbState(Index: Integer): Word; virtual; export; abstract;
- procedure ProjectChange; virtual; export; abstract;
- end;
-
- { A function matching this signature must be exported from the VCS
- Manager DLL. }
- TVCSManagerInitProc = function (VCSInterface: TIToolServices): TIVCSClient;
-
- { Bit flags for GetVerbState function }
- const
- vsEnabled = $01; { Verb enabled if set, otherwise disabled }
- vsChecked = $02; { Verb checked if set, otherwise cleared }
-
- implementation
-
- end.
-
-