forked from rvelthuis/AutoSuffix
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOpenTools.LocalMenus.pas
More file actions
132 lines (110 loc) · 2.86 KB
/
Copy pathOpenTools.LocalMenus.pas
File metadata and controls
132 lines (110 loc) · 2.86 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
unit OpenTools.LocalMenus;
interface
uses
ToolsAPI, System.Classes;
type
TLocalMenuBase = class(TNotifierObject, IOTALocalMenu)
private
FCaption: string;
FChecked: Boolean;
FEnabled: Boolean;
FHelpContext: Integer;
FName: string;
FParent: string;
FPosition: Integer;
FVerb: string;
FOnExecute: TNotifyEvent;
public
// IOTALocalMenu
function GetCaption: string;
function GetChecked: Boolean;
function GetEnabled: Boolean;
function GetHelpContext: Integer;
function GetName: string;
function GetParent: string;
function GetPosition: Integer;
function GetVerb: string;
procedure SetCaption(const Value: string);
procedure SetChecked(Value: Boolean);
procedure SetEnabled(Value: Boolean);
procedure SetHelpContext(Value: Integer);
procedure SetName(const Value: string);
procedure SetParent(const Value: string);
procedure SetPosition(Value: Integer);
procedure SetVerb(const Value: string);
property Caption: string read GetCaption write SetCaption;
property Checked: Boolean read GetChecked write SetChecked;
property Enabled: Boolean read GetEnabled write SetEnabled;
property HelpContext: Integer read GetHelpContext write SetHelpContext;
property Name: string read GetName write SetName;
property Parent: string read GetParent write SetParent;
property Position: Integer read GetPosition write SetPosition;
property Verb: string read GetVerb write SetVerb;
property OnExute: TNotifyEvent read FOnExecute write FOnExecute;
end;
implementation
function TLocalMenuBase.GetCaption: string;
begin
Result := FCaption;
end;
function TLocalMenuBase.GetChecked: Boolean;
begin
Result := FChecked;
end;
function TLocalMenuBase.GetEnabled: Boolean;
begin
Result := FEnabled;
end;
function TLocalMenuBase.GetHelpContext: Integer;
begin
Result := FHelpContext;
end;
function TLocalMenuBase.GetName: string;
begin
Result := FName;
end;
function TLocalMenuBase.GetParent: string;
begin
Result := FParent;
end;
function TLocalMenuBase.GetPosition: Integer;
begin
Result := FPosition;
end;
function TLocalMenuBase.GetVerb: string;
begin
Result := FVerb;
end;
procedure TLocalMenuBase.SetCaption(const Value: string);
begin
FCaption := Value;
end;
procedure TLocalMenuBase.SetChecked(Value: Boolean);
begin
FChecked := Value;
end;
procedure TLocalMenuBase.SetEnabled(Value: Boolean);
begin
FEnabled := Value;
end;
procedure TLocalMenuBase.SetHelpContext(Value: Integer);
begin
FHelpContext := Value;
end;
procedure TLocalMenuBase.SetName(const Value: string);
begin
FName := Value;
end;
procedure TLocalMenuBase.SetParent(const Value: string);
begin
FParent := Value;
end;
procedure TLocalMenuBase.SetPosition(Value: Integer);
begin
FPosition := Value;
end;
procedure TLocalMenuBase.SetVerb(const Value: string);
begin
FVerb := Value;
end;
end.