FmGuiLayoutEditor.hpp 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2024 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'FmGuiLayoutEditor.pas' rev: 36.00 (Windows)
  5. #ifndef FmGuiLayoutEditorHPP
  6. #define FmGuiLayoutEditorHPP
  7. #pragma delphiheader begin
  8. #pragma option push
  9. #if defined(__BORLANDC__) && !defined(__clang__)
  10. #pragma option -w- // All warnings off
  11. #pragma option -Vx // Zero-length empty class member
  12. #endif
  13. #pragma pack(push,8)
  14. #include <System.hpp>
  15. #include <SysInit.hpp>
  16. #include <Winapi.Windows.hpp>
  17. #include <Winapi.ShellAPI.hpp>
  18. #include <System.SysUtils.hpp>
  19. #include <System.Variants.hpp>
  20. #include <System.Classes.hpp>
  21. #include <Vcl.Graphics.hpp>
  22. #include <Vcl.Controls.hpp>
  23. #include <Vcl.Forms.hpp>
  24. #include <Vcl.Dialogs.hpp>
  25. #include <Vcl.Buttons.hpp>
  26. #include <Vcl.ExtDlgs.hpp>
  27. #include <Vcl.StdCtrls.hpp>
  28. #include <Vcl.ExtCtrls.hpp>
  29. #include <Vcl.Samples.Spin.hpp>
  30. #include <Vcl.Grids.hpp>
  31. #include <GLS.BaseClasses.hpp>
  32. #include <GLS.ImageUtils.hpp>
  33. #include <GLS.Gui.hpp>
  34. #include <Stage.Strings.hpp>
  35. #include <System.UITypes.hpp>
  36. //-- user supplied -----------------------------------------------------------
  37. namespace Fmguilayouteditor
  38. {
  39. //-- forward type declarations -----------------------------------------------
  40. class DELPHICLASS TGLLayoutEditorForm;
  41. //-- type declarations -------------------------------------------------------
  42. class PASCALIMPLEMENTATION TGLLayoutEditorForm : public Vcl::Forms::TForm
  43. {
  44. typedef Vcl::Forms::TForm inherited;
  45. __published:
  46. Vcl::Extctrls::TPanel* Panel1;
  47. Vcl::Extctrls::TPanel* Panel2;
  48. Vcl::Stdctrls::TListBox* items_list;
  49. Vcl::Stdctrls::TLabel* x_label;
  50. Vcl::Stdctrls::TLabel* y_label;
  51. Vcl::Buttons::TBitBtn* open_image_button;
  52. Vcl::Buttons::TBitBtn* open_button;
  53. Vcl::Buttons::TBitBtn* save_button;
  54. Vcl::Dialogs::TOpenDialog* OpenDialog1;
  55. Vcl::Dialogs::TSaveDialog* SaveDialog1;
  56. Vcl::Buttons::TBitBtn* delete_item_button;
  57. Vcl::Buttons::TBitBtn* add_button;
  58. Vcl::Stdctrls::TLabel* Label1;
  59. Vcl::Stdctrls::TLabel* Label2;
  60. Vcl::Samples::Spin::TSpinEdit* left_edit;
  61. Vcl::Samples::Spin::TSpinEdit* top_edit;
  62. Vcl::Stdctrls::TLabel* Label3;
  63. Vcl::Stdctrls::TLabel* Label4;
  64. Vcl::Samples::Spin::TSpinEdit* height_edit;
  65. Vcl::Samples::Spin::TSpinEdit* width_edit;
  66. Vcl::Stdctrls::TLabel* Label5;
  67. Vcl::Stdctrls::TEdit* name_edit;
  68. Vcl::Grids::TStringGrid* elements_grid;
  69. Vcl::Extctrls::TPanel* Panel3;
  70. Vcl::Buttons::TBitBtn* BitBtn4;
  71. Vcl::Buttons::TBitBtn* BitBtn5;
  72. Vcl::Forms::TScrollBox* ScrollBox1;
  73. Vcl::Extctrls::TImage* Image2;
  74. Vcl::Extctrls::TPaintBox* PaintBox1;
  75. Vcl::Extctrls::TImage* Image1;
  76. Vcl::Buttons::TBitBtn* BitBtn6;
  77. Vcl::Buttons::TBitBtn* BitBtn1;
  78. Gls::Gui::TGLGuiLayout* GLGuiLayout1;
  79. void __fastcall open_image_buttonClick(System::TObject* Sender);
  80. void __fastcall open_buttonClick(System::TObject* Sender);
  81. void __fastcall save_buttonClick(System::TObject* Sender);
  82. void __fastcall FormCreate(System::TObject* Sender);
  83. void __fastcall Image1MouseMove(System::TObject* Sender, System::Classes::TShiftState Shift, int X, int Y);
  84. void __fastcall Image1MouseDown(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  85. void __fastcall Image1MouseUp(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  86. void __fastcall add_buttonClick(System::TObject* Sender);
  87. void __fastcall delete_item_buttonClick(System::TObject* Sender);
  88. void __fastcall items_listClick(System::TObject* Sender);
  89. void __fastcall name_editExit(System::TObject* Sender);
  90. void __fastcall name_editKeyPress(System::TObject* Sender, System::WideChar &Key);
  91. void __fastcall elements_gridClick(System::TObject* Sender);
  92. void __fastcall left_editChange(System::TObject* Sender);
  93. void __fastcall top_editChange(System::TObject* Sender);
  94. void __fastcall width_editChange(System::TObject* Sender);
  95. void __fastcall height_editChange(System::TObject* Sender);
  96. void __fastcall BitBtn4Click(System::TObject* Sender);
  97. void __fastcall BitBtn6Click(System::TObject* Sender);
  98. void __fastcall elements_gridDblClick(System::TObject* Sender);
  99. private:
  100. void __fastcall SyncImages();
  101. void __fastcall DrawCurrentElement();
  102. void __fastcall RefreshComponentBox();
  103. bool __fastcall GetEnabledSpins();
  104. void __fastcall SetEnabledSpins(bool Value);
  105. public:
  106. void __fastcall Execute(Gls::Gui::TGLGuiLayout* AGUILayout);
  107. __property bool EnabledSpins = {read=GetEnabledSpins, write=SetEnabledSpins, nodefault};
  108. public:
  109. /* TCustomForm.Create */ inline __fastcall virtual TGLLayoutEditorForm(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
  110. /* TCustomForm.CreateNew */ inline __fastcall virtual TGLLayoutEditorForm(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
  111. /* TCustomForm.CreateScaledNew */ inline __fastcall virtual TGLLayoutEditorForm(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
  112. /* TCustomForm.Destroy */ inline __fastcall virtual ~TGLLayoutEditorForm() { }
  113. public:
  114. /* TWinControl.CreateParented */ inline __fastcall TGLLayoutEditorForm(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
  115. };
  116. //-- var, const, procedure ---------------------------------------------------
  117. extern DELPHI_PACKAGE TGLLayoutEditorForm* __fastcall GUILayoutEditorForm(void);
  118. extern DELPHI_PACKAGE void __fastcall ReleaseGUILayoutEditorForm(void);
  119. } /* namespace Fmguilayouteditor */
  120. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMGUILAYOUTEDITOR)
  121. using namespace Fmguilayouteditor;
  122. #endif
  123. #pragma pack(pop)
  124. #pragma option pop
  125. #pragma delphiheader end.
  126. //-- end unit ----------------------------------------------------------------
  127. #endif // FmGuiLayoutEditorHPP