CCAM100MF.h 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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. #include "dxSkinBlack.hpp"
  43. #include "dxSkinMcSkin.hpp"
  44. //---------------------------------------------------------------------------
  45. class TCCAM100M : public TForm
  46. {
  47. __published: // IDE-managed Components
  48. TTimer *TmrShow;
  49. TShape *ShpTitle;
  50. TcxButton *BtnClose;
  51. TLabel *LblCaption;
  52. TShape *ShpList;
  53. TEdit *EdFocus;
  54. TPanel *PnlBack;
  55. TPanel *PnlLeft;
  56. TcxSplitter *cxSplitter1;
  57. TcxGroupBox *cxGroupBox3;
  58. TPanel *PnlBottom;
  59. TcxGroupBox *GrpInfo;
  60. TPanel *PnlMenu;
  61. TcxButton *BtnEdit;
  62. TcxButton *BtnInsert;
  63. TcxButton *BtnDelete;
  64. TcxButton *BtnSave;
  65. TcxLabel *cxLabel11;
  66. TcxLabel *cxLabel12;
  67. TPanel *PnlEdit;
  68. TImage *ImgDesc01;
  69. TImage *ImgDesc02;
  70. TImage *ImgDesc03;
  71. TImage *ImgDesc04;
  72. TImage *ImgDesc06;
  73. TImage *ImgDesc07;
  74. TImage *ImgDesc11;
  75. TcxTextEdit *EdCCamId;
  76. TcxTextEdit *EdCCamNm;
  77. TcxTextEdit *EdNmbr;
  78. TcxSpinEdit *SePosX;
  79. TcxSpinEdit *SePosY;
  80. TcxLabel *cxLabel1;
  81. TcxLabel *cxLabel2;
  82. TcxLabel *cxLabel3;
  83. TcxLabel *cxLabel6;
  84. TcxLabel *cxLabel18;
  85. TcxMaskEdit *EdCtlrIp;
  86. TcxComboBox *CbType;
  87. TcxLabel *cxLabel8;
  88. TcxLabel *cxLabel5;
  89. TcxMaskEdit *Ed_CCAM_IP;
  90. TcxTextEdit *Ed_CMRA_PORT;
  91. TcxLabel *cxLabel15;
  92. TcxTextEdit *Ed_CMRA_ID;
  93. TcxTextEdit *Ed_CMRA_PSWD;
  94. TcxTextEdit *Ed_STRM_SESN_NM;
  95. TcxLabel *cxLabel16;
  96. TcxTextEdit *EdCmncPort;
  97. TcxSplitter *cxSplitter2;
  98. TcxGroupBox *GrpMap;
  99. TcxSpinEdit *Se_CMRA_CHNL;
  100. TImage *ImgDesc14;
  101. TcxLabel *cxLabel9;
  102. TcxLabel *lblText1;
  103. TcxLabel *lblText2;
  104. TcxLabel *lblText3;
  105. TcxLabel *lblText4;
  106. TcxLabel *lblText5;
  107. TcxLabel *lblText6;
  108. TcxLabel *lblText7;
  109. TcxLabel *lblText8;
  110. TcxLabel *lblText9;
  111. TFRAMEOpenMap *FRAMEOpenMap1;
  112. TImage *ImgDesc15;
  113. TcxLabel *cxLabel4;
  114. TcxTextEdit *Ed_STRM_RTSP_ADDR;
  115. TcxLabel *cxLabel7;
  116. TImage *ImgDesc16;
  117. TcxTextEdit *Ed_STRM_RTMP_ADDR;
  118. TcxLabel *cxLabel10;
  119. TImage *ImgDesc17;
  120. TcxTextEdit *Ed_STRM_HTTP_ADDR;
  121. TcxMaskEdit *Ed_STRM_SVR_IP;
  122. TImage *ImgDesc18;
  123. TcxLabel *cxLabel13;
  124. TcxLabel *cxLabel14;
  125. TFRAMECCamList *FRAMECCamList1;
  126. TcxLabel *cxLabel17;
  127. TcxSpinEdit *Se_GROUP_NO;
  128. TcxSpinEdit *Se_LOCAL_NO;
  129. TImage *ImgDesc28;
  130. TcxLabel *cxLabel19;
  131. TcxTextEdit *ISTL_LCTN_ADDR;
  132. TImage *ImgDesc25;
  133. TcxTextEdit *ISTL_LCTN_NM;
  134. TcxLabel *cxLabel22;
  135. TImage *ImgDesc05;
  136. void __fastcall FormShow(TObject *Sender);
  137. void __fastcall TmrShowTimer(TObject *Sender);
  138. void __fastcall BtnCloseClick(TObject *Sender);
  139. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  140. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  141. void __fastcall BtnEditClick(TObject *Sender);
  142. void __fastcall BtnInsertClick(TObject *Sender);
  143. void __fastcall BtnDeleteClick(TObject *Sender);
  144. void __fastcall BtnSaveClick(TObject *Sender);
  145. void __fastcall FRAMECCamList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  146. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  147. TShiftState AShift, bool &AHandled);
  148. void __fastcall Ed_CMRA_PORTKeyPress(TObject *Sender, wchar_t &Key);
  149. void __fastcall Se_CMRA_CHNLPropertiesChange(TObject *Sender);
  150. private: // User declarations
  151. void __fastcall CommClose();
  152. TcxDataController *m_pGDC;
  153. String FTitle;
  154. bool FUpdate;
  155. bool FNewDb;
  156. bool EditMode;
  157. public:
  158. String sJs;
  159. int FLayerIdx;
  160. public: // User declarations
  161. __fastcall TCCAM100M(TComponent* Owner);
  162. void __fastcall FormInit();
  163. void __fastcall UpdateIcon();
  164. void __fastcall DisplayInfo(TCCamCtlr* AObj, bool AMoveObj=true);
  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 TCCAM100M *CCAM100M;
  170. //---------------------------------------------------------------------------
  171. #endif