FrmCameraPlayerF.h 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraPlayerFH
  3. #define FrmCameraPlayerFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <ExtCtrls.hpp>
  10. #include <OleCtrls.hpp>
  11. #include "cxContainer.hpp"
  12. #include "cxControls.hpp"
  13. #include "cxEdit.hpp"
  14. #include "cxGraphics.hpp"
  15. #include "cxLabel.hpp"
  16. #include "cxLookAndFeelPainters.hpp"
  17. #include "cxLookAndFeels.hpp"
  18. #include "dxSkinBlack.hpp"
  19. #include "dxSkinBlue.hpp"
  20. #include "dxSkinsCore.hpp"
  21. #include <Menus.hpp>
  22. #include "dxGDIPlusClasses.hpp"
  23. #include "IdBaseComponent.hpp"
  24. #include "IdComponent.hpp"
  25. #include "IdExplicitTLSClientServerBase.hpp"
  26. #include "IdFTP.hpp"
  27. #include "IdTCPClient.hpp"
  28. #include "IdTCPConnection.hpp"
  29. #include "FFLog.hpp"
  30. #include "AcesTechXPlayer2Lib_OCX.h"
  31. //---------------------------------------------------------------------------
  32. class TFrmCameraPlayer : public TForm
  33. {
  34. __published: // IDE-managed Components
  35. TTimer *TmrShow;
  36. TPopupMenu *PopupMenu1;
  37. TMenuItem *MnuConnect;
  38. TMenuItem *MnuDisconnect;
  39. TPanel *PnlCamera;
  40. TPanel *PnlName;
  41. TMenuItem *MnuInfo;
  42. TMenuItem *N1;
  43. TAcesTechXPlayer2 *AcesTechXPlayer21;
  44. TImage *ImgNoData;
  45. void __fastcall TmrShowTimer(TObject *Sender);
  46. void __fastcall FormShow(TObject *Sender);
  47. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  48. void __fastcall FormDestroy(TObject *Sender);
  49. void __fastcall MnuConnectClick(TObject *Sender);
  50. void __fastcall MnuDisconnectClick(TObject *Sender);
  51. void __fastcall PnlCameraDblClick(TObject *Sender);
  52. void __fastcall MnuInfoClick(TObject *Sender);
  53. private: // User declarations
  54. public: // User declarations
  55. bool FFullScreen;
  56. TRect FLastBounds;
  57. TWinControl *FParent;
  58. bool FPlay;
  59. bool FAutoPlay;
  60. long FConHandle;
  61. String FId;
  62. String FName;
  63. String FStreamingType;
  64. String FViewAddress;
  65. String FFullAddress;
  66. bool IsTerm;
  67. bool Installed;
  68. String CTLR_NMBR;
  69. String NAME;
  70. String STRM_ADDR;
  71. String FULL_STRM_ADDR;
  72. int VIEW_MODE;
  73. void __fastcall InitCamera(bool AInstalled, String ACtlrNmbr, String AName, String AStrmAddr, String AFullStrmAddr, int AViewMode);
  74. void __fastcall LoadEmptyImage();
  75. void __fastcall AutoPlay();
  76. void __fastcall Play();
  77. void __fastcall Stop();
  78. void __fastcall Term();
  79. __fastcall TFrmCameraPlayer(TComponent* Owner);
  80. };
  81. //---------------------------------------------------------------------------
  82. extern PACKAGE TFrmCameraPlayer *FrmCameraPlayer;
  83. //---------------------------------------------------------------------------
  84. #endif