AVIM020MF.h 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. //---------------------------------------------------------------------------
  2. #ifndef AVIM020MFH
  3. #define AVIM020MFH
  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 "CDSCodeF.h"
  25. #include "CDSDsrcF.h"
  26. #include "CDSDsrcOfferSectF.h"
  27. #include "FRAME_AviListF.h"
  28. #include "FRAME_AviSectListF.h"
  29. #include "FRAME_FlashMapF.h"
  30. #include "cxButtons.hpp"
  31. #include "cxCheckBox.hpp"
  32. #include "cxClasses.hpp"
  33. #include "cxContainer.hpp"
  34. #include "cxControls.hpp"
  35. #include "cxCustomData.hpp"
  36. #include "cxData.hpp"
  37. #include "cxDataStorage.hpp"
  38. #include "cxDropDownEdit.hpp"
  39. #include "cxEdit.hpp"
  40. #include "cxFilter.hpp"
  41. #include "cxGraphics.hpp"
  42. #include "cxGrid.hpp"
  43. #include "cxGridCustomTableView.hpp"
  44. #include "cxGridCustomView.hpp"
  45. #include "cxGridLevel.hpp"
  46. #include "cxGridTableView.hpp"
  47. #include "cxGroupBox.hpp"
  48. #include "cxLabel.hpp"
  49. #include "cxLookAndFeelPainters.hpp"
  50. #include "cxLookAndFeels.hpp"
  51. #include "cxMaskEdit.hpp"
  52. #include "cxSpinEdit.hpp"
  53. #include "cxSplitter.hpp"
  54. #include "cxStyles.hpp"
  55. #include "cxTextEdit.hpp"
  56. #include "dxSkinBlack.hpp"
  57. #include "dxSkinBlue.hpp"
  58. #include "dxSkinsCore.hpp"
  59. #include "dxSkinscxPCPainter.hpp"
  60. class TAVIM020M : public TForm
  61. {
  62. __published: // IDE-managed Components
  63. TTimer *TmrShow;
  64. TShape *ShpTitle;
  65. TcxButton *BtnClose;
  66. TLabel *LblCaption;
  67. TShape *ShpList;
  68. TEdit *EdFocus;
  69. TPanel *PnlBack;
  70. TPanel *PnlLeft;
  71. TcxSplitter *cxSplitter1;
  72. TcxGroupBox *cxGroupBox3;
  73. TcxGroupBox *GrpMap;
  74. TPanel *PnlMenu;
  75. TcxButton *BtnEdit;
  76. TcxButton *BtnInsert;
  77. TcxButton *BtnDelete;
  78. TcxButton *BtnSave;
  79. TcxLabel *cxLabel11;
  80. TcxLabel *cxLabel12;
  81. TcxGroupBox *cxGroupBox5;
  82. TcxSplitter *cxSplitter2;
  83. TPanel *PnlInfo;
  84. TcxGroupBox *GrpInfo;
  85. TImage *ImgDesc01;
  86. TImage *ImgDesc03;
  87. TImage *ImgDesc04;
  88. TImage *ImgDesc05;
  89. TImage *ImgDesc07;
  90. TImage *ImgDesc12;
  91. TImage *ImgDesc08;
  92. TImage *ImgDesc09;
  93. TImage *ImgDesc10;
  94. TImage *ImgDesc13;
  95. TImage *ImgDesc14;
  96. TImage *ImgDesc11;
  97. TcxLabel *cxLabel1;
  98. TcxLabel *cxLabel3;
  99. TcxLabel *cxLabel4;
  100. TcxLabel *cxLabel5;
  101. TcxSpinEdit *SeAVI_SECT_DSTC;
  102. TcxLabel *cxLabel7;
  103. TcxLabel *cxLabel8;
  104. TcxLabel *cxLabel9;
  105. TcxComboBox *CbAVI_CTLR_MNGM_NMBR;
  106. TcxTextEdit *EdAVI_SECT_NMBR;
  107. TcxLabel *cxLabel2;
  108. TcxLabel *cxLabel10;
  109. TcxLabel *cxLabel13;
  110. TcxSpinEdit *SeSPOT_NUM;
  111. TcxSpinEdit *SeSTND_DRFT_VAL;
  112. TcxLabel *cxLabel14;
  113. TcxSpinEdit *SeSMTH_FCTR;
  114. TcxLabel *cxLabel15;
  115. TcxLabel *cxLabel16;
  116. TcxTextEdit *EdId;
  117. TPanel *PnlMap;
  118. TcxGroupBox *GrpLink;
  119. TcxGrid *CxLink;
  120. TcxGridTableView *TvLink;
  121. TcxGridColumn *ColLink1;
  122. TcxGridColumn *ColLink2;
  123. TcxGridColumn *ColLink3;
  124. TcxGridColumn *ColLink4;
  125. TcxGridColumn *ColLink5;
  126. TcxGridColumn *ColLink6;
  127. TcxGridLevel *GlLink;
  128. TPanel *PnlLinkEdit;
  129. TImage *ImgDesc06;
  130. TcxLabel *cxLabel6;
  131. TcxTextEdit *EdLinkId;
  132. TcxButton *BtnLinkAdd;
  133. TcxButton *BtnLinkDel;
  134. TcxGroupBox *GrpGis;
  135. TcxCheckBox *ChkGisZoom;
  136. TcxLabel *cxLabel17;
  137. TFRAMEAviList *FRAMEAviList1;
  138. TFRAMEAviSectList *FRAMEAviSectList1;
  139. TcxTextEdit *EdAVI_SECT_NM;
  140. TcxLabel *cxLabel18;
  141. TcxSpinEdit *SeSHRT_PASS_HH;
  142. TcxSpinEdit *SeLNST_PASS_HH;
  143. TcxTextEdit *EdSTRT_SPOT_NM;
  144. TcxTextEdit *EdEND_SPOT_NM;
  145. TcxSpinEdit *SeMIN_SPED;
  146. TcxSpinEdit *SeMAX_SPED;
  147. TcxCheckBox *ChkViewIcon;
  148. TcxCheckBox *ChkViewName;
  149. TFRAMEFlashMap *FRAMEGisMap1;
  150. void __fastcall FormShow(TObject *Sender);
  151. void __fastcall TmrShowTimer(TObject *Sender);
  152. void __fastcall BtnCloseClick(TObject *Sender);
  153. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  154. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  155. void __fastcall BtnEditClick(TObject *Sender);
  156. void __fastcall BtnInsertClick(TObject *Sender);
  157. void __fastcall BtnDeleteClick(TObject *Sender);
  158. void __fastcall BtnSaveClick(TObject *Sender);
  159. void __fastcall BtnLinkDelClick(TObject *Sender);
  160. void __fastcall BtnLinkAddClick(TObject *Sender);
  161. void __fastcall TvLinkCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo, TMouseButton AButton,
  162. TShiftState AShift, bool &AHandled);
  163. void __fastcall FRAMEAviSectList1TvListCellDblClickSect(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  164. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  165. void __fastcall FRAMEAviList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  166. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  167. void __fastcall ChkGisZoomClick(TObject *Sender);
  168. void __fastcall ChkViewIconClick(TObject *Sender);
  169. private: // User declarations
  170. void __fastcall CommClose();
  171. TcxDataController *m_pGDC;
  172. String FTitle;
  173. bool FUpdate;
  174. bool FNewDb;
  175. bool MapStart;
  176. public:
  177. public: // User declarations
  178. __fastcall TAVIM020M(TComponent* Owner);
  179. void __fastcall FormInit();
  180. void __fastcall UpdateAviIcon();
  181. void __fastcall UpdateList();
  182. void __fastcall DisplayInfo(TItsAviSect* AObj);
  183. void __fastcall DisplayParam(TItsAviSect* AObj);
  184. void __fastcall DisplayCndt(TItsAviSect* AObj);
  185. void __fastcall DisplayLink(TItsAviSect* AObj);
  186. void __fastcall RefreshLink();
  187. void __fastcall ChangeEditMode(int AEdit);
  188. void __fastcall ShockwaveFlash1FlashCall1(TObject *ASender, const WideString request);
  189. };
  190. //---------------------------------------------------------------------------
  191. extern PACKAGE TAVIM020M *AVIM020M;
  192. //---------------------------------------------------------------------------
  193. #endif