VMSM100MF.h 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. //---------------------------------------------------------------------------
  2. #ifndef VMSM100MFH
  3. #define VMSM100MFH
  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 "WindowMsgF.h"
  24. #include "cxButtons.hpp"
  25. #include "cxCalendar.hpp"
  26. #include "cxContainer.hpp"
  27. #include "cxControls.hpp"
  28. #include "cxDropDownEdit.hpp"
  29. #include "cxEdit.hpp"
  30. #include "cxGraphics.hpp"
  31. #include "cxGroupBox.hpp"
  32. #include "cxLabel.hpp"
  33. #include "cxLookAndFeelPainters.hpp"
  34. #include "cxLookAndFeels.hpp"
  35. #include "cxMaskEdit.hpp"
  36. #include "cxPC.hpp"
  37. #include "cxPCdxBarPopupMenu.hpp"
  38. #include "cxSpinEdit.hpp"
  39. #include "cxSplitter.hpp"
  40. #include "cxTextEdit.hpp"
  41. #include "cxTimeEdit.hpp"
  42. #include "dxSkinBlack.hpp"
  43. #include "dxSkinBlue.hpp"
  44. #include "dxSkinCaramel.hpp"
  45. #include "dxSkinCoffee.hpp"
  46. #include "dxSkinDarkRoom.hpp"
  47. #include "dxSkinDarkSide.hpp"
  48. #include "dxSkinFoggy.hpp"
  49. #include "dxSkinGlassOceans.hpp"
  50. #include "dxSkiniMaginary.hpp"
  51. #include "dxSkinLilian.hpp"
  52. #include "dxSkinLiquidSky.hpp"
  53. #include "dxSkinLondonLiquidSky.hpp"
  54. #include "dxSkinMcSkin.hpp"
  55. #include "dxSkinMoneyTwins.hpp"
  56. #include "dxSkinOffice2007Black.hpp"
  57. #include "dxSkinOffice2007Blue.hpp"
  58. #include "dxSkinOffice2007Green.hpp"
  59. #include "dxSkinOffice2007Pink.hpp"
  60. #include "dxSkinOffice2007Silver.hpp"
  61. #include "dxSkinOffice2010Black.hpp"
  62. #include "dxSkinOffice2010Blue.hpp"
  63. #include "dxSkinOffice2010Silver.hpp"
  64. #include "dxSkinsCore.hpp"
  65. #include "dxSkinscxPCPainter.hpp"
  66. #include "dxSkinSeven.hpp"
  67. #include "dxSkinSharp.hpp"
  68. #include "dxSkinSilver.hpp"
  69. #include "dxSkinStardust.hpp"
  70. #include "cxRadioGroup.hpp"
  71. #include "cxClasses.hpp"
  72. #include "cxCustomData.hpp"
  73. #include "cxData.hpp"
  74. #include "cxDataStorage.hpp"
  75. #include "cxDBData.hpp"
  76. #include "cxFilter.hpp"
  77. #include "cxGrid.hpp"
  78. #include "cxGridCustomTableView.hpp"
  79. #include "cxGridCustomView.hpp"
  80. #include "cxGridDBTableView.hpp"
  81. #include "cxGridLevel.hpp"
  82. #include "cxGridTableView.hpp"
  83. #include "cxStyles.hpp"
  84. #include "cxCheckBox.hpp"
  85. #include "FRAME_VmsListF.h"
  86. #include "FRAME_GoogleMapF.h"
  87. #include "GMClasses.hpp"
  88. #include "GMLinkedComponents.hpp"
  89. #include "GMMap.hpp"
  90. #include "GMMarker.hpp"
  91. #include "GMMarkerVCL.hpp"
  92. class TVMSM100M : public TForm
  93. {
  94. __published: // IDE-managed Components
  95. TTimer *TmrShow;
  96. TShape *ShpTitle;
  97. TcxButton *BtnClose;
  98. TLabel *LblCaption;
  99. TShape *ShpList;
  100. TEdit *EdFocus;
  101. TPanel *PnlBack;
  102. TPanel *PnlLeft;
  103. TcxSplitter *cxSplitter1;
  104. TcxGroupBox *cxGroupBox3;
  105. TPanel *PnlBottom;
  106. TcxGroupBox *GrpInfo;
  107. TPanel *PnlMenu;
  108. TcxButton *BtnEdit;
  109. TcxButton *BtnInsert;
  110. TcxButton *BtnDelete;
  111. TcxButton *BtnSave;
  112. TcxLabel *cxLabel11;
  113. TcxLabel *cxLabel12;
  114. TPanel *PnlEdit;
  115. TImage *ImgDesc01;
  116. TImage *ImgDesc02;
  117. TImage *ImgDesc03;
  118. TImage *ImgDesc04;
  119. TImage *ImgDesc05;
  120. TImage *ImgDesc06;
  121. TImage *ImgDesc07;
  122. TImage *ImgDesc11;
  123. TImage *ImgDesc08;
  124. TcxTextEdit *EdVmsId;
  125. TcxTextEdit *EdVmsNm;
  126. TcxTextEdit *EdNmbr;
  127. TcxSpinEdit *SePosX;
  128. TcxSpinEdit *SePosY;
  129. TcxLabel *cxLabel1;
  130. TcxLabel *cxLabel2;
  131. TcxLabel *cxLabel3;
  132. TcxLabel *cxLabel6;
  133. TcxLabel *cxLabel7;
  134. TcxLabel *cxLabel18;
  135. TcxTextEdit *EdId;
  136. TcxMaskEdit *EdCtlrIp;
  137. TcxComboBox *CbUsagType;
  138. TcxComboBox *CbType;
  139. TcxLabel *cxLabel8;
  140. TcxLabel *cxLabel22;
  141. TcxLabel *cxLabel5;
  142. TcxMaskEdit *EdWebCamIp;
  143. TcxTextEdit *EdWebCamPort;
  144. TcxLabel *cxLabel15;
  145. TcxTextEdit *EdWebCamId;
  146. TcxTextEdit *EdWebCamPswd;
  147. TcxTextEdit *EdWebCamStrm;
  148. TcxLabel *cxLabel16;
  149. TcxTextEdit *EdCmncPort;
  150. TcxGroupBox *cxGroupBox1;
  151. TcxTimeEdit *cxTimeOn;
  152. TcxTimeEdit *cxTimeOff;
  153. TcxLabel *cxLabel4;
  154. TcxButton *BtnSaveAll;
  155. TcxSplitter *cxSplitter2;
  156. TcxGroupBox *GrpMap;
  157. TcxCheckBox *ChkViewIcon;
  158. TcxCheckBox *ChkViewName;
  159. TFRAMEVmsList *FRAMEVmsList1;
  160. TcxSpinEdit *SeMaxPhase;
  161. TImage *ImgDesc14;
  162. TcxLabel *cxLabel9;
  163. TcxButton *cxButton1;
  164. TFRAMEGoogleMap *FRAMEGoogleMap1;
  165. TGMMarker *GMMarker1;
  166. TGMMarker *GMMarkerNew;
  167. TcxLabel *lblText1;
  168. TcxLabel *lblText2;
  169. TcxLabel *lblText3;
  170. TcxLabel *lblText4;
  171. TcxLabel *lblText5;
  172. TcxLabel *lblText6;
  173. TcxLabel *lblText7;
  174. TcxLabel *lblText8;
  175. TcxLabel *lblText9;
  176. TcxLabel *lblText10;
  177. TcxLabel *lblText11;
  178. void __fastcall FormShow(TObject *Sender);
  179. void __fastcall TmrShowTimer(TObject *Sender);
  180. void __fastcall BtnCloseClick(TObject *Sender);
  181. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  182. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  183. void __fastcall ChkViewIconClick(TObject *Sender);
  184. void __fastcall BtnEditClick(TObject *Sender);
  185. void __fastcall BtnInsertClick(TObject *Sender);
  186. void __fastcall BtnDeleteClick(TObject *Sender);
  187. void __fastcall BtnSaveClick(TObject *Sender);
  188. void __fastcall FRAMEVmsList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  189. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  190. TShiftState AShift, bool &AHandled);
  191. void __fastcall EdWebCamPortKeyPress(TObject *Sender, wchar_t &Key);
  192. void __fastcall BtnSaveAllClick(TObject *Sender);
  193. void __fastcall SeMaxPhasePropertiesChange(TObject *Sender);
  194. void __fastcall LblCaptionDblClick(TObject *Sender);
  195. void __fastcall cxButton1Click(TObject *Sender);
  196. void __fastcall GMMarker1Click(TObject *Sender, TLatLng *LatLng, int Index, TLinkedComponent *LinkedComponent);
  197. void __fastcall GMMarker1DragEnd(TObject *Sender, TLatLng *LatLng, int Index,
  198. TLinkedComponent *LinkedComponent);
  199. void __fastcall GMMarkerNewDragEnd(TObject *Sender, TLatLng *LatLng, int Index,
  200. TLinkedComponent *LinkedComponent);
  201. private: // User declarations
  202. void __fastcall CommClose();
  203. TcxDataController *m_pGDC;
  204. String FTitle;
  205. bool FUpdate;
  206. bool FNewDb;
  207. bool MapStart;
  208. bool EditMode;
  209. public:
  210. TMarker *FNewMkr;
  211. TMarker *FSelMkr;
  212. public: // User declarations
  213. __fastcall TVMSM100M(TComponent* Owner);
  214. void __fastcall FormInit();
  215. void __fastcall UpdateIcon();
  216. void __fastcall DisplayInfo(TVmsCtlr* AObj, bool AMoveVms=false);
  217. void __fastcall SelListData();
  218. TMarker * _fastcall FindObjectMarker(String AId);
  219. void __fastcall ChangeEditMode(int AEdit);
  220. void __fastcall MakeVmsWebCamHtml_ICSVIEW(TVmsCtlr *AObj);
  221. void __fastcall MakeVmsWebCamHtml_STWEB(TVmsCtlr *AObj);
  222. };
  223. //---------------------------------------------------------------------------
  224. extern PACKAGE TVMSM100M *VMSM100M;
  225. //---------------------------------------------------------------------------
  226. #endif