WCAM100MF.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. //---------------------------------------------------------------------------
  2. #ifndef WCAM100MFH
  3. #define WCAM100MFH
  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 "CDSWCamCtlrF.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_OpenMapF.h"
  41. #include "FRAME_WCamListF.h"
  42. //---------------------------------------------------------------------------
  43. class TWCAM100M : 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 *EdWCamId;
  74. TcxTextEdit *EdWCamNm;
  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_WCAM_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. TFRAMEWCamList *FRAMEWCamList1;
  124. TcxLabel *cxLabel17;
  125. TcxTextEdit *ISTL_LCTN_ADDR;
  126. TImage *ImgDesc25;
  127. TcxTextEdit *ISTL_LCTN_NM;
  128. TcxLabel *cxLabel22;
  129. TImage *ImgDesc05;
  130. void __fastcall FormShow(TObject *Sender);
  131. void __fastcall TmrShowTimer(TObject *Sender);
  132. void __fastcall BtnCloseClick(TObject *Sender);
  133. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  134. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  135. void __fastcall BtnEditClick(TObject *Sender);
  136. void __fastcall BtnInsertClick(TObject *Sender);
  137. void __fastcall BtnDeleteClick(TObject *Sender);
  138. void __fastcall BtnSaveClick(TObject *Sender);
  139. void __fastcall FRAMEWCamList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  140. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  141. TShiftState AShift, bool &AHandled);
  142. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  143. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  144. private: // User declarations
  145. void __fastcall CommClose();
  146. TcxDataController *m_pGDC;
  147. String FTitle;
  148. bool FUpdate;
  149. bool FNewDb;
  150. bool EditMode;
  151. public:
  152. String sJs;
  153. int FLayerIdx;
  154. public: // User declarations
  155. __fastcall TWCAM100M(TComponent* Owner);
  156. void __fastcall FormInit();
  157. void __fastcall UpdateIcon();
  158. void __fastcall DisplayInfo(TWCamCtlr* AObj, bool AMoveObj=true);
  159. void __fastcall ChangeEditMode(int AEdit);
  160. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  161. };
  162. //---------------------------------------------------------------------------
  163. extern PACKAGE TWCAM100M *WCAM100M;
  164. //---------------------------------------------------------------------------
  165. #endif