FrmCameraScreenF.h 1.8 KB

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