FrmCctvCamCtrlF.h 7.0 KB

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