FrmCameraF.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCameraFH
  3. #define FrmCameraFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. //---------------------------------------------------------------------------
  10. #include "CDSCctvF.h"
  11. #include <ExtCtrls.hpp>
  12. #include "AcesTechXPlayer2Lib_OCX.h"
  13. #include <OleCtrls.hpp>
  14. #include <Menus.hpp>
  15. #include "cxContainer.hpp"
  16. #include "cxControls.hpp"
  17. #include "cxEdit.hpp"
  18. #include "cxGraphics.hpp"
  19. #include "cxLabel.hpp"
  20. #include "cxLookAndFeelPainters.hpp"
  21. #include "cxLookAndFeels.hpp"
  22. #include "dxSkinsCore.hpp"
  23. #include "dxSkinBlack.hpp"
  24. #include "dxSkinBlue.hpp"
  25. //---------------------------------------------------------------------------
  26. class TFrmCamera : public TForm
  27. {
  28. __published: // IDE-managed Components
  29. TPanel *PnlCamera;
  30. TPopupMenu *PopupMenu1;
  31. TMenuItem *MnuConnect;
  32. TMenuItem *MnuDisconnect;
  33. TMenuItem *MnuRelease;
  34. TMenuItem *N2;
  35. TTimer *TmrPlay;
  36. TTimer *TmrStop;
  37. TImage *ImgNoData;
  38. TcxLabel *LblName;
  39. TAcesTechXPlayer2 *AcesTechXPlayer21;
  40. TPanel *PnlName;
  41. void __fastcall MnuConnectClick(TObject *Sender);
  42. void __fastcall MnuDisconnectClick(TObject *Sender);
  43. void __fastcall MnuReleaseClick(TObject *Sender);
  44. void __fastcall TmrPlayTimer(TObject *Sender);
  45. void __fastcall TmrStopTimer(TObject *Sender);
  46. private: // User declarations
  47. public: // User declarations
  48. __fastcall TFrmCamera(TComponent* Owner, TXCctv *ACctv, bool AAutoPlay);
  49. //TAcesTechXPlayer2 *AcesTechXPlayer21;
  50. bool FAutoPlay;
  51. bool FPlay;
  52. long FConHandle;
  53. bool FInstalled;
  54. String FId;
  55. String FGroup;
  56. String FName;
  57. String FStreamingType;
  58. String FViewAddress;
  59. String FFullAddress;
  60. void __fastcall InitCamera(TXCctv *ACctv, bool AAutoPlay=true);
  61. void __fastcall DisplayName(String AName);
  62. void __fastcall Connect();
  63. void __fastcall Disconnect();
  64. void __fastcall CameraRelease();
  65. };
  66. //---------------------------------------------------------------------------
  67. extern PACKAGE TFrmCamera *FrmCamera;
  68. //---------------------------------------------------------------------------
  69. #endif