File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,17 @@ TPyDelphiFileOpenDialog = class(TPyDelphiComponent)
4545 write SetDelphiObject;
4646 end ;
4747
48+ TPyDelphiSaveDialog = class (TPyDelphiOpenDialog)
49+ private
50+ function GetDelphiObject : TSaveDialog;
51+ procedure SetDelphiObject (const Value : TSaveDialog);
52+ public
53+ class function DelphiObjectClass : TClass; override;
54+ // Properties
55+ property DelphiObject: TSaveDialog read GetDelphiObject
56+ write SetDelphiObject;
57+ end ;
58+
4859implementation
4960
5061uses
@@ -102,6 +113,7 @@ procedure TDialogRegistration.RegisterWrappers(APyDelphiWrapper
102113 inherited ;
103114 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiOpenDialog);
104115 APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiFileOpenDialog);
116+ APyDelphiWrapper.RegisterDelphiWrapper(TPyDelphiSaveDialog);
105117end ;
106118
107119{ TPyDelphiOpenDialog }
@@ -206,6 +218,23 @@ procedure TPyDelphiFileOpenDialog.SetDelphiObject(const Value: TFileOpenDialog);
206218 inherited DelphiObject := Value ;
207219end ;
208220
221+ { TPyDelphiSaveDialog }
222+
223+ class function TPyDelphiSaveDialog.DelphiObjectClass : TClass;
224+ begin
225+ Result := TSaveDialog;
226+ end ;
227+
228+ function TPyDelphiSaveDialog.GetDelphiObject : TSaveDialog;
229+ begin
230+ Result := TSaveDialog(inherited DelphiObject);
231+ end ;
232+
233+ procedure TPyDelphiSaveDialog.SetDelphiObject (const Value : TSaveDialog);
234+ begin
235+ inherited DelphiObject := Value ;
236+ end ;
237+
209238initialization
210239 RegisteredUnits.Add(TDialogRegistration.Create);
211240 CoInitialize(nil );
You can’t perform that action at this time.
0 commit comments