FmGuiSkinEditor.hpp 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. // CodeGear C++Builder
  2. // Copyright (c) 1995, 2024 by Embarcadero Technologies, Inc.
  3. // All rights reserved
  4. // (DO NOT EDIT: machine generated header) 'FmGuiSkinEditor.pas' rev: 36.00 (Windows)
  5. #ifndef FmGuiSkinEditorHPP
  6. #define FmGuiSkinEditorHPP
  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.Messages.hpp>
  18. #include <System.SysUtils.hpp>
  19. #include <System.Classes.hpp>
  20. #include <Vcl.Graphics.hpp>
  21. #include <Vcl.Controls.hpp>
  22. #include <Vcl.Forms.hpp>
  23. #include <Vcl.Dialogs.hpp>
  24. #include <Vcl.StdCtrls.hpp>
  25. #include <Vcl.ComCtrls.hpp>
  26. #include <Vcl.ExtCtrls.hpp>
  27. #include <Vcl.Menus.hpp>
  28. #include <GLS.Texture.hpp>
  29. #include <GLS.Scene.hpp>
  30. #include <GLS.Objects.hpp>
  31. #include <GLS.Windows.hpp>
  32. #include <GLS.HUDObjects.hpp>
  33. #include <GLS.SceneViewer.hpp>
  34. #include <GLS.Gui.hpp>
  35. #include <GLS.Graphics.hpp>
  36. #include <Stage.Utils.hpp>
  37. #include <GLS.Coordinates.hpp>
  38. #include <GLS.BaseClasses.hpp>
  39. #include <GLS.Material.hpp>
  40. #include <System.Types.hpp>
  41. #include <System.UITypes.hpp>
  42. //-- user supplied -----------------------------------------------------------
  43. namespace Fmguiskineditor
  44. {
  45. //-- forward type declarations -----------------------------------------------
  46. class DELPHICLASS TGLSkinEditorForm;
  47. //-- type declarations -------------------------------------------------------
  48. class PASCALIMPLEMENTATION TGLSkinEditorForm : public Vcl::Forms::TForm
  49. {
  50. typedef Vcl::Forms::TForm inherited;
  51. __published:
  52. Gls::Scene::TGLScene* GLScene1;
  53. Gls::Scene::TGLCamera* GLCamera1;
  54. Gls::Windows::TGLPanel* GLPanel1;
  55. Gls::Hudobjects::TGLHUDSprite* HUDSprite1;
  56. Gls::Scene::TGLMemoryViewer* GLMemoryViewer1;
  57. Gls::Scene::TGLLightSource* GLLightSource1;
  58. Vcl::Comctrls::TStatusBar* StatusBar;
  59. Vcl::Extctrls::TPanel* panBottom;
  60. Vcl::Extctrls::TPanel* panZoomImage;
  61. Vcl::Extctrls::TImage* imgFull;
  62. Vcl::Stdctrls::TScrollBar* sbarHorizontal;
  63. Vcl::Stdctrls::TScrollBar* sbarVertical;
  64. Vcl::Stdctrls::TButton* Button5;
  65. Vcl::Stdctrls::TButton* Button6;
  66. Vcl::Extctrls::TPanel* panImageProperties;
  67. Vcl::Stdctrls::TLabel* Label5;
  68. Vcl::Stdctrls::TLabel* Label6;
  69. Vcl::Extctrls::TPanel* Panel2;
  70. Vcl::Extctrls::TImage* imgPreview;
  71. Vcl::Extctrls::TPanel* Panel3;
  72. Vcl::Stdctrls::TLabel* Label2;
  73. Vcl::Stdctrls::TLabel* Label1;
  74. Vcl::Stdctrls::TButton* Button3;
  75. Vcl::Stdctrls::TButton* Button4;
  76. Vcl::Stdctrls::TCheckBox* CheckBox1;
  77. Vcl::Stdctrls::TEdit* WidthEdit;
  78. Vcl::Stdctrls::TEdit* HeightEdit;
  79. Vcl::Extctrls::TPanel* panElements;
  80. Vcl::Extctrls::TBevel* Bevel2;
  81. Vcl::Extctrls::TBevel* Bevel1;
  82. Vcl::Stdctrls::TLabel* Label3;
  83. Vcl::Stdctrls::TLabel* Label4;
  84. Vcl::Stdctrls::TLabel* Label11;
  85. Vcl::Stdctrls::TLabel* Label12;
  86. Vcl::Stdctrls::TLabel* Label13;
  87. Vcl::Stdctrls::TLabel* Label9;
  88. Vcl::Stdctrls::TLabel* Label10;
  89. Vcl::Stdctrls::TLabel* Label14;
  90. Vcl::Stdctrls::TListBox* lbElements;
  91. Vcl::Stdctrls::TButton* btnAdd;
  92. Vcl::Stdctrls::TButton* btnDelete;
  93. Vcl::Stdctrls::TComboBox* ComboBox1;
  94. Vcl::Stdctrls::TEdit* LeftEdit;
  95. Vcl::Stdctrls::TEdit* TopEdit;
  96. Vcl::Stdctrls::TEdit* RightEdit;
  97. Vcl::Stdctrls::TEdit* BottomEdit;
  98. Vcl::Stdctrls::TEdit* ScaleXEdit;
  99. Vcl::Stdctrls::TEdit* ScaleYEdit;
  100. Vcl::Menus::TPopupMenu* popElements;
  101. Vcl::Menus::TMenuItem* mnuTopLeft;
  102. Vcl::Menus::TMenuItem* mnuTop;
  103. Vcl::Menus::TMenuItem* mnuTopRight;
  104. Vcl::Menus::TMenuItem* mnuLeft;
  105. Vcl::Menus::TMenuItem* mnuCenter;
  106. Vcl::Menus::TMenuItem* mnuRight;
  107. Vcl::Menus::TMenuItem* mnuBottomLeft;
  108. Vcl::Menus::TMenuItem* mnuBottom;
  109. Vcl::Menus::TMenuItem* mnuBottomRight;
  110. Vcl::Menus::TMenuItem* N1;
  111. Vcl::Menus::TMenuItem* mnuAddAll;
  112. Vcl::Menus::TMenuItem* N2;
  113. Vcl::Menus::TMenuItem* mnuAllTop;
  114. Vcl::Menus::TMenuItem* mnuAllMiddle;
  115. Vcl::Menus::TMenuItem* mnuAllBottom;
  116. void __fastcall FormCreate(System::TObject* Sender);
  117. void __fastcall FormDestroy(System::TObject* Sender);
  118. void __fastcall Button3Click(System::TObject* Sender);
  119. void __fastcall Button4Click(System::TObject* Sender);
  120. void __fastcall ScrollBarScroll(System::TObject* Sender, System::Uitypes::TScrollCode ScrollCode, int &ScrollPos);
  121. void __fastcall ScrollbarChange(System::TObject* Sender);
  122. void __fastcall WidthEditChange(System::TObject* Sender);
  123. void __fastcall HeightEditChange(System::TObject* Sender);
  124. void __fastcall btnAddClick(System::TObject* Sender);
  125. void __fastcall lbElementsClick(System::TObject* Sender);
  126. void __fastcall ComboBox1Change(System::TObject* Sender);
  127. void __fastcall btnDeleteClick(System::TObject* Sender);
  128. void __fastcall imgFullMouseDown(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  129. void __fastcall imgFullMouseUp(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  130. void __fastcall imgFullMouseMove(System::TObject* Sender, System::Classes::TShiftState Shift, int X, int Y);
  131. void __fastcall lbElementsKeyDown(System::TObject* Sender, System::Word &Key, System::Classes::TShiftState Shift);
  132. void __fastcall CheckBox1Click(System::TObject* Sender);
  133. void __fastcall ScaleXEditChange(System::TObject* Sender);
  134. void __fastcall ScaleYEditChange(System::TObject* Sender);
  135. void __fastcall LeftEditChange(System::TObject* Sender);
  136. void __fastcall TopEditChange(System::TObject* Sender);
  137. void __fastcall RightEditChange(System::TObject* Sender);
  138. void __fastcall BottomEditChange(System::TObject* Sender);
  139. void __fastcall EditKeyPress(System::TObject* Sender, System::WideChar &Key);
  140. void __fastcall FormResize(System::TObject* Sender);
  141. void __fastcall MenuItemClick(System::TObject* Sender);
  142. void __fastcall mnuAddAllClick(System::TObject* Sender);
  143. void __fastcall mnuAllTopClick(System::TObject* Sender);
  144. void __fastcall mnuAllMiddleClick(System::TObject* Sender);
  145. void __fastcall mnuAllBottomClick(System::TObject* Sender);
  146. void __fastcall imgPreviewMouseDown(System::TObject* Sender, System::Uitypes::TMouseButton Button, System::Classes::TShiftState Shift, int X, int Y);
  147. void __fastcall imgPreviewMouseMove(System::TObject* Sender, System::Classes::TShiftState Shift, int X, int Y);
  148. private:
  149. System::Classes::TWndMethod FOriginalWndProc;
  150. Winapi::Windows::TRect FFocusRect;
  151. Winapi::Windows::TRect VisibleRect;
  152. Winapi::Windows::TPoint PreviewMousePoint;
  153. int PreviewWidth;
  154. int PreviewHeight;
  155. Winapi::Windows::TPoint FullMousePoint;
  156. bool MouseDown;
  157. void __fastcall ImageWndProc(Winapi::Messages::TMessage &Message);
  158. void __fastcall DrawImageFocusRect(const Winapi::Windows::TRect &ARect);
  159. void __fastcall AlignZoomPanel();
  160. void __fastcall UpdateRegionEdits();
  161. void __fastcall SetEditState(Vcl::Controls::TControl* Parent, bool Enabled);
  162. void __fastcall AddElement(int Index);
  163. void __fastcall DrawCrossair(const Winapi::Windows::TPoint &Point);
  164. public:
  165. Gls::Gui::TGLGuiElementList* TheGuiComponent;
  166. Gls::Gui::TGLGuiElement* SelectedElement;
  167. Gls::Texture::TGLTexture* Tex;
  168. float Zoom;
  169. int Width;
  170. int Height;
  171. bool __fastcall Edit(Gls::Gui::TGLGuiElementList* GuiComponent);
  172. void __fastcall Render();
  173. void __fastcall SetMax(Vcl::Stdctrls::TScrollBar* Scrollbar, int Val);
  174. public:
  175. /* TCustomForm.Create */ inline __fastcall virtual TGLSkinEditorForm(System::Classes::TComponent* AOwner) : Vcl::Forms::TForm(AOwner) { }
  176. /* TCustomForm.CreateNew */ inline __fastcall virtual TGLSkinEditorForm(System::Classes::TComponent* AOwner, int Dummy) : Vcl::Forms::TForm(AOwner, Dummy) { }
  177. /* TCustomForm.CreateScaledNew */ inline __fastcall virtual TGLSkinEditorForm(System::Classes::TComponent* AOwner, int ADPI, int Dummy) : Vcl::Forms::TForm(AOwner, ADPI, Dummy) { }
  178. /* TCustomForm.Destroy */ inline __fastcall virtual ~TGLSkinEditorForm() { }
  179. public:
  180. /* TWinControl.CreateParented */ inline __fastcall TGLSkinEditorForm(HWND ParentWindow) : Vcl::Forms::TForm(ParentWindow) { }
  181. };
  182. //-- var, const, procedure ---------------------------------------------------
  183. extern DELPHI_PACKAGE TGLSkinEditorForm* GLSkinEditorForm;
  184. extern DELPHI_PACKAGE bool __fastcall GUIComponentDialog(Gls::Gui::TGLGuiElementList* GuiComponent);
  185. } /* namespace Fmguiskineditor */
  186. #if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_FMGUISKINEDITOR)
  187. using namespace Fmguiskineditor;
  188. #endif
  189. #pragma pack(pop)
  190. #pragma option pop
  191. #pragma delphiheader end.
  192. //-- end unit ----------------------------------------------------------------
  193. #endif // FmGuiSkinEditorHPP