CTVM100MF.h 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. #include "cxButtons.hpp"
  23. #include "cxCheckBox.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 "cxTimeEdit.hpp"
  38. #include "dxSkinBlack.hpp"
  39. #include "dxSkinBlue.hpp"
  40. #include "dxSkinCaramel.hpp"
  41. #include "dxSkinCoffee.hpp"
  42. #include "dxSkinDarkRoom.hpp"
  43. #include "dxSkinDarkSide.hpp"
  44. #include "dxSkinFoggy.hpp"
  45. #include "dxSkinGlassOceans.hpp"
  46. #include "dxSkiniMaginary.hpp"
  47. #include "dxSkinLilian.hpp"
  48. #include "dxSkinLiquidSky.hpp"
  49. #include "dxSkinLondonLiquidSky.hpp"
  50. #include "dxSkinMcSkin.hpp"
  51. #include "dxSkinMoneyTwins.hpp"
  52. #include "dxSkinOffice2007Black.hpp"
  53. #include "dxSkinOffice2007Blue.hpp"
  54. #include "dxSkinOffice2007Green.hpp"
  55. #include "dxSkinOffice2007Pink.hpp"
  56. #include "dxSkinOffice2007Silver.hpp"
  57. #include "dxSkinOffice2010Black.hpp"
  58. #include "dxSkinOffice2010Blue.hpp"
  59. #include "dxSkinOffice2010Silver.hpp"
  60. #include "dxSkinsCore.hpp"
  61. #include "dxSkinSeven.hpp"
  62. #include "dxSkinSharp.hpp"
  63. #include "dxSkinSilver.hpp"
  64. #include "dxSkinStardust.hpp"
  65. #include "FRAME_CctvListF.h"
  66. #include "FRAME_OpenMapF.h"
  67. //---------------------------------------------------------------------------
  68. #include "CDSCctvCtlrF.h"
  69. //---------------------------------------------------------------------------
  70. class TCTVM100M : public TForm
  71. {
  72. __published: // IDE-managed Components
  73. TTimer *TmrShow;
  74. TShape *ShpTitle;
  75. TcxButton *BtnClose;
  76. TLabel *LblCaption;
  77. TShape *ShpList;
  78. TEdit *EdFocus;
  79. TPanel *PnlBack;
  80. TPanel *PnlLeft;
  81. TcxSplitter *cxSplitter1;
  82. TcxGroupBox *cxGroupBox3;
  83. TPanel *PnlBottom;
  84. TcxGroupBox *GrpInfo;
  85. TPanel *PnlMenu;
  86. TcxButton *BtnEdit;
  87. TcxButton *BtnInsert;
  88. TcxButton *BtnDelete;
  89. TcxButton *BtnSave;
  90. TcxLabel *cxLabel11;
  91. TcxLabel *cxLabel12;
  92. TPanel *PnlEdit;
  93. TImage *ImgDesc01;
  94. TImage *ImgDesc02;
  95. TImage *ImgDesc03;
  96. TImage *ImgDesc04;
  97. TImage *ImgDesc05;
  98. TImage *ImgDesc06;
  99. TImage *ImgDesc07;
  100. TImage *ImgDesc11;
  101. TcxTextEdit *EdCctvId;
  102. TcxTextEdit *EdCctvNm;
  103. TcxTextEdit *EdNmbr;
  104. TcxSpinEdit *SePosX;
  105. TcxSpinEdit *SePosY;
  106. TcxLabel *cxLabel1;
  107. TcxLabel *cxLabel2;
  108. TcxLabel *cxLabel3;
  109. TcxLabel *cxLabel6;
  110. TcxLabel *cxLabel18;
  111. TcxMaskEdit *EdCtlrIp;
  112. TcxComboBox *CbType;
  113. TcxLabel *cxLabel8;
  114. TcxLabel *cxLabel22;
  115. TcxLabel *cxLabel5;
  116. TcxMaskEdit *Ed_CCTV_IP;
  117. TcxTextEdit *Ed_CCTV_PORT;
  118. TcxLabel *cxLabel15;
  119. TcxTextEdit *Ed_CCTV_ID;
  120. TcxTextEdit *Ed_CCTV_PSWD;
  121. TcxTextEdit *Ed_STRM_SESN_NM;
  122. TcxLabel *cxLabel16;
  123. TcxTextEdit *EdCmncPort;
  124. TcxSplitter *cxSplitter2;
  125. TcxGroupBox *GrpMap;
  126. TcxSpinEdit *Se_CCTV_CHNL;
  127. TImage *ImgDesc14;
  128. TcxLabel *cxLabel9;
  129. TcxLabel *lblText1;
  130. TcxLabel *lblText2;
  131. TcxLabel *lblText3;
  132. TcxLabel *lblText4;
  133. TcxLabel *lblText5;
  134. TcxLabel *lblText6;
  135. TcxLabel *lblText7;
  136. TcxLabel *lblText8;
  137. TcxLabel *lblText9;
  138. TcxLabel *lblText10;
  139. TcxLabel *lblText11;
  140. TFRAMEOpenMap *FRAMEOpenMap1;
  141. TImage *ImgDesc15;
  142. TcxLabel *cxLabel4;
  143. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  144. TcxLabel *cxLabel7;
  145. TImage *ImgDesc16;
  146. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  147. TcxLabel *cxLabel10;
  148. TImage *ImgDesc17;
  149. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  150. TcxMaskEdit *Ed_STRM_SVR_IP;
  151. TImage *ImgDesc18;
  152. TcxLabel *cxLabel13;
  153. TcxLabel *cxLabel14;
  154. TFRAMECctvList *FRAMECctvList1;
  155. void __fastcall FormShow(TObject *Sender);
  156. void __fastcall TmrShowTimer(TObject *Sender);
  157. void __fastcall BtnCloseClick(TObject *Sender);
  158. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  159. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  160. void __fastcall BtnEditClick(TObject *Sender);
  161. void __fastcall BtnInsertClick(TObject *Sender);
  162. void __fastcall BtnDeleteClick(TObject *Sender);
  163. void __fastcall BtnSaveClick(TObject *Sender);
  164. void __fastcall FRAMECctvList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  165. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  166. TShiftState AShift, bool &AHandled);
  167. void __fastcall Ed_CCTV_PORTKeyPress(TObject *Sender, wchar_t &Key);
  168. void __fastcall Se_CCTV_CHNLPropertiesChange(TObject *Sender);
  169. private: // User declarations
  170. void __fastcall CommClose();
  171. TcxDataController *m_pGDC;
  172. String FTitle;
  173. bool FUpdate;
  174. bool FNewDb;
  175. bool EditMode;
  176. public:
  177. String sJs;
  178. int FLayerIdx;
  179. public: // User declarations
  180. __fastcall TCTVM100M(TComponent* Owner);
  181. void __fastcall FormInit();
  182. void __fastcall UpdateIcon();
  183. void __fastcall DisplayInfo(TCctvCtlr* AObj, bool AMoveObj=true);
  184. void __fastcall ChangeEditMode(int AEdit);
  185. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  186. };
  187. //---------------------------------------------------------------------------
  188. extern PACKAGE TCTVM100M *CTVM100M;
  189. //---------------------------------------------------------------------------
  190. #endif