CTVM100MF.h 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 *PnlLeft;
  55. TcxSplitter *cxSplitter1;
  56. TcxGroupBox *cxGroupBox3;
  57. TPanel *PnlBottom;
  58. TcxGroupBox *GrpInfo;
  59. TPanel *PnlMenu;
  60. TcxButton *BtnEdit;
  61. TcxButton *BtnInsert;
  62. TcxButton *BtnDelete;
  63. TcxButton *BtnSave;
  64. TcxLabel *cxLabel11;
  65. TcxLabel *cxLabel12;
  66. TPanel *PnlEdit;
  67. TImage *ImgDesc01;
  68. TImage *ImgDesc02;
  69. TImage *ImgDesc03;
  70. TImage *ImgDesc04;
  71. TImage *ImgDesc06;
  72. TImage *ImgDesc07;
  73. TImage *ImgDesc11;
  74. TcxTextEdit *EdCtlrId;
  75. TcxTextEdit *EdCtlrNm;
  76. TcxTextEdit *EdNmbr;
  77. TcxSpinEdit *SePosX;
  78. TcxSpinEdit *SePosY;
  79. TcxLabel *cxLabel1;
  80. TcxLabel *cxLabel2;
  81. TcxLabel *cxLabel3;
  82. TcxLabel *cxLabel6;
  83. TcxLabel *cxLabel18;
  84. TcxMaskEdit *EdCtlrIp;
  85. TcxComboBox *CbType;
  86. TcxLabel *cxLabel8;
  87. TcxLabel *cxLabel5;
  88. TcxLabel *cxLabel15;
  89. TcxTextEdit *Ed_STRM_SESN_NM;
  90. TcxTextEdit *EdCmncPort;
  91. TcxSplitter *cxSplitter2;
  92. TcxGroupBox *GrpMap;
  93. TcxSpinEdit *Se_TYPE;
  94. TImage *ImgDesc14;
  95. TcxLabel *cxLabel9;
  96. TcxLabel *lblText1;
  97. TcxLabel *lblText2;
  98. TcxLabel *lblText3;
  99. TcxLabel *lblText4;
  100. TcxLabel *lblText5;
  101. TcxLabel *lblText6;
  102. TcxLabel *lblText7;
  103. TcxLabel *lblText8;
  104. TcxLabel *lblText9;
  105. TFRAMEOpenMap *FRAMEOpenMap1;
  106. TImage *ImgDesc15;
  107. TcxLabel *cxLabel4;
  108. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  109. TcxLabel *cxLabel7;
  110. TImage *ImgDesc16;
  111. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  112. TcxLabel *cxLabel10;
  113. TImage *ImgDesc17;
  114. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  115. TcxMaskEdit *Ed_CCTV_ENCD_IP;
  116. TImage *ImgDesc18;
  117. TcxLabel *cxLabel13;
  118. TcxLabel *cxLabel14;
  119. TcxLabel *cxLabel17;
  120. TcxTextEdit *ISTL_LCTN_ADDR;
  121. TImage *ImgDesc25;
  122. TcxTextEdit *ISTL_LCTN_NM;
  123. TcxLabel *cxLabel22;
  124. TImage *ImgDesc05;
  125. TcxTextEdit *Ed_LINK_ID;
  126. TcxTextEdit *EdTmpLinkId;
  127. TFRAMECctvList *FRAMECctvList1;
  128. TButton *BtnApply;
  129. TcxMaskEdit *Ed_CCTV_CAPT_IP;
  130. TcxLabel *cxLabel16;
  131. TImage *ImgDesc24;
  132. TcxTextEdit *Ed_INTR_RTMP_ADDR;
  133. TcxSpinEdit *Se_CCTV_CTLR_PORT;
  134. void __fastcall FormShow(TObject *Sender);
  135. void __fastcall TmrShowTimer(TObject *Sender);
  136. void __fastcall BtnCloseClick(TObject *Sender);
  137. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  138. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  139. void __fastcall BtnEditClick(TObject *Sender);
  140. void __fastcall BtnInsertClick(TObject *Sender);
  141. void __fastcall BtnDeleteClick(TObject *Sender);
  142. void __fastcall BtnSaveClick(TObject *Sender);
  143. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  144. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  145. void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  146. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  147. void __fastcall BtnApplyClick(TObject *Sender);
  148. private: // User declarations
  149. void __fastcall CommClose();
  150. TcxDataController *m_pGDC;
  151. String FTitle;
  152. bool FUpdate;
  153. bool FNewDb;
  154. bool EditMode;
  155. public:
  156. String sJs;
  157. int FLayerIdx;
  158. public: // User declarations
  159. __fastcall TCTVM100M(TComponent* Owner);
  160. void __fastcall FormInit();
  161. void __fastcall UpdateIcon();
  162. void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
  163. void __fastcall UpdateEditLink();
  164. void __fastcall DisplayLink(TCctvCtlr* AObj);
  165. void __fastcall ChangeEditMode(int AEdit);
  166. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  167. };
  168. //---------------------------------------------------------------------------
  169. extern PACKAGE TCTVM100M *CTVM100M;
  170. //---------------------------------------------------------------------------
  171. #endif