FrmCameraPlayerF.h 2.6 KB

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