1 |
|
---|
2 | {*****************************************************************************}
|
---|
3 | { }
|
---|
4 | { Tnt Delphi Unicode Controls }
|
---|
5 | { http://www.tntware.com/delphicontrols/unicode/ }
|
---|
6 | { Version: 2.3.0 }
|
---|
7 | { }
|
---|
8 | { Copyright (c) 2002-2007, Troy Wolbrink (troy.wolbrink@tntware.com) }
|
---|
9 | { }
|
---|
10 | {*****************************************************************************}
|
---|
11 |
|
---|
12 | unit TntDBClientActns;
|
---|
13 |
|
---|
14 | {$INCLUDE TntCompilers.inc}
|
---|
15 |
|
---|
16 | interface
|
---|
17 |
|
---|
18 | uses
|
---|
19 | Classes, ActnList, DBClientActns, TntActnList;
|
---|
20 |
|
---|
21 | type
|
---|
22 | {TNT-WARN TClientDataSetApply}
|
---|
23 | TTntClientDataSetApply = class(TClientDataSetApply{TNT-ALLOW TClientDataSetApply}, ITntAction)
|
---|
24 | private
|
---|
25 | function GetCaption: WideString;
|
---|
26 | procedure SetCaption(const Value: WideString);
|
---|
27 | function GetHint: WideString;
|
---|
28 | procedure SetHint(const Value: WideString);
|
---|
29 | protected
|
---|
30 | procedure DefineProperties(Filer: TFiler); override;
|
---|
31 | public
|
---|
32 | procedure Assign(Source: TPersistent); override;
|
---|
33 | published
|
---|
34 | property Caption: WideString read GetCaption write SetCaption;
|
---|
35 | property Hint: WideString read GetHint write SetHint;
|
---|
36 | end;
|
---|
37 |
|
---|
38 | {TNT-WARN TClientDataSetRevert}
|
---|
39 | TTntClientDataSetRevert = class(TClientDataSetRevert{TNT-ALLOW TClientDataSetRevert}, ITntAction)
|
---|
40 | private
|
---|
41 | function GetCaption: WideString;
|
---|
42 | procedure SetCaption(const Value: WideString);
|
---|
43 | function GetHint: WideString;
|
---|
44 | procedure SetHint(const Value: WideString);
|
---|
45 | protected
|
---|
46 | procedure DefineProperties(Filer: TFiler); override;
|
---|
47 | public
|
---|
48 | procedure Assign(Source: TPersistent); override;
|
---|
49 | published
|
---|
50 | property Caption: WideString read GetCaption write SetCaption;
|
---|
51 | property Hint: WideString read GetHint write SetHint;
|
---|
52 | end;
|
---|
53 |
|
---|
54 | {TNT-WARN TClientDataSetUndo}
|
---|
55 | TTntClientDataSetUndo = class(TClientDataSetUndo{TNT-ALLOW TClientDataSetUndo}, ITntAction)
|
---|
56 | private
|
---|
57 | function GetCaption: WideString;
|
---|
58 | procedure SetCaption(const Value: WideString);
|
---|
59 | function GetHint: WideString;
|
---|
60 | procedure SetHint(const Value: WideString);
|
---|
61 | protected
|
---|
62 | procedure DefineProperties(Filer: TFiler); override;
|
---|
63 | public
|
---|
64 | procedure Assign(Source: TPersistent); override;
|
---|
65 | published
|
---|
66 | property Caption: WideString read GetCaption write SetCaption;
|
---|
67 | property Hint: WideString read GetHint write SetHint;
|
---|
68 | end;
|
---|
69 |
|
---|
70 | implementation
|
---|
71 |
|
---|
72 | uses
|
---|
73 | TntClasses, TntDBActns;
|
---|
74 |
|
---|
75 | {TNT-IGNORE-UNIT}
|
---|
76 |
|
---|
77 | procedure TntDBClientActn_AfterInherited_Assign(Action: TCustomAction{TNT-ALLOW TCustomAction}; Source: TPersistent);
|
---|
78 | begin
|
---|
79 | TntDBActn_AfterInherited_Assign(Action, Source);
|
---|
80 | // TClientDataSetApply
|
---|
81 | if (Action is TClientDataSetApply) and (Source is TClientDataSetApply) then begin
|
---|
82 | TClientDataSetApply(Action).MaxErrors := TClientDataSetApply(Source).MaxErrors;
|
---|
83 | TClientDataSetApply(Action).DisplayErrorDlg := TClientDataSetApply(Source).DisplayErrorDlg;
|
---|
84 | end;
|
---|
85 | // TClientDataSetUndo
|
---|
86 | if (Action is TClientDataSetUndo) and (Source is TClientDataSetUndo) then begin
|
---|
87 | TClientDataSetUndo(Action).FollowChange := TClientDataSetUndo(Source).FollowChange;
|
---|
88 | end;
|
---|
89 | end;
|
---|
90 |
|
---|
91 | //-------------------------
|
---|
92 | // TNT DB ACTNS
|
---|
93 | //-------------------------
|
---|
94 |
|
---|
95 | { TTntClientDataSetApply }
|
---|
96 |
|
---|
97 | procedure TTntClientDataSetApply.Assign(Source: TPersistent);
|
---|
98 | begin
|
---|
99 | inherited;
|
---|
100 | TntDBClientActn_AfterInherited_Assign(Self, Source);
|
---|
101 | end;
|
---|
102 |
|
---|
103 | procedure TTntClientDataSetApply.DefineProperties(Filer: TFiler);
|
---|
104 | begin
|
---|
105 | inherited;
|
---|
106 | TntPersistent_AfterInherited_DefineProperties(Filer, Self);
|
---|
107 | end;
|
---|
108 |
|
---|
109 | function TTntClientDataSetApply.GetCaption: WideString;
|
---|
110 | begin
|
---|
111 | Result := TntAction_GetCaption(Self);
|
---|
112 | end;
|
---|
113 |
|
---|
114 | procedure TTntClientDataSetApply.SetCaption(const Value: WideString);
|
---|
115 | begin
|
---|
116 | TntAction_SetCaption(Self, Value);
|
---|
117 | end;
|
---|
118 |
|
---|
119 | function TTntClientDataSetApply.GetHint: WideString;
|
---|
120 | begin
|
---|
121 | Result := TntAction_GetHint(Self);
|
---|
122 | end;
|
---|
123 |
|
---|
124 | procedure TTntClientDataSetApply.SetHint(const Value: WideString);
|
---|
125 | begin
|
---|
126 | TntAction_SetHint(Self, Value);
|
---|
127 | end;
|
---|
128 |
|
---|
129 | { TTntClientDataSetRevert }
|
---|
130 |
|
---|
131 | procedure TTntClientDataSetRevert.Assign(Source: TPersistent);
|
---|
132 | begin
|
---|
133 | inherited;
|
---|
134 | TntDBClientActn_AfterInherited_Assign(Self, Source);
|
---|
135 | end;
|
---|
136 |
|
---|
137 | procedure TTntClientDataSetRevert.DefineProperties(Filer: TFiler);
|
---|
138 | begin
|
---|
139 | inherited;
|
---|
140 | TntPersistent_AfterInherited_DefineProperties(Filer, Self);
|
---|
141 | end;
|
---|
142 |
|
---|
143 | function TTntClientDataSetRevert.GetCaption: WideString;
|
---|
144 | begin
|
---|
145 | Result := TntAction_GetCaption(Self);
|
---|
146 | end;
|
---|
147 |
|
---|
148 | procedure TTntClientDataSetRevert.SetCaption(const Value: WideString);
|
---|
149 | begin
|
---|
150 | TntAction_SetCaption(Self, Value);
|
---|
151 | end;
|
---|
152 |
|
---|
153 | function TTntClientDataSetRevert.GetHint: WideString;
|
---|
154 | begin
|
---|
155 | Result := TntAction_GetHint(Self);
|
---|
156 | end;
|
---|
157 |
|
---|
158 | procedure TTntClientDataSetRevert.SetHint(const Value: WideString);
|
---|
159 | begin
|
---|
160 | TntAction_SetHint(Self, Value);
|
---|
161 | end;
|
---|
162 |
|
---|
163 | { TTntClientDataSetUndo }
|
---|
164 |
|
---|
165 | procedure TTntClientDataSetUndo.Assign(Source: TPersistent);
|
---|
166 | begin
|
---|
167 | inherited;
|
---|
168 | TntDBClientActn_AfterInherited_Assign(Self, Source);
|
---|
169 | end;
|
---|
170 |
|
---|
171 | procedure TTntClientDataSetUndo.DefineProperties(Filer: TFiler);
|
---|
172 | begin
|
---|
173 | inherited;
|
---|
174 | TntPersistent_AfterInherited_DefineProperties(Filer, Self);
|
---|
175 | end;
|
---|
176 |
|
---|
177 | function TTntClientDataSetUndo.GetCaption: WideString;
|
---|
178 | begin
|
---|
179 | Result := TntAction_GetCaption(Self);
|
---|
180 | end;
|
---|
181 |
|
---|
182 | procedure TTntClientDataSetUndo.SetCaption(const Value: WideString);
|
---|
183 | begin
|
---|
184 | TntAction_SetCaption(Self, Value);
|
---|
185 | end;
|
---|
186 |
|
---|
187 | function TTntClientDataSetUndo.GetHint: WideString;
|
---|
188 | begin
|
---|
189 | Result := TntAction_GetHint(Self);
|
---|
190 | end;
|
---|
191 |
|
---|
192 | procedure TTntClientDataSetUndo.SetHint(const Value: WideString);
|
---|
193 | begin
|
---|
194 | TntAction_SetHint(Self, Value);
|
---|
195 | end;
|
---|
196 |
|
---|
197 | end.
|
---|