FrmCameraScreenF.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. int CTLR_NMBR;
  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. void __fastcall TmrFullScreenTimer(TObject *Sender);
  30. private: // User declarations
  31. public: // User declarations
  32. __fastcall TFrmCameraScreen(TComponent* Owner);
  33. public:
  34. String FTitle;
  35. int FCols, FRows;
  36. int FLayout;
  37. int FScreenCnt;
  38. int FFullScreenIdx;
  39. SCREEN_FORM screeForm;
  40. void __fastcall SetLayout(int ALayout);
  41. void __fastcall ResetScreenForm(String AScreenName);
  42. void __fastcall RecalFormSize();
  43. void __fastcall Play();
  44. void __fastcall Stop();
  45. __property int Layout = { read=FLayout, write=SetLayout };
  46. };
  47. //---------------------------------------------------------------------------
  48. extern PACKAGE TFrmCameraScreen *FrmCameraScreen;
  49. //---------------------------------------------------------------------------
  50. #endif