FRAME_FlashMapF.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. //---------------------------------------------------------------------------
  2. #ifndef FRAME_FlashMapFH
  3. #define FRAME_FlashMapFH
  4. //---------------------------------------------------------------------------
  5. #include <Classes.hpp>
  6. #include <Controls.hpp>
  7. #include <StdCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Graphics.hpp>
  10. #include "ImageBtn.h"
  11. #include <ExtCtrls.hpp>
  12. #include "cxContainer.hpp"
  13. #include "cxControls.hpp"
  14. #include "cxEdit.hpp"
  15. #include "cxGraphics.hpp"
  16. #include "cxGroupBox.hpp"
  17. #include "cxLookAndFeelPainters.hpp"
  18. #include "cxLookAndFeels.hpp"
  19. #include "dxSkinBlack.hpp"
  20. #include "dxSkinBlue.hpp"
  21. #include "dxSkinCaramel.hpp"
  22. #include "dxSkinCoffee.hpp"
  23. #include "dxSkinDarkRoom.hpp"
  24. #include "dxSkinDarkSide.hpp"
  25. #include "dxSkinFoggy.hpp"
  26. #include "dxSkinGlassOceans.hpp"
  27. #include "dxSkiniMaginary.hpp"
  28. #include "dxSkinLilian.hpp"
  29. #include "dxSkinLiquidSky.hpp"
  30. #include "dxSkinLondonLiquidSky.hpp"
  31. #include "dxSkinMcSkin.hpp"
  32. #include "dxSkinMoneyTwins.hpp"
  33. #include "dxSkinOffice2007Black.hpp"
  34. #include "dxSkinOffice2007Blue.hpp"
  35. #include "dxSkinOffice2007Green.hpp"
  36. #include "dxSkinOffice2007Pink.hpp"
  37. #include "dxSkinOffice2007Silver.hpp"
  38. #include "dxSkinOffice2010Black.hpp"
  39. #include "dxSkinOffice2010Blue.hpp"
  40. #include "dxSkinOffice2010Silver.hpp"
  41. #include "dxSkinsCore.hpp"
  42. #include "dxSkinSeven.hpp"
  43. #include "dxSkinSharp.hpp"
  44. #include "dxSkinSilver.hpp"
  45. #include "dxSkinStardust.hpp"
  46. #include <ImgList.hpp>
  47. #include "ShockwaveEx.hpp"
  48. #include "ShockwaveFlashObjects_TLB.hpp"
  49. #include <OleCtrls.hpp>
  50. #include "CommFlashF.h"
  51. #include <ComCtrls.hpp>
  52. //---------------------------------------------------------------------------
  53. typedef void (*CALLBACK_FLASH)(TObject *ASender, const WideString request);
  54. class TFRAMEFlashMap : public TFrame
  55. {
  56. __published: // IDE-managed Components
  57. TcxGroupBox *GrpTool;
  58. TImageBtn *ImgPan;
  59. TImageBtn *ImgZoomIn;
  60. TImageBtn *ImgZoomOut;
  61. TImageBtn *ImgSel;
  62. TImageBtn *ImgStnd;
  63. TPanel *Panel5;
  64. TImage *ImgPan_n;
  65. TImage *ImgPan_c;
  66. TImage *ImgZoomOut_c;
  67. TImage *ImgZoomOut_n;
  68. TImage *ImgStnd_c;
  69. TImage *ImgStnd_n;
  70. TImage *ImgSel_c;
  71. TImage *ImgSel_n;
  72. TImage *ImgZoomIn_c;
  73. TImage *ImgZoomIn_n;
  74. TImageBtn *ImgRefresh;
  75. TImage *ImgRefresh_n;
  76. TImage *ImgRefresh_c;
  77. TLabel *LbDef;
  78. TImage *ImgSelect;
  79. TTimer *TmrSelect;
  80. TImageList *ImgGis;
  81. TPanel *Panel1;
  82. TShockwaveFlashEx *ShockwaveFlash1;
  83. TMemo *Memo1;
  84. TTimer *TmrInit;
  85. TStatusBar *StatusBar;
  86. void __fastcall OnGisOperationClick(TObject *Sender);
  87. void __fastcall ImgStndClick(TObject *Sender);
  88. void __fastcall ImgRefreshClick(TObject *Sender);
  89. void __fastcall TmrSelectTimer(TObject *Sender);
  90. void __fastcall ShockwaveFlash1FlashCall(TObject *ASender, const WideString request);
  91. void __fastcall FrameResize(TObject *Sender);
  92. void __fastcall TmrInitTimer(TObject *Sender);
  93. void __fastcall GrpToolDblClick(TObject *Sender);
  94. void __fastcall Memo1DblClick(TObject *Sender);
  95. private: // User declarations
  96. void __fastcall SetLinkLevel(int ALinkLevel);
  97. void __fastcall SetDrawMode(int ADrawMode);
  98. int FLinkLevel;
  99. int FDrawMode;
  100. bool FMapInit;
  101. public:
  102. bool MapStart;
  103. bool ModeSelect;
  104. bool LoadTraffic;
  105. CALLBACK_FLASH FlashCallbackFunc;
  106. void __fastcall LoadLocalSkin();
  107. void __fastcall LoadGisMap();
  108. //TDDPoint m_ptSelect;
  109. void __fastcall SelectObjectByPos(double dPosX, double dPosY, bool bArrow=false);
  110. void __fastcall SelectObjectByPos();
  111. void __fastcall SelGisItem(int AType, String AId);
  112. void __fastcall LoadMap();
  113. void __fastcall OnCloseQuery(bool &CanClose);
  114. __property int LinkLevel = {read = FLinkLevel, write=SetLinkLevel };
  115. __property int DrawMode = {read = FDrawMode, write=SetDrawMode };
  116. public: // User declarations
  117. __fastcall TFRAMEFlashMap(TComponent* Owner);
  118. };
  119. //---------------------------------------------------------------------------
  120. extern PACKAGE TFRAMEFlashMap *FRAMEFlashMap;
  121. //---------------------------------------------------------------------------
  122. #endif