ITSSELAMF.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. //---------------------------------------------------------------------------
  2. #ifndef ITSSELAMFH
  3. #define ITSSELAMFH
  4. #include <Classes.hpp>
  5. #include <ComCtrls.hpp>
  6. #include <Controls.hpp>
  7. #include <ExtCtrls.hpp>
  8. #include <Forms.hpp>
  9. #include <Menus.hpp>
  10. #include <StdCtrls.hpp>
  11. #include "cxButtons.hpp"
  12. #include "cxCalc.hpp"
  13. #include "cxClasses.hpp"
  14. #include "cxContainer.hpp"
  15. #include "cxControls.hpp"
  16. #include "cxCustomData.hpp"
  17. #include "cxData.hpp"
  18. #include "cxDataStorage.hpp"
  19. #include "cxEdit.hpp"
  20. #include "cxFilter.hpp"
  21. #include "cxGraphics.hpp"
  22. #include "cxGrid.hpp"
  23. #include "cxGridCustomTableView.hpp"
  24. #include "cxGridCustomView.hpp"
  25. #include "cxGridLevel.hpp"
  26. #include "cxGridTableView.hpp"
  27. #include "cxGroupBox.hpp"
  28. #include "cxLabel.hpp"
  29. #include "cxLookAndFeelPainters.hpp"
  30. #include "cxLookAndFeels.hpp"
  31. #include "cxPC.hpp"
  32. #include "cxPCdxBarPopupMenu.hpp"
  33. #include "cxSplitter.hpp"
  34. #include "cxStyles.hpp"
  35. #include "cxTextEdit.hpp"
  36. #include "dxSkinBlue.hpp"
  37. #include "dxSkinsCore.hpp"
  38. #include "dxSkinscxPCPainter.hpp"
  39. #include "FRAME_IfscListF.h"
  40. #include "FRAME_LinkListF.h"
  41. #include "FRAME_NodeListF.h"
  42. #include "FRAME_OpenMapF.h"
  43. #include "FRAME_RoadListF.h"
  44. //---------------------------------------------------------------------------
  45. //---------------------------------------------------------------------------
  46. class TITSSELAM : public TForm
  47. {
  48. __published: // IDE-managed Components
  49. TcxButton *BtnSearch;
  50. TcxButton *BtnClose;
  51. TLabel *LblCaption;
  52. TEdit *EdFocus;
  53. TShape *ShpList;
  54. TTimer *TmrShow;
  55. TPanel *PnlBack;
  56. TcxGroupBox *cxGroupBox1;
  57. TcxSplitter *cxSplitter1;
  58. TPanel *PnlRight;
  59. TcxGroupBox *cxGroupBox2;
  60. TcxButton *BtnSelect;
  61. TcxPageControl *PgList;
  62. TcxTabSheet *TabNode;
  63. TcxTabSheet *TabLink;
  64. TcxTabSheet *TabServiceLink;
  65. TcxTabSheet *TabRoad;
  66. TFRAMENodeList *FRAMENodeList1;
  67. TFRAMELinkList *FRAMELinkList1;
  68. TFRAMERoadList *FRAMERoadList1;
  69. TStatusBar *StatusBar;
  70. TcxSplitter *cxSplitter2;
  71. TcxGrid *CxList;
  72. TcxGridTableView *TvList;
  73. TcxGridColumn *Column01;
  74. TcxGridColumn *Column02;
  75. TcxGridColumn *Column03;
  76. TcxGridColumn *Column99;
  77. TcxGridLevel *GlList;
  78. TcxButton *BtnDelete;
  79. TPanel *Panel1;
  80. TImage *ImgDesc04;
  81. TImage *ImgDesc01;
  82. TcxLabel *cxLabel4;
  83. TcxLabel *cxLabel1;
  84. TcxTextEdit *EdPos;
  85. TcxTextEdit *EdLinkId;
  86. TcxLabel *lblText1;
  87. TFRAMEOpenMap *FRAMEOpenMap1;
  88. TFRAMEIfscList *FRAMEIfscList1;
  89. TcxGridColumn *ColSeq;
  90. void __fastcall FormShow(TObject *Sender);
  91. void __fastcall TmrShowTimer(TObject *Sender);
  92. void __fastcall BtnSearchClick(TObject *Sender);
  93. void __fastcall BtnCloseClick(TObject *Sender);
  94. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  95. void __fastcall FRAMENodeList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  96. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  97. void __fastcall FRAMELinkList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  98. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  99. void __fastcall FRAMEIfscList1TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  100. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  101. void __fastcall FRAMERoadList1TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  102. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  103. void __fastcall BtnSelectClick(TObject *Sender);
  104. void __fastcall BtnDeleteClick(TObject *Sender);
  105. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  106. TMouseButton AButton, TShiftState AShift,
  107. bool &AHandled);
  108. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  109. bool &ADone);
  110. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  111. private: // User declarations
  112. void __fastcall CommClose();
  113. void __fastcall SetLinkLevel(int ALinkLevel);
  114. String FTitle;
  115. int FLinkLevel;
  116. bool FSelected;
  117. bool FMultiSelect;
  118. public:
  119. String sJs;
  120. int FLayerIdx;
  121. String FRefreshId;
  122. String FLinkId;
  123. String FSelPosX, FSelPosY;
  124. double FPosX, FPosY;
  125. int FMouseDownPosX, FMouseDownPosY;
  126. public: // User declarations
  127. __fastcall TITSSELAM(TComponent* Owner, int ALinkLevel=1);
  128. void __fastcall LoadLocalSkin();
  129. void __fastcall FormInit();
  130. void __fastcall RefreshData();
  131. void __fastcall SelGisItem(int AType, String AId);
  132. void __fastcall UpdateSelect(String ALinkId, double X, double Y);
  133. void __fastcall RefreshSelect();
  134. void __fastcall DeleteSelect(String ALinkId);
  135. void __fastcall UpdateNode();
  136. void __fastcall UpdateEditLink();
  137. void __fastcall RefreshLink();
  138. __property int LinkLevel = {read = FLinkLevel, write=SetLinkLevel };
  139. __property bool Selected = {read = FSelected };
  140. __property bool MultiSelect = {read = FMultiSelect, write=FMultiSelect };
  141. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  142. };
  143. //---------------------------------------------------------------------------
  144. extern PACKAGE TITSSELAM *ITSSELAM;
  145. //---------------------------------------------------------------------------
  146. #endif