2
0

FMxCUDAEditor.pas 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. //
  2. // The graphics engine GXScene https://github.com/glscene
  3. //
  4. unit FMxCUDAEditor;
  5. (* Editor of TgxCUDA *)
  6. interface
  7. uses
  8. System.SysUtils,
  9. System.Types,
  10. System.UITypes,
  11. System.Classes,
  12. System.Variants,
  13. FMX.Types,
  14. FMX.Controls,
  15. FMX.Forms,
  16. FMX.Graphics,
  17. FMX.Dialogs,
  18. FMX.Layouts,
  19. FMX.ListBox,
  20. FMX.Objects,
  21. FMX.StdCtrls,
  22. FMX.Controls.Presentation,
  23. Stage.Strings,
  24. CUDAx.API,
  25. CUDAx.FFTPlan,
  26. CUDAx.Graphics;
  27. type
  28. TCUDAEditorForm = class(TForm)
  29. ToolBar1: TToolBar;
  30. SBOpen: TSpeedButton;
  31. Image1: TImage;
  32. SBSave: TSpeedButton;
  33. Image2: TImage;
  34. SBHelp: TSpeedButton;
  35. Image3: TImage;
  36. ListBox1: TListBox;
  37. end;
  38. var
  39. CUDAEditorForm: TCUDAEditorForm;
  40. function GetCUDAEditorForm: TCUDAEditorForm;
  41. procedure ReleaseCUDAEditorForm;
  42. //-------------------------------------------------------------
  43. implementation
  44. //-------------------------------------------------------------
  45. {$R *.fmx}
  46. var
  47. vCUDAEditorForm: TCUDAEditorForm;
  48. function GetCUDAEditorForm: TCUDAEditorForm;
  49. begin
  50. if not Assigned(vCUDAEditorForm) then
  51. vCUDAEditorForm := TCUDAEditorForm.Create(nil);
  52. Result := vCUDAEditorForm;
  53. end;
  54. procedure ReleaseCUDAEditorForm;
  55. begin
  56. if Assigned(vCUDAEditorForm) then
  57. begin
  58. vCUDAEditorForm.Free;
  59. vCUDAEditorForm := nil;
  60. end;
  61. end;
  62. end.