CTVM100MF.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. //---------------------------------------------------------------------------
  2. #ifndef CTVM100MFH
  3. #define CTVM100MFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <DB.hpp>
  10. #include <DBClient.hpp>
  11. #include <FMTBcd.hpp>
  12. #include <Provider.hpp>
  13. #include <SqlExpr.hpp>
  14. #include <Menus.hpp>
  15. #include <ExtCtrls.hpp>
  16. #include <Graphics.hpp>
  17. #include <ComCtrls.hpp>
  18. #include <ADODB.hpp>
  19. #include <Dialogs.hpp>
  20. #include <ExtDlgs.hpp>
  21. //---------------------------------------------------------------------------
  22. //---------------------------------------------------------------------------
  23. #include "cxButtons.hpp"
  24. #include "cxContainer.hpp"
  25. #include "cxControls.hpp"
  26. #include "cxDropDownEdit.hpp"
  27. #include "cxEdit.hpp"
  28. #include "cxGraphics.hpp"
  29. #include "cxGroupBox.hpp"
  30. #include "cxLabel.hpp"
  31. #include "cxLookAndFeelPainters.hpp"
  32. #include "cxLookAndFeels.hpp"
  33. #include "cxMaskEdit.hpp"
  34. #include "cxSpinEdit.hpp"
  35. #include "cxSplitter.hpp"
  36. #include "cxTextEdit.hpp"
  37. #include "dxSkinBlue.hpp"
  38. #include "dxSkinsCore.hpp"
  39. #include "FRAME_OpenMapF.h"
  40. #include "dxSkinBlack.hpp"
  41. #include "dxSkinMcSkin.hpp"
  42. #include "FRAME_CctvListF.h"
  43. //---------------------------------------------------------------------------
  44. class TCTVM100M : public TForm
  45. {
  46. __published: // IDE-managed Components
  47. TTimer *TmrShow;
  48. TShape *ShpTitle;
  49. TcxButton *BtnClose;
  50. TLabel *LblCaption;
  51. TShape *ShpList;
  52. TEdit *EdFocus;
  53. TPanel *PnlBack;
  54. TPanel *PnlBottom;
  55. TcxGroupBox *GrpInfo;
  56. TPanel *PnlMenu;
  57. TcxButton *BtnEdit;
  58. TcxButton *BtnInsert;
  59. TcxButton *BtnDelete;
  60. TcxButton *BtnSave;
  61. TcxLabel *cxLabel11;
  62. TcxLabel *cxLabel12;
  63. TPanel *PnlEdit;
  64. TImage *ImgDesc01;
  65. TImage *ImgDesc02;
  66. TImage *ImgDesc03;
  67. TImage *ImgDesc04;
  68. TImage *ImgDesc06;
  69. TImage *ImgDesc07;
  70. TImage *ImgDesc11;
  71. TcxTextEdit *EdCtlrId;
  72. TcxTextEdit *EdCtlrNm;
  73. TcxTextEdit *EdNmbr;
  74. TcxSpinEdit *SePosX;
  75. TcxSpinEdit *SePosY;
  76. TcxLabel *cxLabel1;
  77. TcxLabel *cxLabel2;
  78. TcxLabel *cxLabel3;
  79. TcxLabel *cxLabel6;
  80. TcxLabel *cxLabel18;
  81. TcxMaskEdit *EdCtlrIp;
  82. TcxComboBox *CbType;
  83. TcxLabel *cxLabel8;
  84. TcxLabel *cxLabel5;
  85. TcxLabel *cxLabel15;
  86. TcxTextEdit *Ed_STRM_SESN_NM;
  87. TcxTextEdit *EdCmncPort;
  88. TcxSplitter *cxSplitter2;
  89. TcxGroupBox *GrpMap;
  90. TImage *ImgDesc14;
  91. TcxLabel *lblText1;
  92. TcxLabel *lblText2;
  93. TcxLabel *lblText3;
  94. TcxLabel *lblText4;
  95. TcxLabel *lblText5;
  96. TcxLabel *lblText6;
  97. TcxLabel *lblText7;
  98. TcxLabel *lblText8;
  99. TcxLabel *lblText9;
  100. TFRAMEOpenMap *FRAMEOpenMap1;
  101. TImage *ImgDesc15;
  102. TcxLabel *cxLabel4;
  103. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  104. TcxLabel *cxLabel7;
  105. TImage *ImgDesc16;
  106. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  107. TcxLabel *cxLabel10;
  108. TImage *ImgDesc17;
  109. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  110. TImage *ImgDesc18;
  111. TcxLabel *cxLabel13;
  112. TcxLabel *cxLabel14;
  113. TcxLabel *cxLabel17;
  114. TcxTextEdit *ISTL_LCTN_ADDR;
  115. TImage *ImgDesc25;
  116. TcxTextEdit *ISTL_LCTN_NM;
  117. TcxLabel *cxLabel22;
  118. TImage *ImgDesc05;
  119. TcxTextEdit *Ed_LINK_ID;
  120. TcxTextEdit *EdTmpLinkId;
  121. TButton *BtnApply;
  122. TImage *ImgDesc24;
  123. TcxTextEdit *Ed_INTR_RTMP_ADDR;
  124. TcxSpinEdit *Se_CCTV_CTLR_PORT;
  125. TcxComboBox *CbLc;
  126. TPanel *Panel1;
  127. TcxMaskEdit *Ed_CCTV_ENCD_IP;
  128. TcxMaskEdit *Ed_CCTV_CAPT_IP;
  129. TcxSpinEdit *Se_TYPE;
  130. TcxLabel *cxLabel9;
  131. TcxLabel *cxLabel16;
  132. TcxLabel *cxLabel19;
  133. TcxTextEdit *EdCmraId;
  134. TcxTextEdit *EdCmraPswd;
  135. TPanel *PnlLeft;
  136. TcxGroupBox *cxGroupBox3;
  137. TFRAMECctvList *FRAMECctvList1;
  138. TcxSplitter *cxSplitter1;
  139. void __fastcall FormShow(TObject *Sender);
  140. void __fastcall TmrShowTimer(TObject *Sender);
  141. void __fastcall BtnCloseClick(TObject *Sender);
  142. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  143. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  144. void __fastcall BtnEditClick(TObject *Sender);
  145. void __fastcall BtnInsertClick(TObject *Sender);
  146. void __fastcall BtnDeleteClick(TObject *Sender);
  147. void __fastcall BtnSaveClick(TObject *Sender);
  148. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  149. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  150. void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  151. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  152. void __fastcall BtnApplyClick(TObject *Sender);
  153. private: // User declarations
  154. void __fastcall CommClose();
  155. TcxDataController *m_pGDC;
  156. String FTitle;
  157. bool FUpdate;
  158. bool FNewDb;
  159. bool EditMode;
  160. public:
  161. String sJs;
  162. int FLayerIdx;
  163. public: // User declarations
  164. __fastcall TCTVM100M(TComponent* Owner);
  165. void __fastcall FormInit();
  166. void __fastcall UpdateIcon();
  167. void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
  168. void __fastcall UpdateEditLink();
  169. void __fastcall DisplayLink(TCctvCtlr* AObj);
  170. void __fastcall ChangeEditMode(int AEdit);
  171. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  172. };
  173. //---------------------------------------------------------------------------
  174. extern PACKAGE TCTVM100M *CTVM100M;
  175. //---------------------------------------------------------------------------
  176. #endif