fGuiPaintC.h 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. // ---------------------------------------------------------------------------
  2. #ifndef fGuiPaintCH
  3. #define fGuiPaintCH
  4. // ---------------------------------------------------------------------------
  5. #include <System.Classes.hpp>
  6. #include <Vcl.Controls.hpp>
  7. #include <Vcl.StdCtrls.hpp>
  8. #include <Vcl.Forms.hpp>
  9. #include "GLS.BaseClasses.hpp"
  10. #include "GLS.BitmapFont.hpp"
  11. #include "GLS.Cadencer.hpp"
  12. #include "GLS.Coordinates.hpp"
  13. #include "GLS.Gui.hpp"
  14. #include "GLS.Material.hpp"
  15. #include "GLS.Scene.hpp"
  16. #include "GLS.SceneViewer.hpp"
  17. #include "GLS.Windows.hpp"
  18. #include "GLS.WindowsFont.hpp"
  19. #include <Vcl.Dialogs.hpp>
  20. #include <Vcl.ExtCtrls.hpp>
  21. #include <Vcl.Menus.hpp>
  22. // ---------------------------------------------------------------------------
  23. class TForm1 : public TForm {
  24. __published: // IDE-managed Components
  25. TGLSceneViewer *GLSceneViewer1;
  26. TGLScene *GLScene1;
  27. TGLLightSource *GLLightSource1;
  28. TGLBaseControl *GuiRoot;
  29. TGLForm *GLForm1;
  30. TGLButton *PenButton;
  31. TGLButton *BrushButton;
  32. TGLPanel *GLPanel1;
  33. TGLCustomControl *GLCanvas;
  34. TGLButton *WhiteButton;
  35. TGLButton *BlackButton;
  36. TGLButton *RedButton;
  37. TGLButton *GreenButton;
  38. TGLButton *BlueButton;
  39. TGLCamera *GLCamera1;
  40. TGLCadencer *GLCadencer1;
  41. TTimer *Timer1;
  42. TGLWindowsBitmapFont *WindowsBitmapFont1;
  43. TMainMenu *MainMenu1;
  44. TMenuItem *File1;
  45. TMenuItem *miOpen1;
  46. TMenuItem *miSave1;
  47. TMenuItem *miFont1;
  48. TMenuItem *miWindowsFont1;
  49. TMenuItem *miFPS;
  50. TFontDialog *FontDialog1;
  51. TGLGuiLayout *GLGuiLayout1;
  52. TGLMaterialLibrary *GLMaterialLibrary1;
  53. TOpenDialog *OpenDialog1;
  54. TSaveDialog *SaveDialog1;
  55. void __fastcall FormCreate(TObject *Sender);
  56. void __fastcall GLCadencer1Progress(TObject *Sender, const double deltaTime,
  57. const double newTime);
  58. void __fastcall Timer1Timer(TObject *Sender);
  59. void __fastcall miWindowsFont1Click(TObject *Sender);
  60. void __fastcall GLSceneViewer1MouseDown(TObject *Sender,
  61. TMouseButton Button, TShiftState Shift, int X, int Y);
  62. void __fastcall GLSceneViewer1MouseMove(TObject *Sender, TShiftState Shift,
  63. int X, int Y);
  64. void __fastcall GLSceneViewer1MouseUp(TObject *Sender, TMouseButton Button,
  65. TShiftState Shift, int X, int Y);
  66. void __fastcall FormKeyDown(TObject *Sender, WORD &Key, TShiftState Shift);
  67. void __fastcall FormKeyPress(TObject *Sender, System::WideChar &Key);
  68. void __fastcall FormKeyUp(TObject *Sender, WORD &Key, TShiftState Shift);
  69. void __fastcall GLCanvasMouseDown(TObject *Sender, TMouseButton Button,
  70. TShiftState Shift, int X, int Y);
  71. void __fastcall GLCanvasMouseMove(TObject *Sender, TShiftState Shift,
  72. int X, int Y);
  73. void __fastcall GLCanvasMouseUp(TObject *Sender, TMouseButton Button,
  74. TShiftState Shift, int X, int Y);
  75. void __fastcall GLCanvasRender(TGLCustomControl *Sender, TBitmap *Bitmap);
  76. void __fastcall PenButtonButtonClick(TObject *Sender);
  77. void __fastcall BrushButtonButtonClick(TObject *Sender);
  78. void __fastcall WhiteButtonButtonClick(TObject *Sender);
  79. void __fastcall BlackButtonButtonClick(TObject *Sender);
  80. void __fastcall RedButtonButtonClick(TObject *Sender);
  81. void __fastcall GreenButtonButtonClick(TObject *Sender);
  82. void __fastcall BlueButtonButtonClick(TObject *Sender);
  83. void __fastcall GLCanvasAcceptMouseQuery(TGLBaseControl *Sender,
  84. TShiftState Shift, TGLMouseAction Action, TMouseButton Button, int X,
  85. int Y, bool &Accept);
  86. void __fastcall GLForm1Moving(TGLForm *Sender, float &Left, float &Top);
  87. void __fastcall miOpen1Click(TObject *Sender);
  88. void __fastcall miSave1Click(TObject *Sender);
  89. private: // User declarations
  90. int StartX;
  91. int StartY;
  92. int CurrentX;
  93. int CurrentY;
  94. public: // User declarations
  95. __fastcall TForm1(TComponent* Owner);
  96. };
  97. // ---------------------------------------------------------------------------
  98. extern PACKAGE TForm1 *Form1;
  99. // ---------------------------------------------------------------------------
  100. #endif