CCAM100MF.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. //---------------------------------------------------------------------------
  2. #ifndef CCAM100MFH
  3. #define CCAM100MFH
  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 "CDSCCamCtlrF.h"
  24. #include "cxButtons.hpp"
  25. #include "cxContainer.hpp"
  26. #include "cxControls.hpp"
  27. #include "cxDropDownEdit.hpp"
  28. #include "cxEdit.hpp"
  29. #include "cxGraphics.hpp"
  30. #include "cxGroupBox.hpp"
  31. #include "cxLabel.hpp"
  32. #include "cxLookAndFeelPainters.hpp"
  33. #include "cxLookAndFeels.hpp"
  34. #include "cxMaskEdit.hpp"
  35. #include "cxSpinEdit.hpp"
  36. #include "cxSplitter.hpp"
  37. #include "cxTextEdit.hpp"
  38. #include "dxSkinBlue.hpp"
  39. #include "dxSkinsCore.hpp"
  40. #include "FRAME_CCamListF.h"
  41. #include "FRAME_OpenMapF.h"
  42. //---------------------------------------------------------------------------
  43. class TCCAM100M : public TForm
  44. {
  45. __published: // IDE-managed Components
  46. TTimer *TmrShow;
  47. TShape *ShpTitle;
  48. TcxButton *BtnClose;
  49. TLabel *LblCaption;
  50. TShape *ShpList;
  51. TEdit *EdFocus;
  52. TPanel *PnlBack;
  53. TPanel *PnlLeft;
  54. TcxSplitter *cxSplitter1;
  55. TcxGroupBox *cxGroupBox3;
  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 *ImgDesc01;
  67. TImage *ImgDesc02;
  68. TImage *ImgDesc03;
  69. TImage *ImgDesc04;
  70. TImage *ImgDesc06;
  71. TImage *ImgDesc07;
  72. TImage *ImgDesc11;
  73. TcxTextEdit *EdCCamId;
  74. TcxTextEdit *EdCCamNm;
  75. TcxTextEdit *EdNmbr;
  76. TcxSpinEdit *SePosX;
  77. TcxSpinEdit *SePosY;
  78. TcxLabel *cxLabel1;
  79. TcxLabel *cxLabel2;
  80. TcxLabel *cxLabel3;
  81. TcxLabel *cxLabel6;
  82. TcxLabel *cxLabel18;
  83. TcxMaskEdit *EdCtlrIp;
  84. TcxComboBox *CbType;
  85. TcxLabel *cxLabel8;
  86. TcxLabel *cxLabel5;
  87. TcxMaskEdit *Ed_CCAM_IP;
  88. TcxTextEdit *Ed_CMRA_PORT;
  89. TcxLabel *cxLabel15;
  90. TcxTextEdit *Ed_CMRA_ID;
  91. TcxTextEdit *Ed_CMRA_PSWD;
  92. TcxTextEdit *Ed_STRM_SESN_NM;
  93. TcxLabel *cxLabel16;
  94. TcxTextEdit *EdCmncPort;
  95. TcxSplitter *cxSplitter2;
  96. TcxGroupBox *GrpMap;
  97. TcxSpinEdit *Se_CMRA_CHNL;
  98. TImage *ImgDesc14;
  99. TcxLabel *cxLabel9;
  100. TcxLabel *lblText1;
  101. TcxLabel *lblText2;
  102. TcxLabel *lblText3;
  103. TcxLabel *lblText4;
  104. TcxLabel *lblText5;
  105. TcxLabel *lblText6;
  106. TcxLabel *lblText7;
  107. TcxLabel *lblText8;
  108. TcxLabel *lblText9;
  109. TFRAMEOpenMap *FRAMEOpenMap1;
  110. TImage *ImgDesc15;
  111. TcxLabel *cxLabel4;
  112. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  113. TcxLabel *cxLabel7;
  114. TImage *ImgDesc16;
  115. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  116. TcxLabel *cxLabel10;
  117. TImage *ImgDesc17;
  118. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  119. TcxMaskEdit *Ed_STRM_SVR_IP;
  120. TImage *ImgDesc18;
  121. TcxLabel *cxLabel13;
  122. TcxLabel *cxLabel14;
  123. TFRAMECCamList *FRAMECCamList1;
  124. TcxLabel *cxLabel17;
  125. TcxSpinEdit *Se_GROUP_NO;
  126. TcxSpinEdit *Se_LOCAL_NO;
  127. TImage *ImgDesc28;
  128. TcxLabel *cxLabel19;
  129. TcxTextEdit *ISTL_LCTN_ADDR;
  130. TImage *ImgDesc25;
  131. TcxTextEdit *ISTL_LCTN_NM;
  132. TcxLabel *cxLabel22;
  133. TImage *ImgDesc05;
  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 FRAMECCamList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  144. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  145. TShiftState AShift, bool &AHandled);
  146. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  147. void __fastcall Se_CMRA_CHNLPropertiesChange(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 TCCAM100M(TComponent* Owner);
  160. void __fastcall FormInit();
  161. void __fastcall UpdateIcon();
  162. void __fastcall DisplayInfo(TCCamCtlr* AObj, bool AMoveObj=true);
  163. void __fastcall ChangeEditMode(int AEdit);
  164. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  165. };
  166. //---------------------------------------------------------------------------
  167. extern PACKAGE TCCAM100M *CCAM100M;
  168. //---------------------------------------------------------------------------
  169. #endif