VMSM100MF.h 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  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. #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_VmsListF.h"
  66. #include "FRAME_OpenMapF.h"
  67. //---------------------------------------------------------------------------
  68. class TVMSM100M : public TForm
  69. {
  70. __published: // IDE-managed Components
  71. TTimer *TmrShow;
  72. TShape *ShpTitle;
  73. TcxButton *BtnClose;
  74. TLabel *LblCaption;
  75. TShape *ShpList;
  76. TEdit *EdFocus;
  77. TPanel *PnlBack;
  78. TPanel *PnlLeft;
  79. TcxSplitter *cxSplitter1;
  80. TcxGroupBox *cxGroupBox3;
  81. TPanel *PnlBottom;
  82. TcxGroupBox *GrpInfo;
  83. TPanel *PnlMenu;
  84. TcxButton *BtnEdit;
  85. TcxButton *BtnInsert;
  86. TcxButton *BtnDelete;
  87. TcxButton *BtnSave;
  88. TcxLabel *cxLabel11;
  89. TcxLabel *cxLabel12;
  90. TPanel *PnlEdit;
  91. TImage *ImgDesc01;
  92. TImage *ImgDesc02;
  93. TImage *ImgDesc03;
  94. TImage *ImgDesc04;
  95. TImage *ImgDesc05;
  96. TImage *ImgDesc06;
  97. TImage *ImgDesc07;
  98. TImage *ImgDesc11;
  99. TcxTextEdit *EdVmsId;
  100. TcxTextEdit *EdVmsNm;
  101. TcxTextEdit *EdNmbr;
  102. TcxSpinEdit *SePosX;
  103. TcxSpinEdit *SePosY;
  104. TcxLabel *cxLabel1;
  105. TcxLabel *cxLabel2;
  106. TcxLabel *cxLabel3;
  107. TcxLabel *cxLabel6;
  108. TcxLabel *cxLabel18;
  109. TcxMaskEdit *EdCtlrIp;
  110. TcxComboBox *CbType;
  111. TcxLabel *cxLabel8;
  112. TcxLabel *cxLabel22;
  113. TcxLabel *cxLabel5;
  114. TcxMaskEdit *EdWebCamIp;
  115. TcxTextEdit *EdWebCamPort;
  116. TcxLabel *cxLabel15;
  117. TcxTextEdit *EdWebCamId;
  118. TcxTextEdit *EdWebCamPswd;
  119. TcxTextEdit *EdWebCamStrm;
  120. TcxLabel *cxLabel16;
  121. TcxTextEdit *EdCmncPort;
  122. TcxGroupBox *cxGroupBox1;
  123. TcxTimeEdit *cxTimeOn;
  124. TcxTimeEdit *cxTimeOff;
  125. TcxLabel *cxLabel4;
  126. TcxButton *BtnSaveAll;
  127. TcxSplitter *cxSplitter2;
  128. TcxGroupBox *GrpMap;
  129. TFRAMEVmsList *FRAMEVmsList1;
  130. TcxSpinEdit *SeMaxPhase;
  131. TImage *ImgDesc14;
  132. TcxLabel *cxLabel9;
  133. TcxLabel *lblText1;
  134. TcxLabel *lblText2;
  135. TcxLabel *lblText3;
  136. TcxLabel *lblText4;
  137. TcxLabel *lblText5;
  138. TcxLabel *lblText6;
  139. TcxLabel *lblText7;
  140. TcxLabel *lblText8;
  141. TcxLabel *lblText9;
  142. TcxLabel *lblText10;
  143. TcxLabel *lblText11;
  144. TFRAMEOpenMap *FRAMEOpenMap1;
  145. TcxTextEdit *ISTL_LCTN_NM;
  146. TcxTextEdit *ISTL_LCTN_ADDR;
  147. TImage *ImgDesc25;
  148. TcxLabel *cxLabel7;
  149. TcxSpinEdit *Se_VMS_CTLR_LOCAL_NO;
  150. TcxLabel *cxLabel10;
  151. TImage *Image1;
  152. void __fastcall FormShow(TObject *Sender);
  153. void __fastcall TmrShowTimer(TObject *Sender);
  154. void __fastcall BtnCloseClick(TObject *Sender);
  155. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  156. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  157. void __fastcall BtnEditClick(TObject *Sender);
  158. void __fastcall BtnInsertClick(TObject *Sender);
  159. void __fastcall BtnDeleteClick(TObject *Sender);
  160. void __fastcall BtnSaveClick(TObject *Sender);
  161. void __fastcall FRAMEVmsList1TvListCellDblClick(TcxCustomGridTableView *Sender,
  162. TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  163. TShiftState AShift, bool &AHandled);
  164. void __fastcall EdWebCamPortKeyPress(TObject *Sender, wchar_t &Key);
  165. void __fastcall BtnSaveAllClick(TObject *Sender);
  166. void __fastcall SeMaxPhasePropertiesChange(TObject *Sender);
  167. private: // User declarations
  168. void __fastcall CommClose();
  169. TcxDataController *m_pGDC;
  170. String FTitle;
  171. bool FUpdate;
  172. bool FNewDb;
  173. bool EditMode;
  174. public:
  175. String sJs;
  176. int FLayerIdx;
  177. public: // User declarations
  178. __fastcall TVMSM100M(TComponent* Owner);
  179. void __fastcall FormInit();
  180. void __fastcall UpdateIcon();
  181. void __fastcall DisplayInfo(TVmsCtlr* AObj, bool AMoveObj=true);
  182. void __fastcall ChangeEditMode(int AEdit);
  183. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  184. };
  185. //---------------------------------------------------------------------------
  186. extern PACKAGE TVMSM100M *VMSM100M;
  187. //---------------------------------------------------------------------------
  188. #endif