ITSSELAMF.h 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. #include "dxSkinBlack.hpp"
  45. #include "dxSkinMcSkin.hpp"
  46. //---------------------------------------------------------------------------
  47. //---------------------------------------------------------------------------
  48. class TITSSELAM : public TForm
  49. {
  50. __published: // IDE-managed Components
  51. TcxButton *BtnSearch;
  52. TcxButton *BtnClose;
  53. TLabel *LblCaption;
  54. TEdit *EdFocus;
  55. TShape *ShpList;
  56. TTimer *TmrShow;
  57. TPanel *PnlBack;
  58. TcxGroupBox *cxGroupBox1;
  59. TcxSplitter *cxSplitter1;
  60. TPanel *PnlRight;
  61. TcxGroupBox *cxGroupBox2;
  62. TcxButton *BtnSelect;
  63. TcxPageControl *PgList;
  64. TcxTabSheet *TabNode;
  65. TcxTabSheet *TabLink;
  66. TcxTabSheet *TabServiceLink;
  67. TcxTabSheet *TabRoad;
  68. TFRAMENodeList *FRAMENodeList1;
  69. TFRAMELinkList *FRAMELinkList1;
  70. TFRAMERoadList *FRAMERoadList1;
  71. TStatusBar *StatusBar;
  72. TcxSplitter *cxSplitter2;
  73. TcxGrid *CxList;
  74. TcxGridTableView *TvList;
  75. TcxGridColumn *Column01;
  76. TcxGridColumn *Column02;
  77. TcxGridColumn *Column03;
  78. TcxGridColumn *Column99;
  79. TcxGridLevel *GlList;
  80. TcxButton *BtnDelete;
  81. TPanel *Panel1;
  82. TImage *ImgDesc04;
  83. TImage *ImgDesc01;
  84. TcxLabel *cxLabel4;
  85. TcxLabel *cxLabel1;
  86. TcxTextEdit *EdPos;
  87. TcxTextEdit *EdLinkId;
  88. TcxLabel *lblText1;
  89. TFRAMEOpenMap *FRAMEOpenMap1;
  90. TFRAMEIfscList *FRAMEIfscList1;
  91. TcxGridColumn *ColSeq;
  92. void __fastcall FormShow(TObject *Sender);
  93. void __fastcall TmrShowTimer(TObject *Sender);
  94. void __fastcall BtnSearchClick(TObject *Sender);
  95. void __fastcall BtnCloseClick(TObject *Sender);
  96. void __fastcall FormClose(TObject *Sender, TCloseAction &Action);
  97. void __fastcall FRAMENodeList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  98. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  99. void __fastcall FRAMELinkList1TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  100. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  101. void __fastcall FRAMEIfscList1TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  102. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  103. void __fastcall FRAMERoadList1TvListCellClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  104. TMouseButton AButton, TShiftState AShift, bool &AHandled);
  105. void __fastcall BtnSelectClick(TObject *Sender);
  106. void __fastcall BtnDeleteClick(TObject *Sender);
  107. void __fastcall TvListCellDblClick(TcxCustomGridTableView *Sender, TcxGridTableDataCellViewInfo *ACellViewInfo,
  108. TMouseButton AButton, TShiftState AShift,
  109. bool &AHandled);
  110. void __fastcall ColSeqCustomDrawCell(TcxCustomGridTableView *Sender, TcxCanvas *ACanvas, TcxGridTableDataCellViewInfo *AViewInfo,
  111. bool &ADone);
  112. void __fastcall FormCloseQuery(TObject *Sender, bool &CanClose);
  113. private: // User declarations
  114. void __fastcall CommClose();
  115. void __fastcall SetLinkLevel(int ALinkLevel);
  116. String FTitle;
  117. int FLinkLevel;
  118. bool FSelected;
  119. bool FMultiSelect;
  120. public:
  121. String sJs;
  122. int FLayerIdx;
  123. String FRefreshId;
  124. String FLinkId;
  125. String FSelPosX, FSelPosY;
  126. double FPosX, FPosY;
  127. int FMouseDownPosX, FMouseDownPosY;
  128. public: // User declarations
  129. __fastcall TITSSELAM(TComponent* Owner, int ALinkLevel=1);
  130. void __fastcall LoadLocalSkin();
  131. void __fastcall FormInit();
  132. void __fastcall RefreshData();
  133. void __fastcall SelGisItem(int AType, String AId);
  134. void __fastcall UpdateSelect(String ALinkId, double X, double Y);
  135. void __fastcall RefreshSelect();
  136. void __fastcall DeleteSelect(String ALinkId);
  137. void __fastcall UpdateNode();
  138. void __fastcall UpdateEditLink();
  139. void __fastcall RefreshLink();
  140. __property int LinkLevel = {read = FLinkLevel, write=SetLinkLevel };
  141. __property bool Selected = {read = FSelected };
  142. __property bool MultiSelect = {read = FMultiSelect, write=FMultiSelect };
  143. void __fastcall OpenMapCallback(TObject *ASender, const String AFunc, const String AArgs, const bool AFirst);
  144. };
  145. //---------------------------------------------------------------------------
  146. extern PACKAGE TITSSELAM *ITSSELAM;
  147. //---------------------------------------------------------------------------
  148. #endif