CTVM200MF.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. //---------------------------------------------------------------------------
  2. #ifndef CTVM200MFH
  3. #define CTVM200MFH
  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. #include "cxButtonEdit.hpp"
  44. #include "cxCheckBox.hpp"
  45. //---------------------------------------------------------------------------
  46. class TCTVM200M : public TForm
  47. {
  48. __published: // IDE-managed Components
  49. TTimer *TmrShow;
  50. TShape *ShpTitle;
  51. TcxButton *BtnClose;
  52. TLabel *LblCaption;
  53. TShape *ShpList;
  54. TEdit *EdFocus;
  55. TPanel *PnlBack;
  56. TPanel *PnlBottom;
  57. TcxGroupBox *GrpInfo;
  58. TPanel *PnlMenu;
  59. TcxButton *BtnEdit;
  60. TcxButton *BtnInsert;
  61. TcxButton *BtnDelete;
  62. TcxButton *BtnSave;
  63. TcxLabel *cxLabel11;
  64. TcxLabel *cxLabel12;
  65. TPanel *PnlEdit;
  66. TImage *ImgDesc02;
  67. TImage *ImgDesc03;
  68. TImage *ImgDesc06;
  69. TImage *ImgDesc11;
  70. TcxTextEdit *EdCtlrId;
  71. TcxTextEdit *EdCtlrNm;
  72. TcxTextEdit *EdNmbr;
  73. TcxLabel *cxLabel2;
  74. TcxLabel *cxLabel3;
  75. TcxLabel *cxLabel6;
  76. TcxLabel *cxLabel18;
  77. TcxMaskEdit *EdCtlrIp;
  78. TcxComboBox *CbType;
  79. TcxTextEdit *Ed_STRM_SESN_NM;
  80. TcxTextEdit *EdCmncPort;
  81. TcxSplitter *cxSplitter2;
  82. TcxLabel *lblText6;
  83. TcxLabel *lblText7;
  84. TcxLabel *lblText8;
  85. TcxLabel *lblText9;
  86. TImage *ImgDesc15;
  87. TcxLabel *cxLabel4;
  88. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  89. TcxLabel *cxLabel7;
  90. TImage *ImgDesc16;
  91. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  92. TcxLabel *cxLabel10;
  93. TImage *ImgDesc17;
  94. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  95. TImage *ImgDesc18;
  96. TcxLabel *cxLabel13;
  97. TcxTextEdit *Ed_INTR_RTMP_ADDR;
  98. TcxGroupBox *cxGroupBox3;
  99. TFRAMECctvList *FRAMECctvList1;
  100. TcxLabel *lblText1;
  101. TcxLabel *lblText2;
  102. TcxLabel *lblText4;
  103. TcxLabel *lblText3;
  104. TcxLabel *lblText5;
  105. TPanel *Panel1;
  106. TImage *ImgDesc07;
  107. TImage *ImgDesc14;
  108. TImage *ImgDesc25;
  109. TImage *ImgDesc24;
  110. TcxLabel *cxLabel5;
  111. TcxLabel *cxLabel15;
  112. TcxSpinEdit *Se_TYPE;
  113. TcxLabel *cxLabel9;
  114. TcxMaskEdit *Ed_CCTV_ENCD_IP;
  115. TcxTextEdit *Ed_LINK_ID;
  116. TcxTextEdit *EdTmpLinkId;
  117. TButton *BtnApply;
  118. TcxMaskEdit *Ed_CCTV_CAPT_IP;
  119. TcxLabel *cxLabel16;
  120. TImage *ImgDesc04;
  121. TcxSpinEdit *SePosX;
  122. TcxSpinEdit *SePosY;
  123. TcxLabel *cxLabel8;
  124. TcxSpinEdit *Se_CCTV_CTLR_PORT;
  125. TImage *ImgDesc05;
  126. TcxLabel *cxLabel17;
  127. TcxTextEdit *ISTL_LCTN_ADDR;
  128. TcxTextEdit *ISTL_LCTN_NM;
  129. TcxLabel *cxLabel22;
  130. TcxLabel *cxLabel1;
  131. TImage *ImgDesc01;
  132. TcxLabel *cxLabel14;
  133. TImage *ImgDesc13;
  134. TPanel *PnlInfo2;
  135. TImage *ImgDspl;
  136. TcxComboBox *Cb_CCTV_SBST_DSPL_YN;
  137. TADOQuery *pADO;
  138. TSaveDialog *SaveDialog;
  139. TOpenPictureDialog *OpenBmp;
  140. TcxButtonEdit *EdImageFileName;
  141. TcxLabel *cxLabel19;
  142. TImage *ImgDesc23;
  143. TcxCheckBox *ChkAll;
  144. TcxButton *BtnClear;
  145. void __fastcall FormShow(TObject *Sender);
  146. void __fastcall TmrShowTimer(TObject *Sender);
  147. void __fastcall BtnCloseClick(TObject *Sender);
  148. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  149. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  150. void __fastcall BtnEditClick(TObject *Sender);
  151. void __fastcall BtnInsertClick(TObject *Sender);
  152. void __fastcall BtnDeleteClick(TObject *Sender);
  153. void __fastcall BtnSaveClick(TObject *Sender);
  154. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  155. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  156. void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  157. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  158. void __fastcall BtnApplyClick(TObject *Sender);
  159. void __fastcall EdImageFileNameClick(TObject *Sender);
  160. void __fastcall OpenBmpCanClose(TObject *Sender, bool &CanClose);
  161. void __fastcall BtnClearClick(TObject *Sender);
  162. private: // User declarations
  163. void __fastcall CommClose();
  164. TcxDataController *m_pGDC;
  165. String FTitle;
  166. bool FUpdate;
  167. bool FNewDb;
  168. bool EditMode;
  169. public:
  170. String sJs;
  171. int FLayerIdx;
  172. public: // User declarations
  173. __fastcall TCTVM200M(TComponent* Owner);
  174. void __fastcall FormInit();
  175. void __fastcall UpdateIcon();
  176. void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
  177. void __fastcall UpdateEditLink();
  178. void __fastcall DisplayLink(TCctvCtlr* AObj);
  179. void __fastcall SelDsplImage(TCctvCtlr* AObj);
  180. bool __fastcall UpdateDsplInfo(String ANmbr, String ADsplYn, TMemoryStream *dataStream);
  181. void __fastcall ChangeEditMode(int AEdit);
  182. };
  183. //---------------------------------------------------------------------------
  184. extern PACKAGE TCTVM200M *CTVM200M;
  185. //---------------------------------------------------------------------------
  186. #endif