📄 列表8.1.txt
字号:
【列表8.1】类TsimpleHelpViewer的声明。
{
SimpleHelpViewer.pas - Implements the simplest possible Help Viewer.
}
unit SimpleHelpViewer;
interface
{ This unit has no interface! }
implementation
uses
SysUtils, classes, HelpIntfs,
QDialogs;
const
STR_VIEWER_NAME = 'Simple Help Viewer';
type
TSimpleHelpViewer = class (TInterfacedObject, ICustomHelpViewer)
private
FHelpManager: IHelpManager;
FViewerID: Integer;
FHelpStrings: TStringList;
procedure InternalShutdown;
public
constructor Create;
destructor Destroy; override;
{ ICustomHelpViewer methods }
function GetViewerName : String;
function UnderstandsKeyword(const HelpString: String): Integer;
function GetHelpStrings(const HelpString: String): TStringList;
function CanShowTableOfContents : Boolean;
procedure ShowTableOfContents;
procedure ShowHelp(const HelpString: String);
procedure NotifyID(const ViewerID: Integer);
procedure SoftShutDown;
procedure ShutDown;
end;
var
{HeloViewer is a module global that is initialized at program startup}
HelpViewer:TSimpleHelpViewer;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -