FrmCameraScreenF.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraScreenFH
  3. #define FrmCameraScreenFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. //---------------------------------------------------------------------------
  11. #include "FrmCameraPlayerF.h"
  12. #include "CDSMonitoringObjF.h"
  13. typedef struct
  14. {
  15. int screenCnt;
  16. struct
  17. {
  18. bool show;
  19. bool installed;
  20. String CCAM_ID;
  21. TFrmCameraPlayer *frmCam;
  22. } info[MAX_CAMERA_PER_SCREEM];
  23. } SCREEN_FORM;
  24. class TFrmCameraScreen : public TForm
  25. {
  26. __published: // IDE-managed Components
  27. TPanel *PnlCamera;
  28. TTimer *TmrFullScreen;
  29. TTimer *TmrStop;
  30. void __fastcall TmrFullScreenTimer(TObject *Sender);
  31. void __fastcall TmrStopTimer(TObject *Sender);
  32. private: // User declarations
  33. public: // User declarations
  34. __fastcall TFrmCameraScreen(TComponent* Owner);
  35. public:
  36. String FTitle;
  37. int FCols, FRows;
  38. int FLayout;
  39. int FScreenCnt;
  40. int FFullScreenIdx;
  41. SCREEN_FORM screeForm;
  42. void __fastcall SetLayout(int ALayout);
  43. void __fastcall ResetScreenForm(String AScreenName);
  44. void __fastcall RecalFormSize();
  45. void __fastcall Play();
  46. void __fastcall Stop();
  47. __property int Layout = { read=FLayout, write=SetLayout };
  48. };
  49. //---------------------------------------------------------------------------
  50. extern PACKAGE TFrmCameraScreen *FrmCameraScreen;
  51. //---------------------------------------------------------------------------
  52. #endif