FrmCctvCamCtrlF.h 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. //---------------------------------------------------------------------------
  2. #ifndef FrmCctvCamCtrlFH
  3. #define FrmCctvCamCtrlFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <Menus.hpp>
  11. #include <ExtCtrls.hpp>
  12. #include <ADODB.hpp>
  13. #include <ImgList.hpp>
  14. #include <Graphics.hpp>
  15. #include <ComCtrls.hpp>
  16. //---------------------------------------------------------------------------
  17. #include <OleCtrls.hpp>
  18. #include "CenterCommF.h"
  19. #include "DataTypesF.h"
  20. #include "WindowMsgF.h"
  21. #include "CDSCctvCtlrF.h"
  22. #include "cxButtons.hpp"
  23. #include "cxCalc.hpp"
  24. #include "cxCheckBox.hpp"
  25. #include "cxClasses.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxCustomData.hpp"
  29. #include "cxData.hpp"
  30. #include "cxDataStorage.hpp"
  31. #include "cxEdit.hpp"
  32. #include "cxFilter.hpp"
  33. #include "cxGraphics.hpp"
  34. #include "cxGrid.hpp"
  35. #include "cxGridBandedTableView.hpp"
  36. #include "cxGridCustomTableView.hpp"
  37. #include "cxGridCustomView.hpp"
  38. #include "cxGridLevel.hpp"
  39. #include "cxGridTableView.hpp"
  40. #include "cxGroupBox.hpp"
  41. #include "cxLabel.hpp"
  42. #include "cxLookAndFeelPainters.hpp"
  43. #include "cxLookAndFeels.hpp"
  44. #include "cxMaskEdit.hpp"
  45. #include "cxPC.hpp"
  46. #include "cxPCdxBarPopupMenu.hpp"
  47. #include "cxSpinEdit.hpp"
  48. #include "cxStyles.hpp"
  49. #include "cxTextEdit.hpp"
  50. #include "dxSkinBlue.hpp"
  51. #include "dxSkinsCore.hpp"
  52. #include "dxSkinscxPCPainter.hpp"
  53. #include "IdBaseComponent.hpp"
  54. #include "IdComponent.hpp"
  55. #include "IdIcmpClient.hpp"
  56. #include "IdRawBase.hpp"
  57. #include "IdRawClient.hpp"
  58. #include "ImageBtn.h"
  59. #include "dxSkinBlack.hpp"
  60. #include "dxSkinsForm.hpp"
  61. #include <AppEvnts.hpp>
  62. #include "dxSkinMcSkin.hpp"
  63. #include "IdHTTP.hpp"
  64. #include "IdTCPClient.hpp"
  65. #include "IdTCPConnection.hpp"
  66. #include "IdAuthenticationDigest.hpp"
  67. #include "AcesTechXPlayer2Lib_OCX.h"
  68. #include "FRAME_CctvStateListF.h" /* idhttp ±ÇÇÑ ¼³Á¤À» À§ÇØ ÇÊ¿äÇÔ */
  69. //---------------------------------------------------------------------------
  70. class TFrmCctvCamCtrl : public TForm
  71. {
  72. __published: // IDE-managed Components
  73. TTimer *TmrShow;
  74. TPanel *PnlTop;
  75. TPanel *PnlRight;
  76. TPanel *PnlLeft;
  77. TPanel *PnlRTop;
  78. TcxGroupBox *GrpList;
  79. TcxGroupBox *cxGroupBox1;
  80. TImageList *ImageList1;
  81. TPanel *PnlCctv;
  82. TPanel *Panel2;
  83. TcxPageControl *PgCam;
  84. TcxTabSheet *TabRtsp;
  85. TcxButton *BtnWebCamUrl;
  86. TIdIcmpClient *IdIcmpClient1;
  87. TcxLabel *cxLabel9;
  88. TPanel *PnlCameraBack;
  89. TPanel *PnlCamConrtol;
  90. TcxButton *BtnImageSave;
  91. TPanel *PnlPTZ;
  92. TImageBtn *BtnUpLeft;
  93. TImageBtn *BtnUp;
  94. TImageBtn *BtnUpRight;
  95. TImageBtn *BtnLeft;
  96. TImageBtn *BtnHome;
  97. TImageBtn *BtnRight;
  98. TImageBtn *BtnDownLeft;
  99. TImageBtn *BtnDown;
  100. TImageBtn *BtnDownRight;
  101. TImageBtn *BtnZoomIn;
  102. TImageBtn *BtnZoomOut;
  103. TImageBtn *BtnFocusIn;
  104. TImageBtn *BtnFocusOut;
  105. TLabel *Label20;
  106. TTrackBar *PTZSpeed;
  107. TPanel *Panel1;
  108. TPanel *PnlCamera;
  109. TcxLabel *cxLabel14;
  110. TcxLabel *lblSelCctv;
  111. TcxButton *BtnSaveImgFile;
  112. TcxLabel *cxLabel1;
  113. TcxLabel *cxLabel2;
  114. TcxLabel *cxLabel3;
  115. TcxLabel *cxLabel4;
  116. TMemo *reMsg;
  117. TdxSkinController *dxSkinController1;
  118. TApplicationEvents *ApplicationEvents1;
  119. TTimer *TmrRefresh;
  120. TIdHTTP *IdHTTP1;
  121. TAcesTechXPlayer2 *AcesTechXPlayer21;
  122. TFRAMECctvStateList *FRAMECctvStateList1;
  123. TcxLabel *cxLabel6;
  124. TImage *ImgDesc01;
  125. TcxTextEdit *EdCtlrId;
  126. TcxTextEdit *EdCtlrNm;
  127. TcxMaskEdit *EdCtlrIp;
  128. TcxSpinEdit *Se_CCTV_CTLR_PORT;
  129. TcxTextEdit *EdTypeNm;
  130. TImage *ImgDesc03;
  131. TImage *ImgDesc15;
  132. TImage *ImgDesc16;
  133. TImage *ImgDesc17;
  134. TImage *ImgDesc18;
  135. TImage *ImgDesc05;
  136. TcxLabel *cxLabel7;
  137. TcxTextEdit *Ed_STRM_SESN_NM;
  138. TcxLabel *cxLabel8;
  139. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  140. TcxLabel *cxLabel10;
  141. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  142. TcxLabel *cxLabel11;
  143. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  144. TcxLabel *cxLabel13;
  145. TcxTextEdit *Ed_INTR_RTMP_ADDR;
  146. TcxLabel *cxLabel19;
  147. TcxTextEdit *EdCmraId;
  148. TcxTextEdit *EdCmraPswd;
  149. TcxButton *BtnStatRefresh;
  150. void __fastcall FormShow(TObject *Sender);
  151. void __fastcall TmrShowTimer(TObject *Sender);
  152. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  153. void __fastcall FormActivate(TObject *Sender);
  154. void __fastcall FormDeactivate(TObject *Sender);
  155. void __fastcall FRAMECctvStateList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  156. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  157. TShiftState AShift, bool &AHandled);
  158. void __fastcall BtnWebCamUrlClick(TObject *Sender);
  159. void __fastcall BtnSaveImgFileClick(TObject *Sender);
  160. void __fastcall reMsgDblClick(TObject *Sender);
  161. void __fastcall BtnStatRefreshClick(TObject *Sender);
  162. void __fastcall TmrRefreshTimer(TObject *Sender);
  163. void __fastcall IdHTTP1Authorization(TObject *Sender, TIdAuthentication *Authentication, bool &Handled);
  164. void __fastcall BtnUpMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  165. void __fastcall BtnUpMouseUp(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y);
  166. void __fastcall EdPresetNameKeyPress(TObject *Sender, wchar_t &Key);
  167. void __fastcall FRAMECctvStateList1TvList2CellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  168. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  169. private: // User declarations
  170. void __fastcall CommClose();
  171. public:
  172. bool __fastcall OpenRtsp();
  173. void __fastcall CloseRtsp();
  174. public:
  175. bool FTmrShow;
  176. TCctvCtlr *FSelCtlr;
  177. TStringList *FSelIds;
  178. String FTitle;
  179. bool FStrmPlay;
  180. String FStrmUser;
  181. String FStrmPswd;
  182. String FStrmHttp;
  183. String FStrmAddr;
  184. long FStrmHandle;
  185. public: // User declarations
  186. __fastcall TFrmCctvCamCtrl(TComponent* Owner);
  187. void __fastcall LoadLocalSkin();
  188. void __fastcall DisplayInfo(TCctvCtlr* AObj);
  189. void __fastcall ClearCheckList();
  190. int __fastcall GetSelListItems(bool ACommCheck=true);
  191. void __fastcall ActivateForm(bool AActivate);
  192. int FPingType;
  193. bool FPingTimeout;
  194. void __fastcall PingNetwork(String AIp, int APort);
  195. void __fastcall UpdatePingList();
  196. void __fastcall RefreshPingList(bool AInit=false);
  197. void __fastcall ClearPreset();
  198. void __fastcall InitPreset();
  199. void __fastcall InitForm();
  200. void __fastcall OnMainFormMessage(TMessage &Msg);
  201. void __fastcall OnCctvStateRefreshMessage(TMessage &Msg);
  202. BEGIN_MESSAGE_MAP
  203. MESSAGE_HANDLER(WM_MAINFORM, TMessage, OnMainFormMessage)
  204. MESSAGE_HANDLER(WM_VMS_STATE_REFRESH, TMessage, OnCctvStateRefreshMessage)
  205. END_MESSAGE_MAP(TForm)
  206. };
  207. //---------------------------------------------------------------------------
  208. extern PACKAGE TFrmCctvCamCtrl *FrmCctvCamCtrl;
  209. //---------------------------------------------------------------------------
  210. #endif