FrmCameraScreenF.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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. #include "FFBaseComponent.hpp"
  14. #include "FFLog.hpp"
  15. typedef struct
  16. {
  17. int screenCnt;
  18. struct
  19. {
  20. bool show;
  21. bool installed;
  22. String CTLR_NMBR;
  23. TFrmCameraPlayer *frmCam;
  24. } info[MAX_CAMERA_PER_SCREEM];
  25. } SCREEN_FORM;
  26. class TFrmCameraScreen : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TPanel *PnlCamera;
  30. TTimer *TmrFullScreen;
  31. TTimer *TmrStop;
  32. void __fastcall TmrFullScreenTimer(TObject *Sender);
  33. void __fastcall TmrStopTimer(TObject *Sender);
  34. private: // User declarations
  35. public: // User declarations
  36. __fastcall TFrmCameraScreen(TComponent* Owner);
  37. public:
  38. String FTitle;
  39. int FCols, FRows;
  40. int FLayout;
  41. int FScreenCnt;
  42. int FFullScreenIdx;
  43. SCREEN_FORM screeForm;
  44. void __fastcall CommClose();
  45. void __fastcall SetLayout(int ALayout);
  46. void __fastcall ResetScreenForm(String AScreenName);
  47. void __fastcall RecalFormSize();
  48. void __fastcall Play();
  49. void __fastcall Stop();
  50. __property int Layout = { read=FLayout, write=SetLayout };
  51. };
  52. //---------------------------------------------------------------------------
  53. extern PACKAGE TFrmCameraScreen *FrmCameraScreen;
  54. //---------------------------------------------------------------------------
  55. #endif